Questions
What section of the online user's manual and command reference holds administrative (not user) commands? Select one.
Section 1
Section 2
Section 8
Section n
Section s
In the bash shell, entering the !! command has the same effect as which one of the following?
Ctrl-P and Enter
Ctrl-N and Enter
Ctrl-U and Enter
!-2
!2
Name the command that displays pages from the online user's manual and command reference.
Which of the following commands displays the comments from a bash script? Select all that apply.
find "^#" /etc/rc.d/rc.local
sed '/^#/ !d' /etc/rc.d/init.d/httpd
grep ^# /etc/rc.d/init.d/httpd
grep ^# /etc/passwd
locate "^#" /etc/skel/.bashrc
Which one of the following answers creates an environment variable
VAR1
, present in the environment of a bash child process?VAR1="fail" ; export VAR1
VAR1="fail" \ export VAR1
VAR1="fail"
set VAR1="fail" ; enable VAR1
export VAR1 \ VAR1="fail"
Name the full path and name of the file that holds most of the information on system user groups.
Which one of the following outcomes results from the following command?
#
chmod g+s /home/software
The SUID bit will be set for /home/software.
The SGID bit will be set for /home/software, preventing access by those not a member of the software group.
The SGID bit will be set for /home/software, to keep group membership of the directory consistent for all files created.
The sticky bit will be set for /home/software.
The sticky bit will be applied to all files in /home/software.
Consider the following ...
Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.