Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged directory



« Prev 1 Next »
Create a compressed TAR archive preserving permissions
0 4212 posted 10 years ago by rm1984
Recursively find and list the last modified files in a directory
0 4745 posted 10 years ago by rm1984
0 3215 posted 12 years ago by jlmarks
download directory to localhost home folder new-dir-name
0 2930 posted 14 years ago by zackn9ne
Modified a little bit to make it easier to change the location of the recycle bin.
0 2304 posted 15 years ago by mkornatz
0 1943 posted 15 years ago by tribal
currently formatted for use on mediatemple server. replace file path with absolute path of resources.
0 1971 posted 15 years ago by dan_hoerr
-print0 and -0 are used to allow for spaces and other wacky chars in directory names
0 1711 posted 15 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 2656 posted 16 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 2224 posted 16 years ago by powerthru
0 1727 posted 16 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 2346 posted 16 years ago by karlhorky
Found it on wiki
0 1655 posted 16 years ago by TEHEK
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 2328 posted 17 years ago by deepsoul
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0 3272 posted 17 years ago by iloveitaly
change user's home directory
0 1679 posted 17 years ago by stiobhart
0 1819 posted 19 years ago by priyanhere
This command will list every file under /my/directory larger than 250kB and sort it largest to smallest.
13 2417 posted 19 years ago by SunnyJim
« Prev 1 Next »