/**/ Linux - Dextutor

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
  • comm – compare files
  • diff – compare files

Managing User and Groups

  • useradd – create a new user account
  • userdel – delete an existing user account
  • usermod – modify an existing user account
  • groupadd – create a new group
  • groupmod – modify an exiting group
  • groupdel – delete a group
  • id – print user and group id
  • lid – print users of a group or groups for a user

File Permissions


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