Linux Flashcards
What are the differences between hard disk drives and solid state disks? (Choose two.)
Hard disks have a motor and moving parts, solid state disks do not.
Solid state disks provide faster access to stored data than hard disks.
Reverse DNS assigns hostnames to IP addresses. How is the name of the IP address 198.51.100.165
stored on a DNS server?
In the PTR record for 165.100.51.198.in-addr.arpa
Which of the following types of bus can connect hard disk drives with the motherboard?
The SATA bus
Members of a team already have experience using Red Hat Enterprise Linux. For a small hobby project, the team wants to set up a Linux server without paying for a subscription. Which of the following Linux distributions allows the team members to apply as much of their Red Hat Enterprise Linux knowledge as possible?
CentOS
What information can be displayed by top?
Running processes, ordered by CPU or RAM consumption.
Which of the following commands can be used to resolve a DNS name to an IP address?
host
Which of the following outputs comes from the command free?
Option E
What is true about the dmesg command? (Choose two.)
It displays the content of the Linux kernel’s ring buffer
It might not display older information because it was overwritten by newer information.
Which of the following outputs could stem from the command last?
root tty2 Wed May 17 21:11 - 21:11 (00:00)
What is the UID of the user root?
0
Which permissions are set on a regular file once the permissions have been modified with the command chmod 654 file.txt?
-rw-r-xr–
What is true about the owner of a file?
Each file is owned by exactly one user and one group.
Which of the following permissions are set on the /tmp/ directory?
rwxrwxrwt
Which command adds the new user tux and creates the user’s home directory with default configuration files?
useradd -m tux
What information is stored in /etc/passwd? (Choose three.)
The numerical user ID
The username
The encrypted password
Which of the following tar options handle compression? (Choose two.)
-z
-j
Which of the following commands creates an archive file work.tar from the contents of the directory ./work/?
tar -cf work.tar ./work/
Which of the following keys can be pressed to exit less?
q
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.)
./test.sh
bash test.sh
Which of the following commands sorts the output of the command export-logs?
export-logs | sort
A directory contains the following files:
a.txt
b.txt
c.cav
What would be the output of the following shell script? for file in *.txt
do
echo $file
done
a. txt
Which of the following commands will search for the file foo.txt under the directory /home?
find /home -name foo.txt
The current directory contains the following file:
-rw-r–r– 1 root exec 24551 Apr 2 12:36 test.sh
The file contains a valid shell script, but executing this file using ./test.sh leads to this error:
bash: ./test.sh: Permission denied
What should be done in order to successfully execute the script?
The execute bit should be set in the file’s permissions.
What is a Linux distribution?
A bundling of the Linux kernel, system utilities and other software.
Which of the following programs is a graphical editor for vector graphics?
Inkscape
Which package management tool is used in Red Hat-based Linux Systems?
rpm
Where is the operating system of a Raspberry Pi stored?
On a removable SD card which is put into the Raspberry Pi.
What is defined by a Free Software license?
Conditions for modifying and distributing the licensed software.
Why are web browser cookies considered dangerous?
Cookies support identification and tracking of users.
Which of the following are typical services offered by public cloud providers? (Choose three.)
Platform as a Service(PaaS)
Infrastructure as a Service(IaaS)
Software as a Service (SaaS)
Which of the following characters in a shell prompt indicates the shell is running with root privileges?
#
Which of the following commands are used to get information on the proper use of ls? (Choose two.)
man ls
info ls