Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged directory



« Prev 1 Next »
Create a compressed TAR archive preserving permissions
0 104 posted 3 years ago by rm1984
Recursively find and list the last modified files in a directory
0 202 posted 4 years ago by rm1984
0 107 posted 6 years ago by jlmarks
download directory to localhost home folder new-dir-name
0 84 posted 8 years ago by zackn9ne
Modified a little bit to make it easier to change the location of the recycle bin.
0 114 posted 8 years ago by mkornatz
0 69 posted 9 years ago by tribal
currently formatted for use on mediatemple server. replace file path with absolute path of resources.
0 72 posted 9 years ago by dan_hoerr
-print0 and -0 are used to allow for spaces and other wacky chars in directory names
0 60 posted 9 years ago by jfine
Expects all files to be in the current directory; does not recurse into subdirectories. Replace "TEXTTOREMOVE" with the text you wish to remove from the filename. Replace *.csv with a search term appropriate for your situation.
0 118 posted 9 years ago by powerthru
Execute on the command line. Assumes all files are in the current directory; does not recurse into subdirectories. Replace "*.html" with correct search term for your situation; replace "FS-" with the leading text you wish to remove. This example remo...
0 80 posted 9 years ago by powerthru
0 53 posted 9 years ago by pflangan
This command line aims at moving directories from a target location to the present working directory (pwd), backing the pwd directories up as it encounters them. The script works by: 1. Iterating through the contents of the target directory (us...
0 119 posted 10 years ago by karlhorky
Found it on wiki
0 58 posted 10 years ago by TEHEK
here's a script, mod_files.sh, in ext/session for creating directory tree with depth X for sessions. As it stands, it's pretty poorly documented and very basic. I * got exceptionally bored and rewrote most of it, the patch is attached. It runs...
0 102 posted 10 years ago by nkm
When using `ln` to create a link in a different directory, the semantics of creating hard and symbolic links differ. That is because a hard link contains a direct reference to its target's data, while a symbolic link is just a string containing a (p...
1 63 posted 10 years ago by deepsoul
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0 92 posted 10 years ago by iloveitaly
change user's home directory
0 56 posted 11 years ago by stiobhart
This command will list every file under /my/directory larger than 250kB and sort it largest to smallest.
13 76 posted 13 years ago by SunnyJim
« Prev 1 Next »