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
- A . disclosure only
- B . non-disclosure only
- C . non-disclosure only
- D . disclosure and non-disclosure only
- E . non-disclosure and non-disclosure Only
What does S l represent in the following lines from a Bourne shell script:
#! /bin/sh
cp SI 52
- A . A control operator.
- B . An environmental variable.
- C . A function.
- D . A positional parameter.
- E . The shebang.
Which of the following excerpts is a valid if condition in the Bourne shell?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
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 . file mybackup
- B . Is -1 mybackup
- C . tar -t mybackup
- D . whatis mybackup
- E . touch mybackup
Which BSD command lists, adds, or deletes swap devices?
- A . diskcontro1
- B . mkswap
- C . swap
- D . swapct1
- E . swapinfo
Which of the following tar options handle compression’? (Choose TWO correct answers)
- A . -x
- B . -c
- C . -z
- D . -J
- E . -v
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)
How often does? match the preceding expression in a regular expression?
- A . Two or more times
- B . Exactly one time
- C . Any number of times
- D . Zero or one times
- E . One or more times
What command creates a new directory? (Specify ONLY the command without any path or parameters.)
What is the purpose of the nice command’?
- A . Run a command with the permissions of another user
- B . Run a command with limited access to a specified directory
- C . Run a command with additional filesystem permissions
- D . Run a command with additional secondary groups.
- E . Run a command with a non-standard priority.
Which command sends the contents of the file myconfigfile by email to me@mycompany. com?
- A . cat myconfigfile I mail me@mycompany.com
- B . cat myconfigfile > me@mycompany.com
- C . mail me@mycompany.com I cat myconfigfile
- D . mail me@mycompany.com > cat myconfigfile
- E . mail myconfigfile -r me@mycompany.com
While in the csh or tcsh shell, which command changes the time zone environment variable to GMT?
- A . export TZ=GMT
- B . setenv TZ GMT
- C . env TZ=GMT
- D . TZ=GMT; export TZ
- E . environ TZ GMT
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!
Which command shows all processes owned by the user bob?
- A . who -1 bob
- B . pgrep -u bob
- C . ps -o -a bob
- D . top bob
- E . last -p bob
On BSD systems that provide an interactive adduser script, which configuration file stores the default adduser settings?
- A . adduser.conf
- B . login, conf
- C . pw.conf
- D . user.conf
- E . usermgmt. conf
Which command locks the user account bob on a FreeBSD system?
- A . audit_user -1 bob
- B . lockuser bob
- C . pw lock bob
- D . usermod lock bob
- E . vipw lock bob
Which file on a BSD system defines the printers which are available by the Ipr printing system’? (Specify the full name of the file including path)
Which line in a cron job runs myscript once per hour?
- A . ***** /pathto/myscript
- B . 0 * * * * /pathto/myscript
- C . * 0 * * * /pathto/myscript
- D . * * o * * /pathto/myscript
- E . * * * o * /pathto/myscript
Which of the following lines stems from the output of last?
- A . 3:26PM up 1:58, 2 users, load averages: 0.49, 0.43, 0.40
- B . May 11 19:34:24 fbsd login [793]: login on ttyv0 as root
- C . root ttyv0 Sat May 18 13:35 still logged in
- D . 763 v1 Is+ 0:00-00 /usr/libexec/getty Pc ttyv1
- E . FreeBSD 12.0-RELEASE r341666 GENERIC
When replacing the system MTA with another mail server program, which configuration file needs to be updated with the path to the new MTA?
- A . mail.conf
- B . mailer, conf
- C . mta.conf
- D . postfix.conf
- E . sendmail. conf