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

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinojohnmickonozaleda
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 

Recently uploaded (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
FILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipinoFILIPINO PSYCHology sikolohiyang pilipino
FILIPINO PSYCHology sikolohiyang pilipino
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 

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