Systems Programming - Unix Quiz Question and Answers - Part 2
Question 1: Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
Select one:
a. cp chap[12] /progs/*.*
b. cp chap?? progs
c. None of the given answers
d. cp chap* progs
e. cp chap?? /progs/*
Question 2: In Linum the file /etc/passwd contains:
Select one:
a. Only password
b. Password, user id and group id only
c. The name of default shell and home directory besides other infomation.
d. Password and user id only.
e. all information about user rights Incorrect
Question 3: Xenix system is a property of
Select one:
a. Linux Corporation
b. Lotus Corp
c. Sun
d. Microsoft
e. IBM
Question 4: The command
wc section1.*
will only print the total lines, words, and characters for all files having the name starting with 'section1.' put together. The output appears in 1 line.
Select one:
True
False
Question 5:If you use the ls command with the option -la
ls -la
Select one:
a. lists files from archives
b. system and hidden files are also listed and the list is on long format
c. All files are lists just list with -l option
d. lists the files in the order of last access
e. List the files in the order of least age
Question 6: Comment on the command given below:
man man
Select one:
a. This is a typing mistake. Gives the same responce as typing once.
b. Returns and indication of error.
c. This is a typing mistake. Should have been typed only once.
d. Only lists the options available under the man command.
e. Provides man details about man
Question 7: Which of the following files contains information related to password aging?
Select one:
a. shodow
b. profile
c. password Incorrect
d. none of the given choices
e. all 3 given choices
Question 8: Holding the CONTROL key and pressing 'd' is equivalent to pressing the RETURN key.
Select one:
True
False
Question 9: Which of these statements is true about the UNIX Kernel
Select one:
a. Provides service to user applications such as device management, process scheduling, etc.
b. None of the given statements.
c. Manages the entire resources of the system, presenting them to you and every other user as a coherent system.
d. All 3 of the given statements.
e. Loaded at system start up (boot). Memory-resident control program.
Question 10: Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?
Select one:
a. cp programs/wb misc/wbx
b. tar programs/wb misc/wbx
c. None of the given options
d. copy programs/wb misc/wbx
e. copy a:programs/wb b:misc/wbx
Question 11: UNIX uses the mv command to rename a file.
Select one:
True
False
Question 12: The octal representation 652 indicates
Select one:
a. None of the given options.
b. Read and write permission of groups
c. Write permission for others
d. Execute permission for the owner
Question 13: Special characters . (dot), .. (double dot) and ~ (tilde) are used in the path name.
Tilde stands for:
Select one:
a. User's home directory.
b. current directory
c. Root Directory Incorrect
d. default directory
e. Current Directory
Question 14: The Official Trademark of Unix is
Select one:
a. None of the given choices
b. All 3 of given choices
c. Unix
d. UNIX Correct
e. Linux
Question 15: Which of the following commands is used to rename a file?
Select one:
a. rn
b. rename
c. ren
d. mv
e. remove
Systems Programming - Unix Quiz Question and Answers - Part 2