Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged unix



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 1687 posted 15 years ago by karlhorky
This script pulls in files with [rsync](http://samba.anu.edu.au/rsync/), storing them locally with hardlinks for unchanged, and real files for changed -files. * KEY=$HOME/.ssh/id_dsa_passwdless -- an id_rtsa key without a password. --adding this t...
0 1398 posted 15 years ago by berkes
The first directory listed is the one to copy, the second is where it's copied to.
0 1155 posted 16 years ago by beneberle
credit: tim robinson
0 1271 posted 16 years ago by pdswan
0 1045 posted 16 years ago by danshields
1 1568 posted 16 years ago by danshields
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 1668 posted 16 years ago by deepsoul
0 1149 posted 16 years ago by erichus
This shell script is tested under CentOS / RHEL and Fedora Linux. It should also work under other Linux distributions. If you would like to collect and submit information on your network configuration to your sr. Linux / UNIX admin use this script.
2 2440 posted 16 years ago by mprabhuram
Assuming you have a set of svn project folders inside a parent (only folders in parent) you can do a simple backtick `ls` to get the folder names for svn...
0 1521 posted 16 years ago by jasonm23
this will chmod the current directory, and all sub directories and files.
0 2308 posted 16 years ago by beneberle
commands for starting, stopping etc openSSH
0 1277 posted 16 years ago by stiobhart
commands for dealing with tar files
0 1093 posted 16 years ago by stiobhart
commands for dealing with tar files
0 1115 posted 16 years ago by stiobhart
find all files owned by xxx and change them to be owned by yyy
0 1184 posted 16 years ago by stiobhart
change user's home directory
0 1129 posted 16 years ago by stiobhart
making a symbolic link
0 1239 posted 16 years ago by stiobhart
some basic *nix terminal commands
0 1282 posted 16 years ago by stiobhart
2 1449 posted 16 years ago by mattchurchy
Specify the limit on the number of file descriptors a process may have.
0 1052 posted 16 years ago by liqweed
<http://www.commandlinefu.com/commands/using/chown>
0 1894 posted 16 years ago by zachharkey
copied straight from the source
1 1512 posted 17 years ago by melvitax
Query a nameserver to easily find out all there is to know about a domain name; Nameservers, MX-servers, cnames, subdomains etc.
1 1530 posted 17 years ago by torkil
Example: ln -s /usr/local/apache/logs ./logs
3 2249 posted 17 years ago by jonhenshaw
This is meant to be run as root, so do it at your own risk. It's very raw and needs error checking, but works. I run this script to get new django sites off the ground in a few minutes.
0 2191 posted 17 years ago by mandric
Quick command I use to remove .SVN folders from a tree structure copied from SVN working copy. Sometimes a bit easier than running an export.
6 2437 posted 17 years ago by wfdev
find command just returns a list of HTML files that have 'search_str' in it, vim takes a list of files.
0 1311 posted 17 years ago by mandric