Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: directory

11 Mar

Copying a directory

Copying a directory


cp -a dir1 dir2 
admin Posted in Command Line, Linux command, copy, cp, directory, folder, Linux Leave a comment
08 Mar

Delete Multiple Folders

Remove two directories and their contents recursively


rm -rf dir1 dir2
admin Posted in Command Line, Linux command, dir, directory, folder, Linux, rm Leave a comment
07 Mar

Remove a Directory Recursively

Remove a directory called ‘dir’ and contents recursively


rm -rf dir
admin Posted in Command Line, Linux command, dir, directory, folder, Linux, rm Leave a comment
31 Jan

Show Space Usage of a Directory

Estimate space used by directory.


du -sh dir
admin Posted in Command Line, Linux command, directory, du, folder, Linux, space Leave a comment
29 Jan

Command to io to Previous Folder

Go back to the previous folder


cd -
admin Posted in Command Line, Linux cd, command, directory, folder, Linux, previous Leave a comment
15 Jan

Create a Directory Tree in One Command

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


mkdir -p /tmp/dir1/dir2
admin Posted in Command Line, Linux cli, command, directory, folder, Linux, mkdir, tree Leave a comment
29 Sep

Listing all Files Recursively in Windows

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]

admin Posted in Command Line command, dir, directory, folder, list, ls, recursive, windows 17 Comments
19 Aug

Directory Listing Only Search

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

admin Posted in Uncategorized apache, directory, folder, google, listing, power, search Leave a comment
10 Mar

List All Files in a Folder Recursively

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]

admin Posted in Command Line, Linux command, dir, directory, folder, Linux, list, ls, recursive Leave a comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑