Summary

Keypoints

  • The command line (CLI)
    • an interface for typing commands directly to a computer’s operating system.
    • often gives access to many more capabilities than the graphical user interface does.
    • practical and normally faster in situations where you login with a terminal on a remote system.
  • The File System
    • directory structure starts with the top root directory, shown as /.
    • several standard subdirectories: /usr/bin, /home, /usr/lib, /usr/lib64, and /usr/local/bin.
    • important commands:
      • ls: lists files/directories
      • cd: change directory
      • chmod: change permissions
      • mkdir: create directory
      • rm: remove files or directories
      • cp: copy files or directories
      • mv: move or rename files or directories
      • IMPORTANT remember the -i option of rm, cp and mv to avoid loosing contents
    • symbolic link: pointer to another file or directory
  • Pipes and filters
    • less, more, cat
    • echo
    • redirection
    • wc, sort
    • pipes
    • environment variables: stores data that is used by the operating system and other programs. Can be exported and referenced.
  • Editors
    • command-line: nano, vim, emacs
    • gui: gedit, pluma, emacs
  • Patterns and scripting
    • finding patterns
      • grep, find
      • wild cards
      • regular expressions
    • scripting
  • Hints and tricks
    • auto-complete
    • short-cuts
    • alias
    • finding help

Extra

We have some advanced material in EXTRAS, for you to study on your own.

Questions

More information