Posts Tagged With: directory

Copying a directory

Tagged with: , , , , ,

Copying a directory


cp -a dir1 dir2 
No Comments »

Delete Multiple Folders

Tagged with: , , , , ,

Remove two directories and their contents recursively


rm -rf dir1 dir2
No Comments »

Remove a Directory Recursively

Tagged with: , , , , ,

Remove a directory called ‘dir’ and contents recursively


rm -rf dir
No Comments »

Show Space Usage of a Directory

Tagged with: , , , , ,

Estimate space used by directory.


du -sh dir
No Comments »

Command to io to Previous Folder

Tagged with: , , , , ,

Go back to the previous folder


cd -
No Comments »

Create a Directory Tree in One Command

Tagged with: , , , , , ,

You can create a directory tree using just one command in Linux


mkdir -p /tmp/dir1/dir2
No Comments »

Listing all Files Recursively in Windows

Tagged with: , , , , , , ,

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]

17 Comments »

Directory Listing Only Search

Tagged with: , , , , , ,

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

No Comments »

List All Files in a Folder Recursively

Tagged with: , , , , , , ,

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]

No Comments »