Which of the following services are used for network file systems?(Choose two)
A. Rumba
B. Python
C. Samba
D. OpenLDAP
E. NFS
When creating a new file, what can be done to make the file hidden from the default output of the ls command?
A. Hide the file with a name commented out with a hash sign like #foobar.txt.
B. Hide the file with a name beginning with a period like .foobar.txt.
C. Hide the file with chvis +h filename.
D. Hide the file with chmod a+h filename.
E. Hide the file with hide filename.
Which of the following commands will output a list of all of the file names, under your home directory and all subdirectories, which have file names ending with .pdf?
A. search .pdf
B. ls -name -R '*.pdf'
C. find /home/*.pdf
D. find ~ -name '*.pdf'
The script, script.sh, consists of the following lines:
#!/bin/bash
echo $2 $1
Which output will appear if the command, ./script.sh test1 test2, is entered?
A. test1 test2
B. test2 test1
C. script.sh test2
D. script.sh test1
E. test1 script.sh
Which of the following commands redirects the output of cmd to the file foo.txt, in which an existing file is overwritten?
A. cmd || foo.txt
B. cmd | foo.txt
C. cmd andand foo.txt
D. cmd >> foo.txt
E. cmd > foo.txt
Which approach will provide a listing of the contents in a tar archive?
A. Use the tar command with -t.
B. Use the grep command.
C. Use the find command.
D. Use the zless command.
E. Use the zlist command.
What is the output of the following command?
for token in a b c; do
echo -n ${token};
done
A. anbncn
B. abc
C. $token$token$token
D. {a}{b}{c}
E. a b c
What two character sequence is present at the beginning of an interpreted script? (Please specify the TWO correct characters only)
A. #!
What does the exit status 0 indicate about a process?
A. The process ended without any problems.
B. The process was terminated by the user.
C. The process couldn't finish correctly.
D. The process waited for an input but got none.
E. The process finished in time.
What command line will create the user falco with home directory assigned to the group users as primary group?
A. useradd -g users falco
B. useradd -f users falco
C. useradd -m -g users falco
D. add user falco@users
E. add -user falco -group users