Consider the following file legal file:
disclosure
non-disclosure
non-disclosure
Which line or lines in the file does the following command match? Note the space after the dash
within the brackets.
grep "non [-] disclosure" legalfile
E
What does S l represent in the following lines from a Bourne shell script:
#! /bin/sh
cp SI 52
D
Which of the following excerpts is a valid if condition in the Bourne shell?
A.
B.
C.
D.
B
A file called mybackup is found while investigating a USB pen drive. Which utility can be used to
determine the kind of data that is contained in that file?
A
Which BSD command lists, adds, or deletes swap devices?
D
Which of the following tar options handle compression'? (Choose TWO correct answers)
C, D
What symbol is used in the vi editor to start the forward search for a string? (Specify ONLY the single
character symbol without any parameters)
See in
Explanation
Explanation:
How often does? match the preceding expression in a regular expression?
D
What command creates a new directory? (Specify ONLY the command without any path or
parameters.)
See in
Explanation
Explanation:
What is the purpose of the nice command'?
A, E
Which command sends the contents of the file myconfigfile by email to me@mycompany. com?
A
While in the csh or tcsh shell, which command changes the timezone environment variable to GMT?
B
While using vi as superuser. the attempt to save a file while quitting the editor leads to an error
indicating that the file is read-only. How can the file permissions be overridden to save the edits to
the file and quit the editor?
A.: fw!
B.: fwq
C.: ql
D.: wq
E.: wq!
E
Which command shows all processes owned by the user bob?
B
On BSD systems that provide an interactive adduser script, which configuration file stores the default
adduser settings?
A