Month: November 2007

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

Creating an Alias in fish shell

Fish shell has an easy method to create a command alias… alias del=’rm’ save_function del

Connecting to a Remote MySQL Host

You can connect to a remote mysql server if you have the necessary permissions… mysql -h mysql.remote.com -u user

Simple Sed Command

Change all occurrences of ‘one’ to ‘two’ in the file.txt file in the grep example, enter this: sed ‘s/one/two/g’ file.txt

Converting a Video File

Converting a Video file mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=878 -o destination.avi source.avi Original Article

Show a small ‘alert’ from Command Line

Shows a small GUI dialog similar to alert with the specified message. xmessage ‘Hello’

RAR Support In Linux

RAR Support in Linux is easy – just install the unrar tool… sudo yum install unrar

Uptime

See how long your machine has been running uptime Example Output 23:42:28 up 6:20, 2 users, load average: 0.16, 0.22,…

Install dependencies for HTML Validator

Installing the dependencies for HTML Validator extension for Firefox on linux. sudo yum install compat-libstdc++-296 compat-libstdc++-33 tidy