Common Linux Commands

  1. Create a full system backup to an external hard drive: sudo rsync / /media/386D-43CF/Patrick/Ubuntu/ --exclude="/media" --verbose --delete --progress --recursive
  2. To remove a file or directory: rd
  3. To consult manual: man [command]
  4. To list content of a folder: ls
  5. To log in a root: sudo -i (dangerous)
  6. Change permissions so file or directory becomes fully writable: sudo chmod o+w [file or directory]
  7. Edit php.ini: /etc/php5/apache2/php.ini
  8. Restart Apache Web Server: /etc/init.d/apache2 restart