Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged directory



« Prev 1 Next »
Create a compressed TAR archive preserving permissions
0 734 posted 7 years ago by rm1984
Recursively find and list the last modified files in a directory
0 1073 posted 7 years ago by rm1984
0 787 posted 9 years ago by jlmarks
download directory to localhost home folder new-dir-name
0 606 posted 11 years ago by zackn9ne
Modified a little bit to make it easier to change the location of the recycle bin.
0 763 posted 12 years ago by mkornatz
0 547 posted 12 years ago by tribal
currently formatted for use on mediatemple server. replace file path with absolute path of resources.
0 601 posted 13 years ago by dan_hoerr
-print0 and -0 are used to allow for spaces and other wacky chars in directory names
0 468 posted 13 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 842 posted 13 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 687 posted 13 years ago by powerthru
0 469 posted 13 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 726 posted 13 years ago by karlhorky
Found it on wiki
0 516 posted 13 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 870 posted 14 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 633 posted 14 years ago by deepsoul
Flash has a weird cache mechanism, this makes sure that the browser isn't caching any data.
0 829 posted 14 years ago by iloveitaly
change user's home directory
0 498 posted 14 years ago by stiobhart
0 553 posted 17 years ago by priyanhere
This command will list every file under /my/directory larger than 250kB and sort it largest to smallest.
13 723 posted 17 years ago by SunnyJim
« Prev 1 Next »