Clear the command shell window in Ubuntu

Very simple, either use the clear command: clear or hit Ctrl+L

September 11, 2006 · 1 min · 11 words · Steven Vazquez

Display available memory on Linux / Ubuntu

Run this command from a terminal window. This works on debian, ubuntu, and redhat. I’m sure it works on others but those are the only ones I have access to.

September 11, 2006 · 1 min · 30 words · Robert Farmer

Display the routing table in either Windows or Ubuntu

From a command prompt or terminal window, run this command: netstat -rn You should see output that looks similar to this: Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0

September 11, 2006 · 1 min · 61 words · Jennifer Santiago

Dump just the table structure to a file in MySQL

Example: mysqldump -d -h localhost -u root -p2Uad7as9 database01 > dumpfile.sql

September 11, 2006 · 1 min · 11 words · Susan Stephens

Installing PHP5 and Apache on Ubuntu

Here’s the quick and easy way to get PHP up and running on your Ubuntu box. Your web files will now be found in /var/www/

September 11, 2006 · 1 min · 25 words · Miss Jessica Rodriguez

List disk space usage on Ubuntu

Simply open a new Terminal window and punch in in this command df -Th

September 11, 2006 · 1 min · 14 words · Darren Miles

Make Ubuntu Stay in Root Mode

Instead of having to constantly pop in in ‘sudo’ every time you should probably make an admin change, it’s possible for you to use one of these commands to act as root. To switch to full root mode: sudo -s -H To switch to using root mode, but still act as your user account: sudo -s

September 11, 2006 · 1 min · 56 words · Kimberly Russell MD

Restore MySQL database from a backup file

There are many reasons you would want to restore a database from a backup file…

September 11, 2006 · 1 min · 15 words · Tony Mitchell

Switch MySQL to listen on TCP

By default, MySQL only allows connections from the localhost address.

September 11, 2006 · 1 min · 10 words · Gregory Stanley