LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-04-2005, 01: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


Hi,

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

rolly
 
Old 07-04-2005, 02:05 AM   #2
naveenrajn
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, 02:06 AM   #3
WhatsHisName
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
Example:

ls > file_name

File file_name will contain the terminal output from ls.
 
Old 07-04-2005, 02:23 AM   #4
Michael Johnson
Member
 
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.
 
  


Reply


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 07:38 AM
Colours in directory listing and XMMS Output plugins Kristijan Linux - Newbie 3 02-22-2004 08:21 AM
redirecting cpio screen output to file rawii Solaris / OpenSolaris 1 02-11-2004 10:28 AM
PHP: save output to a file mikeshn Programming 2 10-25-2003 07:57 AM
Log Screen Output to a file sdandeker Linux - Newbie 3 09-17-2003 03:57 AM


All times are GMT -5. The time now is 10:31 AM.

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