Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-04-2005, 12:48 AM   #1
rolly frando
LQ Newbie
Registered: Jul 2005
Location: manila, philippines
Posts: 2

Rep: Reputation: 0
Screen Listing Output Save in a File


when I issue this command:
find / -path /proc -prune -o -user testacct -ls

unfortunately testacct has many file ownerhip, my concern is to save the generated listing displayed in screen into a single.

I need any HELP please

Old 07-04-2005, 01:05 AM   #2
LQ Newbie
Registered: Mar 2005
Location: India
Distribution: Redhat
Posts: 21

Rep: Reputation: 0
the output of 'ls' command can be redirected to any file using '>' symbol

usage: # ls > aa.txt

giving a 'cat aa.txt' will show the same resuls as it would be for 'ls'
Old 07-04-2005, 01:06 AM   #3
Senior Member
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHL9;F1-10; CentOS4-5; DebianSarge-Squeeze
Posts: 1,151

Rep: Reputation: 46

ls > file_name

File file_name will contain the terminal output from ls.
Old 07-04-2005, 01:23 AM   #4
Michael Johnson
Registered: Jul 2005
Location: Wagga Wagga, Australia
Posts: 262

Rep: Reputation: 30
the following is 2 commands on one line and will save all to file (filename) and then pipe the entire list through so you have a copy of them in a file and also a listing too look through.
#find / -path /proc -prune -o -user testacct -ls > (filename) ; cat (filename) | less
you could do
#find / -path /proc -prune -o -user testacct -ls | less
if you do not want to keep the reults.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I stop the output screen when double click the jar file antony_csf Programming 3 07-07-2004 06:38 AM
Colours in directory listing and XMMS Output plugins Kristijan Linux - Newbie 3 02-22-2004 07:21 AM
redirecting cpio screen output to file rawii Solaris / OpenSolaris 1 02-11-2004 09:28 AM
PHP: save output to a file mikeshn Programming 2 10-25-2003 06:57 AM
Log Screen Output to a file sdandeker Linux - Newbie 3 09-17-2003 02:57 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration