Work with Ubuntu Commands

Working with Files

• ls: lists files.
• rm: removes files.
• cp: copies files.
• mv: moves files.
• mkdir: make a directory
• rm -r remove directory

• tar -xf somefile.tar: Extract file

• tar -cvf somefile /somedirectory: Creating an Archive File

*If you want to create a compressed archive of the directory /home and write that backup to a file with the name home.tar.gz, you would use the following command:
• tar -czvf home.tar.gz /home

Extracting an Archive File

• tar -xvf /file.tar: Extracts the contents of file.tar to the current directory
• tar -zxvf /file.tar.gz: Extracts the contents of the compressed file.tar to the cur-
rent directory
• tar -xvf /file.tar C /somedir: Extracts the contents of /file.tar to a directory with
the name /somedir

Commands for User Management

• useradd: Adds users to the local authentication system
• usermod: Modifies properties for users
• userdel: Deletes users properly from a system
• passwd: Modifies passwords for users

Install Desktop

.Installing the GNOME Desktop Manage
sudo apt-get install xserver-xorg xfonts* gnome gdm

.Installing a Full-Scale Graphical Desktop
apt-get install ubuntu-desktop

.Installing a Lightweight Graphical Environment. Use "startx" command.
sudo apt-get install xserver-xorg x-window-system-core openbox

Install Drupal

cd path/to/old/drupal-site/
wget http://ftp.drupal.org/files/projects/drupal-6.10.tar.gz
tar -xzvpf drupal-6.10.tar.gz

Install Wordpress

wget http://wordpress.org/latest.tar.gz
tar -xzvpf latest.tar.gz