Page 146 - DCAP106_OPERATING_SYSTEM_TOOLS
P. 146

Unit 8: Shell Commands





          z z  Commands can be run by themselves, or you can pass in additional arguments to make   Notes
               them do different things.

          8.5 Keywords

          cd: This command is used to switch to another directory.
          ls: The command ls is used to the contents of a directory.
          mkdir: The command mkdir is used to create a new directory.

          netstat: It displays the status of ports ie. which ports are open, closed,   waiting for connections.
          pwd: The command pwd is used to display the full path name of the current directory.
          System process number: A system process number is the number by which the system identifies
          the job.

          tar: It is an archiving program designed to store and extract files from an archive known as
          a tarfile.
          User job number: A user job number is the number by which the user identifies the job.

          8.6 Review Questions


          1.   What are the common shell commands?
          2.   Discuss various directory commands and file system.
          3.   Describe the commands used for managing  User Account.
          4.   Make distinction between userdel and groupdel command.
          5.   What are network commands? Illustrate.

          6.   Explain an archiving program which is designed to store and extract files from an archive.
          7.   Illustrate the use of kill command with example.
          8.   What are the different special keys and shortcuts of shell programing?
          9.   What is the command line syntax? Discuss with example.
          10.   Illustrate the use of whoami command with example.

          Answers: Self Assessment


          1.   Cd                                    2.   Wc
          3.   text editor                           4.   Netstat
          5.   man                                   6.   system process
          7.   bg                                    8.   Whoami
          9.   Bash                                  10.  Characters

          11.   Ctrl + U                             12.   Pwd
          13.  ls                                    14.  -a
          15.  argument







                                           LOVELY PROFESSIONAL UNIVERSITY                                   139
   141   142   143   144   145   146   147   148   149   150   151