Special Sponsor

Sunday, January 27, 2008

Useful terminal command linux

Its been a long time I not write anything in this blog. Yes, ive been busy with work and at home I don't have an internet connection (3.5G or streamyx). Today I want to share a bit useful command in linux.


Show some computer stats

lspci

Access a dictionary through terminal (must have a working internet connection)
Note: Replace ‘word’ with whatever you’d like to search for (without quotes)

curl dict://dict.org/d:word

Check system temperature and battery charge

acpi -t

See a list of all running processes

ps aux

View the current time, date, and year

date

Show a simple calendar

cal

See what programs are running with the path names

ps -aux

See your current IP address

ifconfig -a

See what your system is doing at startup

dmesg

Show information about the computer users

finger -l

Show current Ubuntu version

cat /etc/issue

System Recovery

Backup xorg.conf

sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup

Replace current xorg.conf with a previously made backup

sudo cp /etc/X11/xorg.conf_backup /etc/X11/xorg.conf

Delete auto xorg.conf backups

sudo rm /etc/X11/xorg.conf.2007*

Use nano to edit xorg.conf (works in “terminal-only” mode)

sudo nano /etc/X11/xorg.conf

No comments: