txt

Linux commands and code snippets collection

  • Home
  • About

Author Archives: Binny V A

03 Jan

Remove Application in Facebook

Facebook has managed to make this as complicated a a linux command. Hence this entry…

Account(Top Right Corner) > Privacy Settings > Apps and Games > Edit Settings > Apps you use > Edit Settings

Binny V A Posted in internet app, application, facebook, privacy, site 1 Comment
05 Oct

Generate Password

Command to generate a random password…


openssl rand -base64 6
Binny V A Posted in Command Line bash, command, password, rand, random, ssl Leave a comment
29 Oct

Watch for Ubuntu 9.10 Launch

This script will run check for ubuntu launch once every 5 mins and let you know if there is an launch.


while [ 1 ]; do if [ -z "`curl -I "http://cdimage.ubuntu.com/releases/9.10/release/"|grep "404"`" ]; then kdialog --msgbox "9.10 Released"; exit; fi; sleep 300;  done
Binny V A Posted in Code, Command Line, Linux bash, command, curl, launch, Linux, script, shell, ubuntu 2 Comments
21 Aug

Command to Find Current Ubuntu Version

Run this command to find the installed version of Ubuntu…


cat /etc/lsb-release
Binny V A Posted in Command Line, Linux command, Linux, release, ubuntu, version 7 Comments
25 Jul

top in Batch Mode

Run top in batch mode


top -b -d 10 -n 3
Binny V A Posted in Command Line, Linux batch, cli, command, filler, Linux, top Leave a comment
22 Jul

Trasfer over the network

Transfer stdin and stdout to and from machines over the network


ssh remote_machine 'cat - > file' < file
Binny V A Posted in Command Line, Linux cat, filler, network, shellfu, ssh, stdin Leave a comment
07 Jul

Add Line Numbers

Use this command to add line numbers to a text file…


sed = filename.txt | sed 'N;s/\n/\t/' > filename_number.txt
Binny V A Posted in Command Line, Linux command, line, Linux, number, numbering, sed, shellfu 3 Comments
06 Jul

Install Package List

Install a list of packages from a text file.


cat packages.txt | xargs apt-get install
Binny V A Posted in Command Line, Linux command, file, install, Linux, list, package, text Leave a comment
04 Jul

Rename Command

Different way to use the rename command.


rename 's/.html$/.php/' *.html
Binny V A Posted in Command Line, Linux command, file, Linux, rename, shellfu Leave a comment
03 Jul

Get a Random Futurama Quote

Useless – but fun – get a random Futurama Quote


curl -Is slashdot.org | egrep '^X-(F|B)' | cut -d \- -f 2
Binny V A Posted in Command Line, Linux curl, futurama, quote, random, slashdot Leave a comment

Post navigation

← Older posts
Newer 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
↑