From owner-freebsd-questions@FreeBSD.ORG Thu Nov 11 19:18:10 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 664BF16A4CE for ; Thu, 11 Nov 2004 19:18:10 +0000 (GMT) Received: from ms05.mailstreet2003.net (MS05.mailstreet2003.net [63.251.155.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id E79F943D39 for ; Thu, 11 Nov 2004 19:18:09 +0000 (GMT) (envelope-from chris@sigd.net) X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 11 Nov 2004 14:18:03 -0500 Message-ID: <6FC9F9894A9F8C49A722CF9F2132FC220257938D@ms05.mailstreet2003.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Outputting command to a text file Thread-Index: AcTIIgHC10nj9YynQmWKA4Vx18A/pAAALeTA From: "Haulmark, Chris" To: "CHris Rich" , Subject: RE: Outputting command to a text file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Nov 2004 19:18:10 -0000 Someone broke the silence:=20 > I want to use the du command to check on the sizes of files in a > directory, but i want the output to be put into a text file so I can > look at it later.=20 > Use the character > at the end of your command to redirect it to = wherever you want. For example, if I was to want the output of du results to a file named = du.log in the /home/chris directory, I would do this: du -d 1 -h / > /home/chris/du.log If I wanted to do it again but to have it added at the end of du.log. I = would use two >>. du -d 1 -h / >> /home/chris/du.og Remember, if you use one >, you will wipe out the original results and = replace it with the newer results. Files are not the only thing you can usually use after the > character. =20 > I did some search on google, and found nothing that applied. > Searched other places (lists and things) and couldn't find what i was > looking for, perhaps i was using the wrong search terms. >=20 > Any help will be greatly appreciated >=20 > Thanks > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" -- Chris Haulmark System Admin. Freelancer "In market for IT corrections for a salary."