Skip to main content

Common Commands


Some of these commands may be Shell specific.

  • | - Pipes output from one command into another.
  • !name - Implements the last command that started with the word "name", so !f95 will implement the last fortran 95 compilation.
  • > - Redirect stdout/stderr into a file.
  • cat - Concatenates files and print on the standard output.
  • cd - Change the current directory.
  • cd - - This takes you to the previous directory you were in.
  • chmod - Change file access permissions.
  • clear - Clear the terminal screen.
  • Ctrl-C - Terminates the current Unix command.
  • cp - Copy files and directories.
  • Ctrl-P - Displays previous commands in Unix/Linux. Use Ctrl-N to go forward in the list of commands.
  • diff - Find differences between two files.
  • echo - Display a line of text.
  • f95 - Fortran 95 compiler.
  • find - Search for files in a directory hierarchy.
  • grep - Print lines matching a pattern.
  • gzip - Compress or expand files.
  • ls - List directory contents.
  • man - Displays a manual page for a specified command.
  • mkdir - Make directories.
  • more - File perusal filter for crt viewing.
  • mv - Move (rename) files.
  • paste - Merge lines of files.
  • pwd - Print name of current/working directory.
  • rm - Remove files or directories.
  • sdiff - Find differences between two files and merge interactively.
  • ssh - OpenSSH SSH client (remote login program).
  • Tab - Complete words in Unix/Linux. E.g. If you have a file called mark in your directory and you type "ls m" followed by tab, then it will automatically complete "ls mark" as long as that is the only file beginning with "m".
  • tar - The GNU version of the tar archiving utility.
  • top - Display Unix/Linux status.
  • Up/Down Arrow - Displays previous commands.