Simple Commands

Commands in Linux take the following form:
command -options argument list

Where command is the name of the command, options are modifiers which change the behaviour of the command, these can be combined to modify the command's behaviour extensively. The argument list is a list of things you wish the commands to act on

ls: lists files in the current directory, you can list other directories by supplying their name as an argument to the command.

  • -l: long listing, gives more details about the files.
  • -a: show all files including hidden files
  • -t: sort by time rather than alphabetically
  • -d: show directories only

cd: changes the current working directory.

locate: used to find files in the file store, locate relies on a database which is built by the upgradedb command nightly.