There are stopped jobs?

Seen this error, There are stopped jobs, when exiting/logging out of the terminal window? Well, as I’ve come to know, this is to do with linux jobs. In order to see the current stopped jobs, type the command, jobs To send an existing program that you are working on to the background and continue working at the shell prompt, use, ctrl+z. To continue with the program that you have sent to the background, use the command, fg ....

April 12, 2011 · 1 min · Jahnin Rajamoni

Ubuntu Keyring?

Had this crazy issue with the Gnome keyring. Well, it just kept telling me that the login keyring does not match the login password! Anyway, what is the keyring? GNOME Keyring is a daemon application designed to take care of the user’s security credentials, such as user names and passwords. The sensitive data isencrypted and stored in a keyring file in the user’s home folder. The default keyring uses the login password for encryption, so users don’t need to remember yet another password....

April 10, 2011 · 1 min · Jahnin Rajamoni

Installing JAVA plugin for Chrome in Ubuntu x64

Download the JRE binary file from www.java.com Extract the contents of the x64 binary file you have downloaded. In order to do that, Run the command, > chmod +x jre-6u24-linux-x64.bin Type, > ./jre-6u24-linux-x64.bin The files are extracted to a folder within the same folder where you have downloaded the binary file. Move the folder to any desired location. For e.g. > /opt/jre1.6.0_24_ Run the following command to create the plugins directory, > sudo mkdir /opt/google/chrome/plugins_ Change directory into the plugins folder, > cd /opt/google/chrome/plugins/ Create a softlink to the java library file, > sudo ln -s /opt/jre1....

April 8, 2011 · 1 min · Jahnin Rajamoni

Script to search and replace a string in a file using awk

To search and replace a string we use the following syntax with awk: awk '{ gsub(/SearchString/, ReplaceString); print }' Script, to enter a filename, search and replace the string in the file: echo -n "Enter Filename: " read file echo -n "Enter Search String: " read searchstr echo -n "Enter String to replace with: " read replacestr cat $file | awk -v var2=$replacestr '{ gsub(/'$searchstr'/,var2); print}' > file.tmp rm -rf $file mv file....

October 9, 2009 · 1 min · Jahnin Rajamoni

Script to rename file extension for multiple files in UNIX

Say, for e.g. you have a lot of files that are scattered across different folders that you would like to rename from .txt to .doc In order to get that done: Find the .txt files rename each .txt file to .doc The Script for i in `find /home/Documents -name *.txt`; do v=`ls $i|sed s/.txt/.doc/`; mv $i $v; done Note: Replace /home/Documents with the folder name where you want to recursively search Replace *....

August 26, 2009 · 1 min · Jahnin Rajamoni