Category: Command Line
Run a Command if Another Command Succeeds
This will let you run a linux command based on the success of anther command. Note: This will only work…
Pid Command
Create a command that will return the pid of the given command string.. #!/bin/sh ps aux|grep 1|head -n1|awk ‘{print2}’
Sort a File
A Linux command to sort the contests of a file sort file.ext [tags][/tags]
Some Processor Intensive Commands
I run these commands when I am off for lunch or something… sudo /bin/bash /usr/sbin/makewhatis -w sudo /usr/bin/updatedb #These two…
Merging a Branch with the Master Branch in git
The commands needed to merge two branches in git. git checkout master git merge BrachName git commit -m “Merged” -a
Enable Bridging for VirtualBox in Fedora 8
To access net on a guest OS installed within VirtualBox, you have to enable bridging. This is what I did……
Linux Command to List all the Files Recursively
Recursively list all files in the current folder and all the sub folders ls -R ls -R1
Linux command to get the MD5 of a File
Use this command to find the MD5 of a file. md5sum file.txt
Braching in Git
Use this command to create a new brach in a git Repository git branch NameOfNewBranch
Recent Comments