LINUX Flashcards

1
Q

Which of the following commands can be used to read the manual for your applications?

< command > help
help < command >
? < command >
man < command >

A

man < command >

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following commands is NOT used in the management of files and directories?

ping
mkdir
touch
chmod

A

ping

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Which of the following files contains hashes of user passwords on most modern Linux distributions?

/etc/passwd
/etc/sshd_config
/etc/shells
/etc/shadow

A

/etc/shadow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
What is the UID of the root user?
0
100
1
10
A

0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What would the permissions be after running the command “chmod 754 file”?

  • r-xr-xr–
  • rwxr-xr–
  • rwxrwxrw-
  • rwxr–r–
A

-rwxr-xr–

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which command will set the permission of a file to read only for all users?

chmod 111
chmod 222
chmod 777
chmod 444

A

chmod 444

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which of the following commands is used to install software from an online repository?

install
yum install
rpm install
installrpm

A

yum install

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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

A

rpm -qa | grep tcpdump

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which of the following commands is used to install software updates?

rpm update
update
yum update
installupdate

A

yum update

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A

yum update -httpd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly