cmdnix (@cmdnix) profile picture

Linux command and shell script tips.

/bin/bash
Joined October 2008
[cmd] tail -f /var/log/messages | grep 'error' # see live errors in logs
[cmd] backup Firefox profile: cp -r /home/user/.mozilla /home/user/backup/firefox
1
1
[cmd] check and repair a Linux file system: fsck /dev/sda1
1
[cmd] list partitions on Ubuntu: sudo fdisk -l
1
3
[cmd] playing audio file: play file.wav
[cmd] recording audio: rec file.wav
[cmd] start Firefox with profile manager: firefox -ProfileManager
[cmd] installing Inkscape on Ubuntu to open Adobe Illustrator and vector image files: sudo apt-get install inkscape
2
1
[cmd] convert LaTex to OpenOffice: mk4ht oolatex file.tex
[cmd] convert picture from type to other: convert file.gif file.png
1
1
[cmd] execute a jar file: java -jar file.jar
[cmd] mysql -u username -p password -h host_name database_name < file.sql # import SQL file
[cmd] mysql http://www.nparikh.org/unix/mysql.php
1
1
[cmd] md5sum file.tar.gz http://en.wikipedia.org/wiki/Md5sum
[cmd] java helloworld # execute java program
[cmd] javac helloworld.java # compile java program
[cmd] g++ main.cpp -l glut // compile C++ program by using GCC with OpenGL library
1
1
[cmd] diff file1 file2 http://www.computerhope.com/unix/udiff.htm
1
[cmd] ifconfig http://www.computerhope.com/unix/uifconfi.htm
2
[cmd] usermod -g group_name user_name http://www.computerhope.com/unix/usermod.htm
1
1