Test Your Knowledge

   

1:

The cat command is used to:

  1. create a file

  2. display contents of a file

  3. both of the above

  4. not a UNIX command

2:

The maximum length of a file name may be:

  1. 8 characters

  2. 15 characters

  3. 256 characters

  4. no restrictions on file name length in UNIX

3:

The more command is used to:

  1. display the contents of text files

  2. display the contents of any type of file

  3. display all of a text file

  4. get more help on a command

4:

What is the function of the following command

 grep "Mark Black" /etc/passwd 
  1. It searches for the name Mark Black in the /etc/passwd file.

  2. It searches for the word Mark in the Black and /etc/passwd files.

  3. It is an ambiguous command with unpredictable results.

  4. We can use the find command here instead of grep .

5:

Consider a directory with five files in it. The file names are pg.c , pg1.c , pg2.c , pg3.cpp , and pg10.c . We use the command ls pg?.? . The files displayed are:

  1. pg1.c , pg2.c

  2. pg1.c , pg2.c , pg10.c

  3. pg1.c , pg2.c , pg3.cpp

  4. pg2.c , pg10.c

6:

How can you tell the number of user accounts on a UNIX system?

  1. by using the number command

  2. by asking the system administrator

  3. by counting the users one by one

  4. by counting lines in the /etc/passwd file

7:

You are currently in the /home/boota directory. Which command will bring you the to /etc directory?

  1. cd etc

  2. cd ../../etc

  3. cd /etc

  4. both options B and C


   
Top


HP Certified
HP Certified: HP-UX System Administration
ISBN: 0130183741
EAN: 2147483647
Year: 2000
Pages: 390
Authors: Rafeeq Rehman

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net