CSC128: Introduction to Linux

Basic Commands


  • ls
    provides a list of the files in the current directory.

  • ls -l
    provides a long list, that includes information about each file.

  • ls -la
    provides a long list, about ALL files even hidden ones (files that begin with a . in their name).

  • cp
    copies files from one name to another, or from one location to another.

  • mkdir
    makes a new directory.

  • rmdir
    removes a directory. The directory must be empty to be removed unless you 'force' it (see the man page for info).

  • mv
    moves or renames files.

  • rm
    permanently removes files.

  • cat
    displays the contents of a text file.
    more and less make it easy to look at one page at a time, search through the text, etc.

  • head
    tail

    display only the beginning or end of text.

  • man
    get detailed information about a command.

  • info
    get detailed information about a command.