Ubuntu Reference Page

Linux Applications that I like to use with Ubuntu


Ubuntu Server Applications




Other Linux Applications



Command Line - file management

  • ls list files
  • ls <option>
    1. ls -a (include hidden files)
    2. ls -d (list directories only)
    3. lshw (list all installed hardware)
    4. lsusb (list usb ports)
  • pwd present working directory
  • cd change directory
    1. go to root: cd /
    2. go to home dir: cd~
    3. go up one dir: cd ..
  • cp copy file
    1. syntax: cp Source Destination
  • rm remove files and directories
    1. rm [OPTION]... FILE...
    2. Option: -R removes directories and their contents recursively
  • mkdir make directory
  • chmod change permissions on files
    1. Syntax: chmod [option] [mode] file
    2. Options: -v verbose, -R Recursive
    3. Mode: (example) 644 First digit is for users, second digit for groups, third digit for others
      Value for each digit is a sum of permissions: read 4, write 2, execute 1
  • chown change user and group ownership of files
    1. Syntax: chmod [option] [owner:group] file/directory
    2. Option: -R Recursive
    3. Example 1: sudo chown carl:carl webpage.htm
    4. Example 2: sudo chown carl:carl /media/share
  • dd Copy a CD to a disk image
    1. dd if=/dev/cdrom of=image.iso

How I fixed...

Command Line - system admin

  • sudo apt-cache search "search parameter" search repositories for applications
  • sudo apt-cache show gthumb show attributes for specified application
  • sudo apt-get install gthumb install application and dependencies
  • sudo apt-get remove gthumb remove application
    1. sudo apt-get --purge remove gthumb removes configuration files too
  • sudo apt-get update updates package list
  • sudo apt-get upgrade actually updates installed packages
  • both at once:
    sudo apt-get update && sudo apt-get -y dist-upgrade
  • aptitude package management interface for server
  • shutdown [option] [when]
    1. options: -r (restart), -h (halt system after shutdown)
    2. when now, 20:15 (at 8:15 PM), 12 (in 12 minutes)
  • wget download file from web
    1. syntax: wget http://www.site.com/filename.deb
  • dpkg command line package manager
    1. Reference: LINK
    2. Example: dpkg -i somepackage.deg

Key Configuration Files


Key system log files

  • /var/log/syslog general system log
  • /var/log/auth.log system authentication logs
  • /var/log/mail.log
  • /var/log/messages
  • /var/log/dmesg kernel ring buffer messages

Video

motion
  • /etc/motion/motion.conf
  • Commonly modified parameters:
    1. videodevice
    2. input
    3. rotate
    4. height
    5. width
    6. framerate
    7. threshold
    8. pre_ & post_capture
    9. target_dir
  • Next item
  • another item