|
Jun
09
|
1 To get hard disk information.
hdparm -I /dev/sda
2 Search and replace option in vi.
:%s/old/new/g
3 To make an icon.
convert -size 900×120 xc:black -font Times-Roman -pointsize 100 -fill green -annotate +20+80 ‘Linux is the Best’ -fill green -annotate +25+90 ‘Linux is the Best’ -trim +repage logo1.png
4 To replace one word with another with the backup of the original one.
sed -ibackup s/orange/grapes/g sedd
5 To search for a particular word and delete it.
find / -name aaa* -delete
6 To delete the last 30 days files. For files before 30 days +30.
find /root/wallpapers/ -mtime -30 | xargs /bin/rm -f
7 Command to dump partitions, directory etc..
dump -0aj -f /back/mydump /dev/sda2
8 Command to restore the dumped partition.
restore -rf mydump /back
9 To convert all jpeg files in the current directory to avi.
mencoder “mf://*.jpg” -mf fps=1 -o outputs.avi -ovc lavc -lavcopts vcodec=mpeg4
10 To convert avi to mpeg-2
mencoder /root/ItalianJob.avi -mf fps=1 -o /opt/ItalianJob.mpg -ovc lavc -oac pcm -lavcopts vcodec=mpeg2video
11 To convert mpg to avi.
mencoder /editor/Seval.mpg -ovc xvid -oac mp3lame -xvidencopts bitrate=800 -o /opt/Seval.avi
12 To delete lines 23-47 using vim or vi.
:23,47 d
13 Command to display the installed fonts.
fc-list
14 To check the CD/DVD drive/eject.
fuser /media/cdrom [eject]/[eject -p]
15 To kill the process.
fuser -k /media/cdrom
16 Find all files that have the .exe extension in the current directory.
find . -name \*.exe
17 Lists all of the files in the queue, as well as the user, the job number, the size and the root directories from which the print jobs originate.
lpq
18 To free memory when memory is in short.
memhog 500m
19 Cron to shutdown machine.
55 23 * * * /sbin/shutdown -h now
20 To password protect a zip file.
zip -e -r /root/Desktop/new /root/Desktop/old
21 To delete all hidden files from current directory.
rm -rf .*
22 Extracting files to a specific directory
unzip Commonly\ Used\ Malayalam\ Fonts.zip -d /usr/share/X11/fonts/TTF/ -(Sorry! I’m a Malayali)
23 To format CD-RW
cdrecord blank=fast dev=1,0,0
24 To stop all process except your shell.
kill 0
25 To disable usb in linux, eg. fedora 8.
mv /lib/modules/2.6.23.1-42.fc8/kernel/drivers/usb/storage/usb-storage.ko /opt/
June 15th, 2009 at 9:45 am
Nice collection. Here is my command collection. Btw, the first comment in this post is spam.
February 4th, 2010 at 8:37 pm
D8Fvz0 bvkximzvscvj, [url=http://ykdkvoriyrjs.com/]ykdkvoriyrjs[/url], [link=http://jznycyzrodmg.com/]jznycyzrodmg[/link], http://vosbicxemekr.com/
February 26th, 2010 at 12:04 am
CoB4Hp gtvkjayadlql, [url=http://gdhtpswshhka.com/]gdhtpswshhka[/url], [link=http://edufuwwonzvs.com/]edufuwwonzvs[/link], http://euajbkvjdspa.com/
March 17th, 2010 at 8:10 pm
l7qQJ7 mqluavxrdkuk, [url=http://kmgjqsyjmxpc.com/]kmgjqsyjmxpc[/url], [link=http://mhynwwbbsodr.com/]mhynwwbbsodr[/link], http://bnqtposvoevo.com/
March 18th, 2010 at 5:25 pm
life insurance quotes %[ home insurance 205237 cheap life insurance %-]]] cheap health insurance >:P
March 18th, 2010 at 9:02 pm
cheap car insurance 8DDD life insurance quotes 8-(( cheap auto insurance quotes %O life insurance 8[
March 20th, 2010 at 10:38 am
life insurance quotes 8-(( cheap home insurance %-( life insurance 6799
March 20th, 2010 at 4:02 pm
cheap auto insurance %-]] homeowners insurance :[[[ life insurance mreopo
March 25th, 2010 at 12:10 pm
health insurance quotes uftm cheap auto insurance aknf homeowners insurance >:-[ life quotes usczio
April 10th, 2010 at 1:20 pm
xanax online najlfn prednisone vrijv pain pill ultram 509186 discount cialis 225373 cialis 058
April 12th, 2010 at 10:00 am
discount viagra 835 ultram >:OOO buy xanax =(( buy cialis =))
April 12th, 2010 at 1:07 pm
discount xanax 72206 ultram :-]] depakote 01823 phentermine no prescription 1024
April 14th, 2010 at 12:49 pm
tramadol hci hjdrh cialis
) tramadol hcl-acetaminophen jsgkxc buy cialis viagra :-]]] cialis jrkezt
April 14th, 2010 at 1:19 pm
viagra 8-DD xanax without a prescription 60126 buy viagra hzn buy depakote erbw cialis qqv
April 14th, 2010 at 5:15 pm
buy 150 tramadol :-O xanax inyq valium %O tramadol agaqml
April 16th, 2010 at 12:33 pm
in home health care insurance neukba slots 57909 cheap auto insurance 8-)) health insurance coverage %(( life insurance quotes 8-[[ buy car insurance online 090
May 2nd, 2010 at 4:18 pm
I was wondering this myself, Great comment #3
May 19th, 2010 at 11:45 pm
I was wondering this myself, Great comment #3
June 18th, 2010 at 4:05 pm
hey whats your myspace page.