ls command | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

ls command

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-17-2005
naamas03 naamas03 is offline
Registered User
 
Join Date: Sep 2005
Last Activity: 18 June 2012, 1:40 AM EDT
Posts: 94
Thanks: 1
Thanked 0 Times in 0 Posts
ls command

hi
i want to know which ls command in unix shows me the directories and files
under them for example
cd /usr2/acct
under this directory i have to directories :
tmp1
under tmp1 i have several files :a.log,c.log
under tmp2 i have 1 file:con.log
i want to know which command will show me this
tmp1
a.log
b.log
tmp2
con.log
can some one help me ?
thanks a lot
Sponsored Links
    #2  
Old 11-17-2005
vino's Avatar
vino vino is offline Forum Advisor  
Supporter (in vino veritas)
 
Join Date: Feb 2005
Last Activity: 9 April 2013, 8:19 AM EDT
Location: Sydney, Down Under
Posts: 2,847
Thanks: 0
Thanked 12 Times in 12 Posts
Why dont you start with the man pages ?

It says,


Code:
       -R, --recursive
              list subdirectories recursively

Sponsored Links
    #3  
Old 12-02-2005
npn npn is offline
Registered User
 
Join Date: Dec 2005
Last Activity: 3 February 2009, 7:43 AM EST
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
CPU & Memory Dir and files

Finding All Sub-Directories in Directory
find <Dir path> -type d -ls


Finding All Files in Directory
find <Dir path> -type f -ls
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing command output from one command to the next command in cshell kaaliakahn UNIX for Dummies Questions & Answers 2 02-10-2012 04:59 PM
unix command : how to insert text at the cursor location via command line? xib.be UNIX for Advanced & Expert Users 0 12-22-2010 05:45 PM
Need help! command working ok when executed in command line, but fails when run inside a script! 4dirk1 Shell Programming and Scripting 4 12-02-2010 05:47 AM
awk command in script gives error while same awk command at prompt runs fine: Why? catalys Shell Programming and Scripting 4 09-20-2010 10:07 PM
awk/sed Command : Parse parameter file / send the lines to the ksh export command rajan_san Shell Programming and Scripting 4 11-06-2008 12:29 PM



All times are GMT -4. The time now is 08:33 PM.