txt

Linux commands and code snippets collection

  • Home
  • About

Monthly Archives: November 2007

30 Nov

Linux command to get the MD5 of a File

Use this command to find the MD5 of a file.


md5sum file.txt
Binny V A Posted in Command Line, Linux command, file, Linux, md5, sum Leave a comment
28 Nov

Braching in Git

Use this command to create a new brach in a git Repository


git branch NameOfNewBranch
Binny V A Posted in Command Line brach, braching, cli, command, git, repo, source Leave a comment
28 Nov

Creating an Alias in fish shell

Fish shell has an easy method to create a command alias…


alias del='rm'
save_function del
Binny V A Posted in Command Line, Linux alias, command, create, fish, function, save, shell Leave a comment
27 Nov

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 
Binny V A Posted in Command Line, Linux cli, command, host, mysql, remote, server Leave a comment
25 Nov

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
Binny V A Posted in Command Line, Linux command, Linux, replace, sed Leave a comment
23 Nov

Converting a Video File

Converting a Video file


mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=878 -o destination.avi source.avi 

Original Article

Binny V A Posted in Command Line, Linux avi, command, Linux, mencoder, video, xvid Leave a comment
22 Nov

Show a small ‘alert’ from Command Line

Shows a small GUI dialog similar to alert with the specified message.


xmessage 'Hello'
Binny V A Posted in Command Line, Linux alert, dialog, message, xmessage Leave a comment
21 Nov

RAR Support In Linux

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


sudo yum install unrar
Binny V A Posted in Command Line, Linux command, compress, install, Linux, rar, unrar, yum, zip Leave a comment
19 Nov

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, 0.17

23:42:28 – Current Time
6:20 – The system was on for 6 hours and 20 mins

Binny V A Posted in Command Line, Linux cli, command, Linux, load, on, uptime Leave a comment
19 Nov

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
Binny V A Posted in Command Line, HTML, Linux extension, HTML, install, plugin, tidy, validation, validator, yum Leave a comment

Post navigation

← Older posts

Archives

  • October 2017
  • November 2015
  • August 2014
  • November 2013
  • August 2012
  • May 2012
  • March 2012
  • October 2011
  • August 2011
  • January 2011
  • October 2010
  • October 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • November 2007
  • October 2007
  • September 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007

Meta

  • Log in
Fruitful theme by fruitfulcode Powered by: WordPress
↑