Welcome To Snipplr
Everyone's Recent Snippets Tagged Bash
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
A simple but useful command. List processes running on the system.
0
626
posted 13 years ago by klovera
When modifying file permissions it is sometimes necessary to go back to the drawing board and set back to the default permissions. The following command can be used via ssh and takes a couple seconds vs trying to do this via ftp file by file (which c...
0
683
posted 13 years ago by klovera
-l switch output only the names of files in which the text occurs as opposed to each line containing the text<br>
-i switch ignores the case<br>
-r descends into subdirectories<br>
Example:
grep -lir "my search string" /home/account_name/public...
0
757
posted 13 years ago by klovera
First, find the proper package from http://www.joomla.org/download/ and copy its path. Then, over ssh, navigate to the root of the joomla install and perform these commands. In the case of an upgrade, this will overwrite in place the needed files, an...
0
858
posted 13 years ago by beneberle
Is there a command like cat in linux which can return a specified quantity of characters from a file?
0
741
posted 13 years ago by lamebollock
This .bashrc snippet sets the PS1 prompt so the title will be displayed in screen's statusbar.
0
713
posted 13 years ago by ChloeD