linux - equivalent of "list folder contents"

robina_80

Active Member
hi guys,

i was just wondering is there an equivalent to this for linux ie just list the folder structure of a NAS ie so you can just browse the directory structure and not open/read the files

many thanks

rob
 

beers

Moderator
Staff member
tree probably does what you want:

[beers@fs Cisco]$ tree -d
.
├── Security
│** ├── ACS
│** ├── ASA IOS
│** └── ISE
├── Voice
│** ├── CallManager
│** ├── CallManager Express
│** │** └── cme-151-4Mv1
│** │** └── CME 8.6
│** │** └── CME 8.6.0 GUI
│** ├── Phone Loads
│** └── Unity Express
└── Wireless
├── AP IOS
├── Mobility Services Engine
├── vWLC
├── WCS
└── WLC IOS

18 directories
 

voyagerfan99

Master of Turning Things Off and Back On Again
Staff member
Like a Terminal command? The command is ls. And you can use the following switches with it.

-a list hidden files

-d list the name of the current directory

-F show directories with a trailing '/'

executable files with a trailing '*'

-g show group ownership of file in long listing

-i print the inode number of each file

-l long listing giving details about files and directories

-R list all subdirectories encountered

-t sort by time modified instead of name
 
Top