Lpi 010-160 Linux Essentials Certificate Exam, version 1.6 Online Training
Lpi 010-160 Online Training
The questions for 010-160 were last updated at Nov 22,2024.
- Exam Code: 010-160
- Exam Name: Linux Essentials Certificate Exam, version 1.6
- Certification Provider: Lpi
- Latest update: Nov 22,2024
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?
- A . drw-r-xr-
- B . d―wxr-x-
- C . Cwxr-x–x
- D . Crwxrw—x
- E . -rw-r-xr-
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.
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
Which command adds the new user tux and creates the user’s home directory with default configuration files?
- A . defaultuser tux
- B . useradd Cm tux
- C . usercreate tux
- D . useradd Co default tux
- E . passwd Ca tux
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 users default shell
Which of the following tar options handle compression? (Choose two.)
- A . -bz
- B . -z
- C . -g
- D . -j
- E . -z2
FILL BLANK
What keyword is used in a shell script to begin a loop? (Specify one keyword only, without any additional information.)
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 Ccf work.tar ./work/
- C . tar Ccreate work.tgz Ccontent ./work/
- D . tar work.tar < ./work/
- E . tar work > work.tar
Which of the following keys can be pressed to exit less?
- A . l
- B . x
- C . e
- D . q
- E . !
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 15 is wrong. The encrypted password is stored in /etc/shadow not /etc/passwd. The correct third answer should be, “The user’s default shell.” This is the output from cat /etc/passwd for my user: terryplee:x:1004:100::/hometerryplee: /bin/bash. Here is the output from /etc/shadow: terryplee:!:182230:0:999999:7::: That number is my encrypted password.