stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Linux Exam Review Flashcards | StudBud
Explore
/
Linux Exam Review
Linux Exam Review
35 terms
·
StudBud Administration
·
16 plays
Imported from external platform
Flashcards
35 cards
F
Practice quiz
P
Host live
L
Questions
35
Answers
1
Which command changes file permissions?
echo
set
chmod
run
2
What is the su command used for?
To create a super user
To switch users
To shut down the system
To run applications
3
Which command would output only the last five lines of the text.txt file?
Tail -n 5 text.txt
More -n 5 text.txt
tail text.txt
more text.txt
4
Which of the following commands shows the path of the current working directory?
cat
which
pwd
ls
5
Iptables provide what type of service to the Linux OS?
Hardware firewall
Software firewall
DHCP
Web application firewall
6
How would you find the IP address in a Debian based OS?
ifconfig
ipconfig
ip link
ip add
7
Which directory does cd/ navigate to?
Root directory
Parent directory
Home directory
Previous directory
8
If a file starts with a period(.) wuch as .bashrc. What does that mean about the file?
Is a read-only file
It is a hidden file
It is a directory file
It is an executable file
9
Which of the following prevents a brute-force attack?
iptables
NTP
squeed
Fail2Ban
10
By default, Apache serves HTTP content on which port?
Port 80
Port 22
Port 445
Port 8080
11
What would the "uname -os-release" command do?
Print information about the operating system and it's version
Append the parameter that follows to the currrent user name
Print an error due to an illegal flag
Change the current user name
12
Which of the following is the right command that would secure copy all the text files in the current directory?
spc*.txt
[email protected]
/var/log
scp ?.txt
[email protected]
:/home/johnd
scp *txt
[email protected]
/home/johnd
13
What does $PATH contain?
Path to system binaries in Linux
Path to the current user's home folder
Environmental variables for binary paths in Linux
It is an empty environmental variable
14
What does the cat command do?
Changes file ownership
Edits a file
Changes file permissions
Displays file contents
15
What type of tool is dpkg?
A system monitor
A package manager
A process manager
A text editor
16
Which open-source software is used in Linux to provide SMB based service?
Samba
Top
Named
MD5sum
17
Which command would assign the permissions drwxr-xr-x to the temp directory?
chmod 755 temp
chmod 766 temp
chmod 775 temp
18
Which of the following is the package manager for Debian?
apt
yum
pkgmgr
apt-get
19
Which of the following files stores hashed passwords in Linux?
/etc/passwd
/tmp/passwords
/etc/hosts
/etc/shadow
20
Which of the following folders is the superusers home directory?
/home/superuser
/root
/superuser
/home/johnd
21
Which directory does cd/ navigate to?
Root directory
Home directory
Parent of the current directory
Previous directory
22
Which file is edited in Linux to configure the automation of tasks?
cronscheduler
cron
crontab
crontimer
23
What is PAM primarily used for?
Linux permissions
Linux networking
Linux authentication
Linux boot selection
24
Which of the following files stores hashed passwords in Linux?
/etc/shadow
/etc/hosts
/etc/passwd
/etc/password
25
What does "lt" stand for in Bash scripting?
later than
larger than
longer than
less than
26
Which command changes file permissions?
echo
set
Chmod
run
27
Which open sourced sofware is used in Linus to provide SB based services?
MD5sum
Samba
Named
Top
28
Which command will output only the first five lines of the text.txt file?
head text.txt
tails -n 5 text.txt
Less text.txt
head -n 5 text.txt
29
Which of the following is the default port of SSH?
445
443
22
20
30
What type of users can access the /etc/shadow file?
Any user
Only superusers
Every user
31
Which of the following protocols are unsecure?
SCP
FTP
Telnet
SSH
32
How do you save and quit VM in a single command?
:p
:w!
:sq
:wq
33
What is /tmp the name of?
Configuration file
Hidden file
Directory
Read-only file
34
What would the command touch do?
None of these
change the permission of a file
change ownership of a file
Create a blank file if it does not exist
35
You want to search the log directory for all instances of the word "failed". What would the command be?
grep "failed" /var/log" > failed.txt
"failed" > failed.txt
grep /var/log/ -0 failed.txt
cat "failed" /var/log/