PDF Download
FREE COMPUTERS AND STUDY GAMES ABOUT IT 240 -
MIDTERM 2 EXAM QUESTIONS
Actual Qs and Ans Expert-Verified Explanation
This Exam contains:
-Guarantee passing score -71 Questions and Answers -format set of multiple-choice -Expert-Verified Explanation
Question 1: Which is true about hard links?
? They can only be created by the root user ? They share inodes ? They are created with the ln -s command ? They can be made to directories
Answer:
? They share inodes Question 2: To see a list of commands that are available while viewing a man page, you can type the __ character.? h ? g ? c ? w
Answer:
? h
Question 3: The range defined inside of square brackets is based on the: ? ASCII text table ? Invalid question as ranges are not permitted ? ANSI text table ? Standard text table
Answer:
? ASCII text table Question 4: To decompress the archive example.gz, use the following command: ? gunzip -x example.gz ? gunzip example.gz ? gzip -x example.gz ? gzip -u example.gz
Answer:
? gunzip example.gz Question 5: A popular program for monitoring running processes in real-time is: ? watcher ? mon ? ghost ? top
Answer:
? top Question 6: To perform a "long listing" to show file details, use which of the following
commands:
? ls -L ? ls -D ? ll ? ls -l
Answer:
? ls -l Question 7: To use regular expression characters to match themselves, you cannot: ? Use the fgrep command ? Put the character in the square brackets ? Use the slash in front of the character ? Use the backslash in front of the character
Answer:
? Use the slash in front of the character
Question 8: Why would you press CTRL+C when executing tail?
? To capture the output into a file ? To stop tail from following a file ? To complete the processing of a file ? To get tail to copy the text it is outputting
Answer:
? To stop tail from following a file Question 9: Which type of link is indistinguishable by programs from regular files, hard or soft?? hard ? soft
Answer:
? hard Question 10: The /usr/local/bin directory contains: ? Essential administrative commands ? Nothing; it is not a valid directory ? Commands that have been compiled from local sources
Answer:
? Commands that have been compiled from local sources Question 11: The command man 5 passwd will: ? Display the first five lines of the man page for the passwd command.? Print the first five man pages that refer to the term passwd.? Display the man page of Section 5 for passwd.
Answer:
? Display the man page of Section 5 for passwd.Question 12: If you are in vi command mode and want to begin inserting text at the end of the
line, you can type:
? I ? o ? A ? O
Answer:
? A
Question 13: Which value represents the inode number in the following output of the ls -li command: 87589 -rw-r-r-. 2 root root 83 Mar 4 22:45 myhosts
? 87589
? 22:45
? 2 ? 83
Answer:
? 87589
Question 14: Which are valid link types in Linux?
(choose two) ? Soft links ? Stable links ? Hard links ? Filesystem links
Answer:
? Soft links ? Hard links
Question 15: Which character(s) cannot be placed in variable names?
? Hyphen ("-") character ? Numeric characters ? Underscore ("_") character ? Upper-case alpha characters ? Lower-case alpha characters
Answer:
? Hyphen ("-") character
Question 16: Which of the following are advantages of using the locate command?
? It can search by file attribute types ? It pages the results ? Its results are always the most up to date ? It is quicker than the find command
Answer:
? It is quicker than the find command