LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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-06-2016, 11:14 PM   #1
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

Rep: Reputation: 61
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-06-2016, 11:23 PM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,776

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

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
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-06-2016, 11:29 PM   #4
wh33t
Member
 
Registered: Oct 2003
Location: Canada
Posts: 922

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

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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, 01:45 PM   #6
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
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 01:47 PM.
 
1 members found this post helpful.
  


Reply



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

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

All times are GMT -5. The time now is 01:15 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