Computing.Net > Forums > Linux > ls list

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ls list

Reply to Message Icon

Name: Jeab
Date: March 11, 2003 at 07:03:10 Pacific
OS: Red Hat Linux
CPU/Ram: 256
Comment:

How can I create lsRl.txt file which contains a listing of all files in /var directory and subdirectories?

Jeab




Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: March 11, 2003 at 07:11:57 Pacific
Reply:

# ls -R /var > lsRl.txt

Alternatively, you may want to use tree instead:
# tree /var > lsRl.txt


0

Response Number 2
Name: givetomeabreak
Date: March 11, 2003 at 07:20:40 Pacific
Reply:

Also, you may consider using du or df

du -h /var >test.txt


0

Response Number 3
Name: Jeab
Date: March 11, 2003 at 08:18:11 Pacific
Reply:

Thank you.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: ls list

Shell scripting help www.computing.net/answers/linux/shell-scripting-help/19723.html

device manager? www.computing.net/answers/linux/device-manager/6066.html

what is the COPY command in Linux ? www.computing.net/answers/linux/what-is-the-copy-command-in-linux-/2478.html