tree Command
Tagged with: command, dir, Linux, ls, tree
Thursday, February 14th, 2008 11:17 PM
Show files and directories in a tree
tree
Show files and directories in a tree
tree
This command shows a graphical representation of the current sub-directories.
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'mand
View just the files of directory
ls -F
Show files and directory containing numbers
ls *[0-9]*
Recursively list all files in the current folder and all the sub folders
ls -R
ls -R1
Save the list of all files in a folder in windows - recursively.
dir /s /b>FileList.txt
[tags]command, dir, directory, folder, windows, list, ls ,recursive[/tags]
Save the list of all files in a folder - recursively.
find .|sed 's/\.\///;'
Another option is
ls -R -1
Kind of like the DOS command ‘dir /s‘
[tags]dir,ls,command,linux,folder,list,recursive,directory[/tags]