Basic Command Line Linux

S Gowtham

[extra content not displayed in slide show]

Outline

  • Before We Begin
  • Very Basic Commands
  • Basic Commands
  • Help Me, Please
  • More Commands
[extra content not displayed in slide show]

Before We Begin

  • Commands are case-seNsitIvE

    clear and ClEar are not same
  • Usernames and Passwords are CaSe-SensitiVE too
  • When someone types a wrong command, they will be notified
  • Commands are common-sense based
  • Never more than 8 characters
[extra content not displayed in slide show]

Very Basic Commands

  • pwd ls clear

    Clears the terminal
  • pwd

    Present Working Directory
  • ls

    List the contents
[extra content not displayed in slide show]

Detailed Listing

  • ls ls -a

    'Hidden' files & folders
  • ls -l

    Permissions, ownership ...
  • ls -al
  • ls -ahl

    Human Readable Format
[extra content not displayed in slide show]

Directory Management

  • mkdir Directory-Name

    Create a directory called Directory-Name
  • cd Directory-Name

    Change into Directory-Name

    If Directory-Name not specified, you will be back in HOME directory
  • rmdir Directory-Name

    Deletes Directory-Name, iff it's empty
[extra content not displayed in slide show]

File Management

  • cp filename1 filename2
  • rm filename1
  • file filename1
  • cat filename1 filename2 > filename3
  • paste filename1 filename2 > filename3
[extra content not displayed in slide show]

User Related Information

  • whoami
  • who
  • w
  • finger username
  • passwd

  • I am struck and/or want to know more about a command...
[extra content not displayed in slide show]

Man Page : Your Best Friend

  • Might seem overwhelming, but information is useful
  • Seek it when you get struck
  • man commandname is how it's called
  • man man tells you about the man itself!
[extra content not displayed in slide show]

More About Commands

  • More than one can be used at once, via PIPES
  • Huge number of commands, but...
  • Commonly used ones have a graphical-equivalent (mouse clicks)
  • Google! Search for basic linux commands to learn more

  • Questions??
[extra content not displayed in slide show]