Wednesday, July 20, 2011

How to extract multiple tar files at the same time?

# find . -iname \*bz2 -exec tar xjvf {} \;

Replace bz2 with the extension of your file. Also the tar options.

bz2 --> tar xjvf
gzip --> tar xzvf
xz --> tar xJvf

Friday, May 27, 2011

lftp --> Fatal error: Certificate verification: Not trusted

$ lftp user@test.ftp.com:/directory
Password:
cd: Fatal error: Certificate verification: Not trusted
To disable certificate verification in lftp,

$ cat ~/.lftp/rc
set ssl:verify-certificate no

Thursday, May 26, 2011

How to fix the missing system tray icons in Fedora 15 (F15) Gnome3

When starting applications such as parcellite, dropbox which needs a system tray, their icons are missing from Gnome3 system tray. The issue is caused due to a bug in Gnome3 and is fixed in the latest update.

# yum update gnome*

Once the update is finished logout ( a reboot is recommended ) and login again.

Still you cannot see the icons in system tray??
Make sure you are checking at the right place. In Gnome3 the system tray is not at the top right hand corner. It is visible at the bottom right hand corner of the activities (alt + f1) screen.

See the screen shot below,

Saturday, April 16, 2011

how to find length of a variable in BASH?

lets define a variable first,
# TEST=1234567890
to find the length of variable TEST,
# echo ${#TEST}
10
its possible to assign the length to a new variable, say LENGTH
# LENGTH=${#TEST}
# echo $LENGTH
10
now try to find the length of the following variable,
# TEST="my length is"
Technorati Tags: ,