Welcome To Snipplr


Everyone's Recent Bash Snippets Tagged linux



« Prev 1 2 3 4 5 6 7
join characters inside file by extracting keyword which separate by newline and special characters by including desired numbers characters on right and left
0 3667 posted 8 years ago by brm
Clear buffer cache on GNU/Linux systems
0 3789 posted 9 years ago by rm1984
There is a user-callback example in http://bazaar.launchpad.net/~bit-team/backintime/user-callback/view/head:/user-callback.apt-backup which will backup all package selections, sources and repository keys which are necessary to reinstall exactly the...
0 2092 posted 11 years ago by garretjames
Snippet found on forums to clean up /boot when too many kernels are installed. Though I think the script may need tweaking. Use at own risk!
0 1369 posted 11 years ago by garretjames
this can obviously be easily adapted to any other device names. Some commands in here are redundant but all together are more likely to work.
1 6676 posted 11 years ago by blackthorne
-r recursively copies files and folders
0 1609 posted 11 years ago by oxnard
0 2719 posted 11 years ago by jlmarks
This is a good way to show the difference between files side by side to quickly see what parts are not the same, if any.
0 1757 posted 12 years ago by donkeykong
With this script a new user gets created and gets his own VirtualHost and database. The username is used for building the domain, so the username "test" leads to the domain test.local. The password for the MySQL account used for creating the datab...
1 1811 posted 12 years ago by derbenni
Remove Unneeded Linux Kernels in Ubuntu
0 1569 posted 12 years ago by oxnard
In order to use a proxy by default for your network-based commands, create the file "~/.ssh/config" and give it these properties. Replace "proxyhost" with the hostname/IP of the proxy server and "80" with the port of the proxy server.
0 1794 posted 12 years ago by deanhouseholder
see source
0 2506 posted 12 years ago by bitsculptor
Shell script written in bash which displays a menu giving the you ability to add, edit, modify, and delete users.
1 4489 posted 13 years ago by dego89
customized version of Sexy Bash Prompt
1 2126 posted 13 years ago by oxnard
This method utilizes tasksel
0 1562 posted 13 years ago by bitfed
Use this snippet in Linux shell to install RVM and set it up for use with Sprockets.
0 2507 posted 13 years ago by symsec
Tests whether the script has been invoked with the correct number of parameters.
0 1454 posted 13 years ago by triffel
If you only want to show directories, replace "-type f" with "-type d".
0 1706 posted 13 years ago by tinytiger
How to redirect stderr to stdout in bash
0 1493 posted 13 years ago by tinytiger
A fast way to delete many files without getting an 'Argument list too long' error as wold be the case with 'rm'.
0 1586 posted 13 years ago by tinytiger
This script will do a daily backup of directories. If the files has not changed then it creates a hard-link to the file. If the file has changed then it will copy the new file. The backup is not much larger than the directories being backed up.
1 2119 posted 13 years ago by _reydin_
Check the version of CentOS
0 1676 posted 14 years ago by klovera
Sets the permissions for all folders to 755, and for all files 644. Useful for SUPHP configurations which required this specific permission setup.
0 1771 posted 14 years ago by axertion
How to run a tar archive backup excluding a directory. For example, running a website root directory backup excluding the 'backups' directory.
1 1564 posted 14 years ago by klovera
A fast and easy way to go through all vim-pathogen bundles and perform a git pull on all of them.
0 1955 posted 14 years ago by luizlopes
View ports on linux
0 1378 posted 14 years ago by Glycerine
**Usage** > newuser.bash [username] **What it does** - Generates a random password with `makepasswd` - Encrypts it with `mkpasswd` for use with useradd - Adds the user - Adds a MySQL Database for user - Adds a MySQL User for user -...
1 1817 posted 14 years ago by jiewmeng
Bytes per second isn't granular enough to get a real idea of how your network is really being used.
0 1158 posted 14 years ago by mattsn0w
« Prev 1 2 3 4 5 6 7