LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-07-2016, 12:14 AM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 817

Rep: Reputation: 58
Is there a command line way to print out all of the contents and sub directories contents of a directory?


Kind of like "ls" on steroids.

So for example, the out might be like
Code:
> showfilesystem /var/www/

Contents
css/
css/default.css
css/default.min.css
img/
img/logo.png
img/layout/
img/layout/tile1.png
img/layout/tile2.png
img/layout/tile3.png
img/layout/tile4.png
index.html
logout.html
.htaccess
Does that make sense?
 
Old 06-07-2016, 12:23 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 4,579

Rep: Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097Reputation: 2097
You mean like "ls -R" or perhaps "tree" ?
 
2 members found this post helpful.
Old 06-07-2016, 12:24 AM   #3
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on freest; has been KDE, CLI, Novena but open... http://goo.gl/NqgqJx &c ;-)
Posts: 4,459
Blog Entries: 3

Rep: Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461
Hi.

Can install
Code:
tree
if it's not or wiled cards like
Code:
ls /*/*
but from ls's man page I think what you're looking for is
Code:
ls -R
have fun!
 
1 members found this post helpful.
Old 06-07-2016, 12:29 AM   #4
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 817

Original Poster
Rep: Reputation: 58
Ahh, excellent. Thank you gentlemen/women.
 
Old 06-07-2016, 08:36 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,416
Blog Entries: 13

Rep: Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522Reputation: 4522
Quote:
Originally Posted by wh33t View Post
Ahh, excellent. Thank you gentlemen/women.
A recommendation is to use the Thread Tools menu to mark this thread as solved. I concur with the advice already given and am glad that those helped you. Marking as Solved helps future searchers know that the question was indeed resolved.
 
2 members found this post helpful.
Old 06-07-2016, 02:45 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth( I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on freest; has been KDE, CLI, Novena but open... http://goo.gl/NqgqJx &c ;-)
Posts: 4,459
Blog Entries: 3

Rep: Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461Reputation: 1461
Just in case anyone's not familiar with man page it's, man then command like:
Code:
man ls
...

Last edited by jamison20000e; 06-07-2016 at 02:47 PM.
 
1 members found this post helpful.
  


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 to mget using ftp a directory and its contents and other sub-directories yousefzad Linux - Newbie 1 11-04-2012 11:40 PM
[SOLVED] copy contents of many directories in a directory Nitesh Agarwal Linux - General 1 03-06-2012 11:04 AM
[SOLVED] Directory contents, size ect from the command line Atomiccomp02 Linux - Newbie 2 06-15-2011 06:26 PM
How to flatten contents of sub-directories down to one directory? jsstevenson Linux - General 3 09-13-2008 06:01 PM
list contents of directory without listing contents baddah Linux - Newbie 2 06-12-2006 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:33 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
Open Source Consulting | Domain Registration