Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged linux



following example code removes all ".svn" folders recursively
0 1813 posted 14 years ago by sabanulutas
tar is usually used for achiving applications, but what we are going to do in this case is tar it then pipe it over an ssh connection. tar handles large file trees quite well and preserves all file permissions, etc, including those UNIX systems which...
0 1997 posted 14 years ago by wnasich
Because our server is a virtual machine inside a virtual machine (it's like inception), we can't transfer file using FTP. You need using SVN repository as a bridge to do so. Follow [Exercise 3](http://www.cs.sfu.ca/cc/470/ggbaker/exer/3 "Exercise...
0 2877 posted 14 years ago by Xixian
See also http://www.gnu.org/software/bash/manual/bashref.html#Bindable-Readline-Commands for the standard bindings and more detailed explanation of what they do.
0 3109 posted 15 years ago by cczona
insert this to home directory .bashrc file
0 1548 posted 15 years ago by farstar78
OFP is the database environment
0 2052 posted 15 years ago by theonlyalterego
0 1881 posted 15 years ago by vigoncas
0 1754 posted 15 years ago by danshields
change KEY to key code you get at error message
0 2024 posted 15 years ago by kossmoss
0 1639 posted 15 years ago by ragnarokkrr
0 1519 posted 15 years ago by ragnarokkrr
0 1593 posted 15 years ago by ragnarokkrr
0 1815 posted 15 years ago by focal55
First command shows connected drives, may not be mounted. Second command formats the drive.
0 1793 posted 15 years ago by loungerdork
0 1643 posted 15 years ago by Risse
Check the shell run script if is bash.
0 1814 posted 15 years ago by vikiyou
Check if the user run this script is root.
0 1682 posted 15 years ago by vikiyou
0 1824 posted 15 years ago by wnasich
A couple of snippets useful for file management. I use these to make sure I understand how many files I'm about to modify, and then rename them.
0 2035 posted 15 years ago by alassiter
A very simple quick way to count the number of files in a directory.
0 2109 posted 15 years ago by alassiter
0 1580 posted 15 years ago by hamsterbacke82
0 1256 posted 15 years ago by poluz
1 2062 posted 15 years ago by Risse
0 1656 posted 15 years ago by hamsterbacke82
I use this to quickly (in one line) copy my own id_rsa.pub to remote server so I can connect w/out using my password.
1 2168 posted 15 years ago by electblake