Category: Command Line

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

Format a partition to Ext3

Format a partition to Ext3 mkfs.ext3 -b 4096 /dev/sda10

Manual to Text

Ever wonder how you can get a man page in into a format you can read and print? man command…