SlideShare a Scribd company logo
1 of 19
Welcome!
                                  OSAC program
                              Date:- 1st June 2012

What we are doing today ?

- Brief introduction to UNIX system.
- Categorized list of commands.
- Examples of different commands.

                   -prepared by : Kedar Bhandari
UNIX ?

    In narrow sense :- time sharing operating
    system kernel , a program that controls the
    resources of a computer and allocates them
    among its users.
-lets usres run their programs,
-controls peripheral devices,
-provides a file system that manages the long-
  term storage of information such as
  programs,data, and documents.
UNIX ? (contd.)

    In broad sense :- not only the kernel but also
    essential programs like compilers, editors,
    command languages, programs for copying
    and printing files, and so on.

    Still more broadly :- Unix may even include
    programs developed by you or other users to
    be runon your system, such as tools for
    document preparation, rutines for statistical
    analysis, and graphics packages.
A word of advice :
”Don't be afraid to experiment ”
-If you are a beginner, there are very few
   accidental things you can do to hurt yourself or
   other users. So learn how things work by trying
   them.
Terminal and typing


    UNIX system is ful duplex
- the characters you type on the keyboard are
   sent to the system, which sends them back to
   the terminal to be printed on the screen.(echo
   process).
- ordinary printing characters.
- some interpreet your typing, for eg. : the
  RETURN key.
Terminal and typing (contd.)
- control characters.
      : ctrl + m – RETURN key
      : ctrl + d – tell a program that there is no more
           input
      : ctrl + g – rings the bell on the terminal
      : ctrl + h – backspace
      : ctrl + i – the TAB
      : ctrl + c – Break
What is Shell?

    The shell provides you with an interface to the
    UNIX system. It gathers input from you and
    executes programs based on that input. When
    a program finishes executing, it displays that
    program's output.

    A shell is an environment in which we can run
    our commands, programs, and shell scripts.
    There are different flavors of shells, just as
    there are different flavors of operating systems.
    Each flavor of shell has its own set of
    recognized commands and functions.
Different types of shell

    * Bourne shell (sh)

    * C shell (csh)

    * TC shell (tcsh)

    * Korn shell (ksh)

    * Bourne Again SHell (bash)
System information commands

    df         -display filesystem

    free

    top

    uname -a       -system information

    lsb_release -a         -version information

    ifconfig

    iwconfig       -wireless specific information

    ps             -processes running
System information commands

    lspci    -all PCI buses

    lsusb    -USB buses

    lshal    -devices of Hardware Abstraction
    Layer

    lshw -lists hardware in the system
Working with the file system

    pwd

    cd
- cd /
- cd ~
- cd ..
- cd -
- cd /var/cache
Manipulating Files and Folders

    cp

    mv

    rm

    ls

    mkdir

    chmod

    chown
Searching and Editing Text Files

    grep

    Sed -strean editor

    cat

    nano

    less -view text file with pipe (eg. $ls | less)
Dealing with Users and Groups

    adduser

    passwd

    who

    deluser

    delgroup
Getting Help on the Command Line

    man man

    man intro
Searching for Man Files

    man -k foo
- apropos
- whatis
Using Wildcards

    * - match any number of characters.

    ? - match any single character.

    [characters] - match any of the character with in
    the brackets.

    [! characters] – match any characters that are
    not listed.
Becoming Root

    sudo -s -run a shell as root

    sudo bash -o vi   - run a specific shell as root

    sudo -i     - sets root's initial login
    environment

    sudo su - root         - becomes root and run
    root's                                longin
Mounting USB drive

    $ cd /mnt/

    $ su (required to enter your password)

    # mkdir usbflash

    # ls /mnt/

    # mount /dev/sda1 /mnt/usbflash

    # ls usbflash

    # umount /dev/sda1 /mnt/usbflash

    # exit

More Related Content

What's hot

Introduction to Linux for bioinformatics
Introduction to Linux for bioinformaticsIntroduction to Linux for bioinformatics
Introduction to Linux for bioinformaticsBITS
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsBITS
 
Install Archlinux in 10 Steps (Sort of) :)
Install Archlinux in 10 Steps (Sort of) :)Install Archlinux in 10 Steps (Sort of) :)
Install Archlinux in 10 Steps (Sort of) :)Sian Lerk Lau
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overviewAmeer Sameer
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1hutchison
 
Operating Systems 2
Operating Systems 2Operating Systems 2
Operating Systems 2hutchison
 
Linux Commands - 3
Linux Commands - 3Linux Commands - 3
Linux Commands - 3Kanchilug
 
11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copyShay Cohen
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsBITS
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dosNargiskhan786
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commandsHimani Singh
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeQasim Khawaja
 
Text mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsText mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsBITS
 
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': IntroductionPart 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': IntroductionJoachim Jacob
 

What's hot (20)

Introduction to Linux for bioinformatics
Introduction to Linux for bioinformaticsIntroduction to Linux for bioinformatics
Introduction to Linux for bioinformatics
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformatics
 
Install Archlinux in 10 Steps (Sort of) :)
Install Archlinux in 10 Steps (Sort of) :)Install Archlinux in 10 Steps (Sort of) :)
Install Archlinux in 10 Steps (Sort of) :)
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
2.Accessing the Pi
2.Accessing the Pi2.Accessing the Pi
2.Accessing the Pi
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1
 
Operating Systems 2
Operating Systems 2Operating Systems 2
Operating Systems 2
 
Linux Commands - 3
Linux Commands - 3Linux Commands - 3
Linux Commands - 3
 
11 linux filesystem copy
11 linux filesystem copy11 linux filesystem copy
11 linux filesystem copy
 
Productivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformaticsProductivity tips - Introduction to linux for bioinformatics
Productivity tips - Introduction to linux for bioinformatics
 
101 1.2 boot the system
101 1.2 boot the system101 1.2 boot the system
101 1.2 boot the system
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
 
Useful linux-commands
Useful linux-commandsUseful linux-commands
Useful linux-commands
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In Practice
 
Text mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformaticsText mining on the command line - Introduction to linux for bioinformatics
Text mining on the command line - Introduction to linux for bioinformatics
 
Linux Fundamental
Linux FundamentalLinux Fundamental
Linux Fundamental
 
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': IntroductionPart 1 of 'Introduction to Linux for bioinformatics': Introduction
Part 1 of 'Introduction to Linux for bioinformatics': Introduction
 

Viewers also liked

Orientation0809 no-animation-1222703038315096-9 (1)
Orientation0809 no-animation-1222703038315096-9 (1)Orientation0809 no-animation-1222703038315096-9 (1)
Orientation0809 no-animation-1222703038315096-9 (1)Leanelle Dizon
 
Cesar estevez power point
Cesar estevez power pointCesar estevez power point
Cesar estevez power pointCEET32
 
Web 434 entire course
Web 434 entire courseWeb 434 entire course
Web 434 entire courseWEB434
 
Otnvdd soapreso1-overview-494866
Otnvdd soapreso1-overview-494866Otnvdd soapreso1-overview-494866
Otnvdd soapreso1-overview-494866elnazeer
 
Orientation0809 no-animation-1222703038315096-9
Orientation0809 no-animation-1222703038315096-9Orientation0809 no-animation-1222703038315096-9
Orientation0809 no-animation-1222703038315096-9Leanelle Dizon
 
Administracion por objetivos
Administracion por objetivosAdministracion por objetivos
Administracion por objetivosHector Calisaya
 
Trabalhos de barcelona
Trabalhos de barcelonaTrabalhos de barcelona
Trabalhos de barcelona00107238
 
Persuasive speech - Gun Control - sph101-b2
Persuasive speech  - Gun Control - sph101-b2Persuasive speech  - Gun Control - sph101-b2
Persuasive speech - Gun Control - sph101-b2callen11
 
1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_Commands1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_CommandsGautam Raja
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.pptanandha ganesh
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commandsswtjerin4u
 
Introduction To Unix
Introduction To UnixIntroduction To Unix
Introduction To UnixCTIN
 
Regular Expressions grep and egrep
Regular Expressions grep and egrepRegular Expressions grep and egrep
Regular Expressions grep and egrepTri Truong
 

Viewers also liked (20)

Examples -partII
Examples -partIIExamples -partII
Examples -partII
 
Orientation0809 no-animation-1222703038315096-9 (1)
Orientation0809 no-animation-1222703038315096-9 (1)Orientation0809 no-animation-1222703038315096-9 (1)
Orientation0809 no-animation-1222703038315096-9 (1)
 
Cesar estevez power point
Cesar estevez power pointCesar estevez power point
Cesar estevez power point
 
Replicacion
ReplicacionReplicacion
Replicacion
 
Web 434 entire course
Web 434 entire courseWeb 434 entire course
Web 434 entire course
 
Otnvdd soapreso1-overview-494866
Otnvdd soapreso1-overview-494866Otnvdd soapreso1-overview-494866
Otnvdd soapreso1-overview-494866
 
Orientation0809 no-animation-1222703038315096-9
Orientation0809 no-animation-1222703038315096-9Orientation0809 no-animation-1222703038315096-9
Orientation0809 no-animation-1222703038315096-9
 
Administracion por objetivos
Administracion por objetivosAdministracion por objetivos
Administracion por objetivos
 
Trabalhos de barcelona
Trabalhos de barcelonaTrabalhos de barcelona
Trabalhos de barcelona
 
Persuasive speech - Gun Control - sph101-b2
Persuasive speech  - Gun Control - sph101-b2Persuasive speech  - Gun Control - sph101-b2
Persuasive speech - Gun Control - sph101-b2
 
1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_Commands1_Introduction_To_Unix_and_Basic_Unix_Commands
1_Introduction_To_Unix_and_Basic_Unix_Commands
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Anandha ganesh linux1.ppt
Anandha ganesh linux1.pptAnandha ganesh linux1.ppt
Anandha ganesh linux1.ppt
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Basics of Unix Adminisration
Basics  of Unix AdminisrationBasics  of Unix Adminisration
Basics of Unix Adminisration
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Introduction To Unix
Introduction To UnixIntroduction To Unix
Introduction To Unix
 
Zacarías cap 4
Zacarías cap 4Zacarías cap 4
Zacarías cap 4
 
Regular Expressions grep and egrep
Regular Expressions grep and egrepRegular Expressions grep and egrep
Regular Expressions grep and egrep
 
Unix commands
Unix commandsUnix commands
Unix commands
 

Similar to Terminal basic-commands(Unix) -partI

Similar to Terminal basic-commands(Unix) -partI (20)

Linux Notes-1.pdf
Linux Notes-1.pdfLinux Notes-1.pdf
Linux Notes-1.pdf
 
Unix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basiUnix_Introduction_BCA.pptx the very basi
Unix_Introduction_BCA.pptx the very basi
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpoint
 
Chapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix ConceptsChapter 2 Introduction to Unix Concepts
Chapter 2 Introduction to Unix Concepts
 
3. intro
3. intro3. intro
3. intro
 
cisco
ciscocisco
cisco
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
Introduction about linux
Introduction about linuxIntroduction about linux
Introduction about linux
 
Linux Workshop , Day 3
Linux Workshop , Day 3Linux Workshop , Day 3
Linux Workshop , Day 3
 
unix.ppt
unix.pptunix.ppt
unix.ppt
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Unix OS & Commands
Unix OS & CommandsUnix OS & Commands
Unix OS & Commands
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Introduction to-linux
Introduction to-linuxIntroduction to-linux
Introduction to-linux
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Linux
LinuxLinux
Linux
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 

Recently uploaded

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991RKavithamani
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
Industrial Policy - 1948, 1956, 1973, 1977, 1980, 1991
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

Terminal basic-commands(Unix) -partI

  • 1. Welcome! OSAC program Date:- 1st June 2012 What we are doing today ? - Brief introduction to UNIX system. - Categorized list of commands. - Examples of different commands. -prepared by : Kedar Bhandari
  • 2. UNIX ?  In narrow sense :- time sharing operating system kernel , a program that controls the resources of a computer and allocates them among its users. -lets usres run their programs, -controls peripheral devices, -provides a file system that manages the long- term storage of information such as programs,data, and documents.
  • 3. UNIX ? (contd.)  In broad sense :- not only the kernel but also essential programs like compilers, editors, command languages, programs for copying and printing files, and so on.  Still more broadly :- Unix may even include programs developed by you or other users to be runon your system, such as tools for document preparation, rutines for statistical analysis, and graphics packages.
  • 4. A word of advice : ”Don't be afraid to experiment ” -If you are a beginner, there are very few accidental things you can do to hurt yourself or other users. So learn how things work by trying them.
  • 5. Terminal and typing  UNIX system is ful duplex - the characters you type on the keyboard are sent to the system, which sends them back to the terminal to be printed on the screen.(echo process). - ordinary printing characters. - some interpreet your typing, for eg. : the RETURN key.
  • 6. Terminal and typing (contd.) - control characters. : ctrl + m – RETURN key : ctrl + d – tell a program that there is no more input : ctrl + g – rings the bell on the terminal : ctrl + h – backspace : ctrl + i – the TAB : ctrl + c – Break
  • 7. What is Shell?  The shell provides you with an interface to the UNIX system. It gathers input from you and executes programs based on that input. When a program finishes executing, it displays that program's output.  A shell is an environment in which we can run our commands, programs, and shell scripts. There are different flavors of shells, just as there are different flavors of operating systems. Each flavor of shell has its own set of recognized commands and functions.
  • 8. Different types of shell  * Bourne shell (sh)  * C shell (csh)  * TC shell (tcsh)  * Korn shell (ksh)  * Bourne Again SHell (bash)
  • 9. System information commands  df -display filesystem  free  top  uname -a -system information  lsb_release -a -version information  ifconfig  iwconfig -wireless specific information  ps -processes running
  • 10. System information commands  lspci -all PCI buses  lsusb -USB buses  lshal -devices of Hardware Abstraction Layer  lshw -lists hardware in the system
  • 11. Working with the file system  pwd  cd - cd / - cd ~ - cd .. - cd - - cd /var/cache
  • 12. Manipulating Files and Folders  cp  mv  rm  ls  mkdir  chmod  chown
  • 13. Searching and Editing Text Files  grep  Sed -strean editor  cat  nano  less -view text file with pipe (eg. $ls | less)
  • 14. Dealing with Users and Groups  adduser  passwd  who  deluser  delgroup
  • 15. Getting Help on the Command Line  man man  man intro
  • 16. Searching for Man Files  man -k foo - apropos - whatis
  • 17. Using Wildcards  * - match any number of characters.  ? - match any single character.  [characters] - match any of the character with in the brackets.  [! characters] – match any characters that are not listed.
  • 18. Becoming Root  sudo -s -run a shell as root  sudo bash -o vi - run a specific shell as root  sudo -i - sets root's initial login environment  sudo su - root - becomes root and run root's longin
  • 19. Mounting USB drive  $ cd /mnt/  $ su (required to enter your password)  # mkdir usbflash  # ls /mnt/  # mount /dev/sda1 /mnt/usbflash  # ls usbflash  # umount /dev/sda1 /mnt/usbflash  # exit