LINUX Flashcards
Which of the following commands can be used to read the manual for your applications?
< command > help
help < command >
? < command >
man < command >
man < command >
Which of the following commands is NOT used in the management of files and directories?
ping
mkdir
touch
chmod
ping
Which of the following files contains hashes of user passwords on most modern Linux distributions?
/etc/passwd
/etc/sshd_config
/etc/shells
/etc/shadow
/etc/shadow
What is the UID of the root user? 0 100 1 10
0
What would the permissions be after running the command “chmod 754 file”?
- r-xr-xr–
- rwxr-xr–
- rwxrwxrw-
- rwxr–r–
-rwxr-xr–
Which command will set the permission of a file to read only for all users?
chmod 111
chmod 222
chmod 777
chmod 444
chmod 444
Which of the following commands is used to install software from an online repository?
install
yum install
rpm install
installrpm
yum install
Which of the following commands is used to query the RPM database to determine if a package (such as tcpdump) is installed?
yum find tcpdump
rpm tcpdump
yum search tcpdump
rpm -qa | grep tcpdump
rpm -qa | grep tcpdump
Which of the following commands is used to install software updates?
rpm update
update
yum update
installupdate
yum update
Which of the following commands is used to update all installed RPM packages EXCEPT for httpd?
yum update –exclude httpd
yum dont-update httpd
yum update –without-httpd
yum update -httpd
yum update -httpd