Linux

Before You begin


Finding Your Way

  • pwd – present working directory
  • head – output first part of file
  • tail – output last part of file
  • date – print system date and time
  • passwd – change user password
  • cd – change directory
  • ls – list the directory contents
  • man – manual page

Managing Files

  • touch – update file timestamp / create a new file
  • rm – remove files
  • mkdir – make directory
  • rmdir – remove directory
  • cat – concatenate files
  • cp – copy files
  • mv – move / rename files
  • searching files – file globbing
  • ln – creating links
  • sort – sorting file content
  • grep – search contents within a file

Managing User and Groups


File Permissions

  • File Permissions – Difference between read, write and execute permissions
  • chmod – change file/directory permissions
  • umask – change default file/directory permissions
  • ACL – Access Control List

Pipes and Redirection

  • Redirection – Sending output of process to a file
  • Pipes – Sending output of process to another process

Scheduling Tasks

crontab – scheduling recurring tasks


Disk/Storage Management

Shell Script


Other Helpful Tips