SlideShare une entreprise Scribd logo
1  sur  21
RAJDHANI INSTITUTE OF
     TECHNOLOGY
                A
Presentation of Practical Training
                on
           Unix /Linux system




                                Presented By :
                                KULDEEP SHARMA
                                  B.TECH(IT)
History Of UNIX & Linux
   1957: Bell Labs found they needed an operating system
          which at the time was running various batch jobs.
   1965: Bell Labs create Multics (Multiplexed Information and
          Computing Service)
   1969: Summer 1969 UNIX was developed by AT&T
   1975: Sixth edition of UNIX released May 1975
   1985: GNU project started
   1991: Linux is introduced by Linus Benedict Torvalds who
          was a second year student of Computer Science at the
          University of Helsinki
   1993: NetBSD & FreeBSD released
   1994: Red Hat Linux is introduced
Shell
•   Program that interacts with kernel
•   Bridge between kernel and the user
•   Command interpreter
•   User can type command and the command is
    conveyed to the kernel and it will be executed




                      Softsmith Infotech
Linux Shellls                     whoami
                                                                                    pwd

   Shell interprets the command and                          Bash, Tcsh, Zsh
    request service from kernel
   Similar to DOS but DOS has only one
    set of interface while Linux can select                          Kernel
    different shell
     –   Bourne Again shell (Bash), TC shell
         (Tcsh), Z shell (Zsh)
   Different shell has similar but different functionality
   Bash is the default for Linux
   Graphical user interface of Linux is in fact an application program work on the shell
Linux File Types
    Normal         -   Normal file

  Directories      d   Normal directory

   Hard link       -
 Symbolic link     l   Shortcut to a file or directory

    Socket         s   Pass data between 2 process

  Named pipe       p   Like sockets, user can’t work directly with

Character device   c   Processes character hw communication

 Block device      b   Major & minor numbers for controling dev.
Some of Linux Commands(1)

   echo       man         help      info       ls

   cat        tac         cp        mv         rm

   cd         touch       pwd       mkdir      rmdir

   clear      alias       less      date       logout

   exit       reboot      halt
Basic Commands
Commands
•   su         switch user
•   passwd     change password
•   useradd    create new user account
•   userdel    delete user account
•   mount      mount file system
•   umount     unmount file system
•   df         show disk space usage
•   shutdown   reboot or turn off machine
Some of Linux Commands(3)
 Create   Partitions and Filesystem
 fdisk, mke2fs, mkfs.*
 Maintain   the Integrity of Filesystem
 e2fsck, fsck.*, du, df
 Filesystem    Mounting & Umounting
 mount, umount, /etc/fstab
‘vi’ Powerful Text Editor

                   • Insert Text
 Insert   Mode    • Delete  n+dd (Delete)
                        • dd
                        • yy  n+yy     (Copy)
                        •p              (paste)
 Normal    Mode        •P              (Paste)
                        •/              (Search)
                           •w           • q!
                        • v (Visual)    (Text Selection)
 Command     Mode         •q           •r
                             • wq = x   • s///
All LINUX commands start with the name of the command and
  can be followed by options and arguments.

                                           Linux text-based interface




                                         command to show the content of current
                                         directory




The prompt $ shows that bash
shell is using



                                    command to show the content of current
                                    directory with option -al
Some of the basic commands you should
                                              learn are the ones that help you navigate
Commands:                                     the file system.
/ (root directory)
/root – home directory of the user root
pwd – you can see your home directory
df – to see disk space available
cd – to change to different directory or to go back to home dir
.. - move to parent directory
ls – list the contents of a directory; Options: -l (more info)
                                                     -a (displays hidden files)
                                                     -t (sort by time)
                                                     -r (oldest first)
Example: ls –ltr : display an long list of files that are sorted by time, display the oldest ones first
cp : copy one file to another
rm : remove a file
man : ask for the manual (or help) of a command
     e.g. man cd ask for the manual of the command cd
cat : to show the content of a text file
     e.g. cat abc.txt show the content of abc.txt
whoami : to show the username of the current user

  Directory is denoted by a / (slash) character
  Executable program by a *
  Hidden file preceded by a . (dot)
Permission
Command
• chmod                      change file mode, add or remove
                             permission
• chown                      change owner of the file

Example)
   chmod a+w filename
                  add writable permission to all users
   chmod o-x filename
                  remove executable permission from others
    chmod a+x
                  Gives permission to the usser to execute a file

• u: user (owner),           g: group,o: others           a: all
Process Management
Commands
• kill             Stop a program. The program is
          specified by process ID.
• killall          Stop a program. The program is
          specified by command name.
• ps               Show process status
• top              Show system usage statistics
Foreground and Background
• Running job has two modes, “foreground” and “background”

• If program is running as “background”,
  the program keeps running even after your session was closed

• If program is running as “foreground”,
       Ctrl-C    stop program
       Ctrl-Z    let program background
Foreground and Background
•    To run programs in background mode, use “&”
    [nomura@ssc-1]$ command &


• To get background job back into foreground mode, use “fg”
  command.
  [nomura@ssc-1]$ fg
Why Use Linux?
•   Costs less
•   Stable
•   Reliable
•   Extremely powerful
The Advantage of Linux
•   Low purchase cost
•   Open Source Software (OSS)
•   UNIX heritage
•   Multi User
•   Scalability
•   Vendor support
•   Reliable uptime
•   Security
•   Logging System
•   …
The Disadvantage of Linux


 • Steep learning curve
 • Hardware support
 • End-user applications
Presentation  for  RHCE in linux
Presentation  for  RHCE in linux

Contenu connexe

Tendances (20)

005 skyeye
005 skyeye005 skyeye
005 skyeye
 
Basic Linux Internals
Basic Linux InternalsBasic Linux Internals
Basic Linux Internals
 
Basics of-linux
Basics of-linuxBasics of-linux
Basics of-linux
 
3. introduction of centos
3. introduction of centos3. introduction of centos
3. introduction of centos
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux admin interview questions
Linux admin interview questionsLinux admin interview questions
Linux admin interview questions
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux
Linux Linux
Linux
 
Linux Knowledge Transfer
Linux Knowledge TransferLinux Knowledge Transfer
Linux Knowledge Transfer
 
Linux Kernel Development
Linux Kernel DevelopmentLinux Kernel Development
Linux Kernel Development
 
Linux Fundamental
Linux FundamentalLinux Fundamental
Linux Fundamental
 
Linux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbaiLinux-training-for-beginners-in-mumbai
Linux-training-for-beginners-in-mumbai
 
Shell and its types in LINUX
Shell and its types in LINUXShell and its types in LINUX
Shell and its types in LINUX
 
Linux basic commands tutorial
Linux basic commands tutorialLinux basic commands tutorial
Linux basic commands tutorial
 
Linux history & features
Linux history & featuresLinux history & features
Linux history & features
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
Linux
LinuxLinux
Linux
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux commands
Linux commandsLinux commands
Linux commands
 

Similaire à Presentation for RHCE in linux

Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_bMohammad Reza Beygi
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Chander Pandey
 
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 HyderabadRavikumar Nandigam
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxRajesh Kumar
 
AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!Zubair Nabi
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to LinuxDimas Prasetyo
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPriyadarshini648418
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting StartedAngus Li
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptxGuhanSenthil2
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linuxPrasanth V
 
Linux week 2
Linux week 2Linux week 2
Linux week 2Vinoth Sn
 
Raspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSRaspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSMohamed Abdallah
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.pptKiranMantri
 

Similaire à Presentation for RHCE in linux (20)

3. intro
3. intro3. intro
3. intro
 
cisco
ciscocisco
cisco
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_b
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
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
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
 
AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!AOS Lab 1: Hello, Linux!
AOS Lab 1: Hello, Linux!
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Linux Getting Started
Linux Getting StartedLinux Getting Started
Linux Getting Started
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
LINUX_admin_commands.pptx
LINUX_admin_commands.pptxLINUX_admin_commands.pptx
LINUX_admin_commands.pptx
 
Introduction to linux
Introduction to linuxIntroduction to linux
Introduction to linux
 
redhat_by_Cbitss.ppt
redhat_by_Cbitss.pptredhat_by_Cbitss.ppt
redhat_by_Cbitss.ppt
 
Ch1 linux basics
Ch1 linux basicsCh1 linux basics
Ch1 linux basics
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
Raspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSRaspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OS
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 

Presentation for RHCE in linux

  • 1. RAJDHANI INSTITUTE OF TECHNOLOGY A Presentation of Practical Training on Unix /Linux system Presented By : KULDEEP SHARMA B.TECH(IT)
  • 2. History Of UNIX & Linux  1957: Bell Labs found they needed an operating system which at the time was running various batch jobs.  1965: Bell Labs create Multics (Multiplexed Information and Computing Service)  1969: Summer 1969 UNIX was developed by AT&T  1975: Sixth edition of UNIX released May 1975  1985: GNU project started  1991: Linux is introduced by Linus Benedict Torvalds who was a second year student of Computer Science at the University of Helsinki  1993: NetBSD & FreeBSD released  1994: Red Hat Linux is introduced
  • 3. Shell • Program that interacts with kernel • Bridge between kernel and the user • Command interpreter • User can type command and the command is conveyed to the kernel and it will be executed Softsmith Infotech
  • 4. Linux Shellls whoami pwd  Shell interprets the command and Bash, Tcsh, Zsh request service from kernel  Similar to DOS but DOS has only one set of interface while Linux can select Kernel different shell – Bourne Again shell (Bash), TC shell (Tcsh), Z shell (Zsh)  Different shell has similar but different functionality  Bash is the default for Linux  Graphical user interface of Linux is in fact an application program work on the shell
  • 5. Linux File Types Normal - Normal file Directories d Normal directory Hard link - Symbolic link l Shortcut to a file or directory Socket s Pass data between 2 process Named pipe p Like sockets, user can’t work directly with Character device c Processes character hw communication Block device b Major & minor numbers for controling dev.
  • 6. Some of Linux Commands(1)  echo  man  help  info  ls  cat  tac  cp  mv  rm  cd  touch  pwd  mkdir  rmdir  clear  alias  less  date  logout  exit  reboot  halt
  • 7. Basic Commands Commands • su switch user • passwd change password • useradd create new user account • userdel delete user account • mount mount file system • umount unmount file system • df show disk space usage • shutdown reboot or turn off machine
  • 8. Some of Linux Commands(3)  Create Partitions and Filesystem fdisk, mke2fs, mkfs.*  Maintain the Integrity of Filesystem e2fsck, fsck.*, du, df  Filesystem Mounting & Umounting mount, umount, /etc/fstab
  • 9. ‘vi’ Powerful Text Editor • Insert Text  Insert Mode • Delete  n+dd (Delete) • dd • yy  n+yy (Copy) •p (paste)  Normal Mode •P (Paste) •/ (Search) •w • q! • v (Visual) (Text Selection)  Command Mode •q •r • wq = x • s///
  • 10. All LINUX commands start with the name of the command and can be followed by options and arguments. Linux text-based interface command to show the content of current directory The prompt $ shows that bash shell is using command to show the content of current directory with option -al
  • 11. Some of the basic commands you should learn are the ones that help you navigate Commands: the file system. / (root directory) /root – home directory of the user root pwd – you can see your home directory df – to see disk space available cd – to change to different directory or to go back to home dir .. - move to parent directory ls – list the contents of a directory; Options: -l (more info) -a (displays hidden files) -t (sort by time) -r (oldest first) Example: ls –ltr : display an long list of files that are sorted by time, display the oldest ones first
  • 12. cp : copy one file to another rm : remove a file man : ask for the manual (or help) of a command e.g. man cd ask for the manual of the command cd cat : to show the content of a text file e.g. cat abc.txt show the content of abc.txt whoami : to show the username of the current user Directory is denoted by a / (slash) character Executable program by a * Hidden file preceded by a . (dot)
  • 13. Permission Command • chmod change file mode, add or remove permission • chown change owner of the file Example) chmod a+w filename add writable permission to all users chmod o-x filename remove executable permission from others chmod a+x Gives permission to the usser to execute a file • u: user (owner), g: group,o: others a: all
  • 14. Process Management Commands • kill Stop a program. The program is specified by process ID. • killall Stop a program. The program is specified by command name. • ps Show process status • top Show system usage statistics
  • 15. Foreground and Background • Running job has two modes, “foreground” and “background” • If program is running as “background”, the program keeps running even after your session was closed • If program is running as “foreground”, Ctrl-C stop program Ctrl-Z let program background
  • 16. Foreground and Background • To run programs in background mode, use “&” [nomura@ssc-1]$ command & • To get background job back into foreground mode, use “fg” command. [nomura@ssc-1]$ fg
  • 17. Why Use Linux? • Costs less • Stable • Reliable • Extremely powerful
  • 18. The Advantage of Linux • Low purchase cost • Open Source Software (OSS) • UNIX heritage • Multi User • Scalability • Vendor support • Reliable uptime • Security • Logging System • …
  • 19. The Disadvantage of Linux • Steep learning curve • Hardware support • End-user applications