Delete Multiple Folders
Tagged with: command, dir, directory, folder, Linux, rm
Saturday, March 8th, 2008 11:26 PM
Remove two directories and their contents recursively
rm -rf dir1 dir2
Remove two directories and their contents recursively
rm -rf dir1 dir2
Remove a directory called ‘dir’ and contents recursively
rm -rf dir
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
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]