010-160: Linux Essentials Certificate Exam version 1.6 Part 2
Question #: 11
Topic #: 1
What is true about the owner of a file?
A. Each file is owned by exactly one user and one group.
B. The owner of a file always has full permissions when accessing the file.
C. The user owning a file must be a member of the file’s group.
D. When a user is deleted, all files owned by the user disappear.
E. The owner of a file cannot be changed once it is assigned to an owner.
Question #: 12
Topic #: 1
Which of the following permissions are set on the /tmp/ directory?
A. rwxrwxrwt
B. ——rwX
C. rwSrw-rw-
D. rwxrwS—
E. r-xr-X–t
Question #: 13
Topic #: 1
Which command adds the new user tux and creates the user’s home directory with default configuration files?
A. defaultuser tux
B. useradd -m tux
C. usercreate tux
D. useradd -o default tux
E. passwd -a tux
Question #: 14
Topic #: 1
What information is stored in /etc/passwd? (Choose three.)
A. The user’s storage space limit
B. The numerical user ID
C. The username
D. The encrypted password
E. The user’s default shell
Question #: 15
Topic #: 1
Which of the following tar options handle compression? (Choose two.)
A. -bz
B. -z
C. -g
D. -j
E. -z2
Question #: 16
Topic #: 1
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?
A. tar –new work.tar ./work/
B. tar -cf work.tar ./work/
C. tar -create work.tgz -content ./work/
D. tar work.tar < ./work/
E. tar work > work.tar
Question #: 17
Topic #: 1
Which of the following keys can be pressed to exit less?
A. l
B. x
C. e
D. q
E. !
Question #: 18
Topic #: 1
The current directory contains the following file:
-rwxr-xr-x 1 root root 859688 Feb 7 08:15 test.sh
Given that the file is a valid shell script, how can this script be executed? (Choose two.)
A. run test.sh
B. ${test.sh}
C. cmd ./test.sh
D. ./test.sh
E. bash test.sh
Question #: 19
Topic #: 1
Which of the following commands sorts the output of the command export-logs?
A. export-logs < sort
B. export-logs > sort
C. export-logs & sort
D. export-logs | sort
E. export-logs <> sort
Question #: 20
Topic #: 1
A directory contains the following files:
What would be the output of the following shell script?
for file in *.txt
A. *.txt
B. a b
C. c.cav
D. a.txt
E. a. txt b. txt