Copying a directory
Copying a directory
cp -a dir1 dir2
Copying a directory
cp -a dir1 dir2
Remove two directories and their contents recursively
rm -rf dir1 dir2
Remove a directory called ‘dir’ and contents recursively
rm -rf dir
Estimate space used by directory.
du -sh dir
Go back to the previous folder
cd -
You can create a directory tree using just one command in Linux
mkdir -p /tmp/dir1/dir2
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]
The search that limits the results to just directory listings…
intitle:”index.of” inanchor:”Last Modified” inanchor:”Description” inanchor:”Parent Directory” -filetype:php -filetype:asp -filetype:htm -filetype:html -inurl:”index.of” search.string
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]