* Continuously check Apache error log file: $ tail -f /var/log/httpd/error_log * View first 15 lines from MySQL log: $ head -15 /var/log/mysqld.log * vi keyboard shortcuts => jump to end of line $ => start of line 0 => Delete rest of line D => Repeat the last command given: . (dot) => add [...]
Read the rest of this entry »Archive for the 'Ubuntu' Category
Feb 05
Feb 24
Backup MySQL Database to a file
Backing up your database is a very important system administration task, and should generally be run from a cron job at scheduled intervals. We will use the mysqldump utility included with mysql to dump the contents of the database to a text file that can be easily re-imported. Syntax: mysqldump -h localhost -u root -pmypassword [...]
Read the rest of this entry »Feb 24
Feb 17
Check processes not run by you
ps aux | grep -v `whoami` List the top ten “wasters” ps aux –sort=-%cpu | grep -m 11 -v `whoami`
Read the rest of this entry »Feb 17
Feb 11
Feb 19
Nov 06
How to fix X settings in Ubuntu
Choose from grub to start computer in “Recovery Mode” and in the next menu choose “Fix X” in order to reset system in the default X settings. It is that simple
Read the rest of this entry »Oct 29
Shuttleworth: Ubuntu developer Canonical may need 3-5 more years of funding
Founder of unprofitable Linux vendor says he’s willing to continue bankrolling the company Canonical Ltd., the commercial backer of the Ubuntu Linux operating system, is not yet turning a profit, but founder Mark Shuttleworth said during a teleconference today that he is prepared to bankroll the company for three to five more years. “We continue to [...]
Read the rest of this entry »