ccpq/data/linux_essentials_mini_quiz.csv

8.2 KiB
Raw Permalink Blame History

1LEVELANSWERQUESTION12345
2010-1601The BIOS begins the computers boot process and passes control to the boot loader.True False
3010-1603Which of the following are Linux boot loaders?LILO GRUB Both LILO and GRUB BIOS
4010-1604Which of the following is a temporary file system which is loaded into memory when the system boots.kernelvmlinux vmlinuz initrd
5010-1602The /linux directory contains the files required to boot Linux. True False
6010-1604Which command displays the contents of the kernel ring buffer? ringbuf ringb rmesg dmesg
7010-1604The syslog standard: Aids in the processing of messages. Allows logging to be centrally controlled. Uses facilities and severities to categorize messages. All of the above.
8010-1601Which command can you use to generate log messages? logger log logit There is no such command.
9010-1601Partitioning a disk allows you to allocate different sections of the disk for different purposes. True False
10010-1603How many primary partitions does the MBR partitioning scheme allow? 234Unlimited
11010-1601A mount point is simply a directory that is used to access data on a partition. True False
12010-1601These two commands perform the same task: `mkfs -t ext4 /dev/sdb3` and `mkfs.ext4 /dev/sdb3` True False
13010-1602Which command is used to unmount a filesystem. unmount umount dismount
14010-1602The /etc/filetab file controls where devices are mounted on a Linux system and what options to use when mounting those devices. True False
15010-1604Which command or commands can be used to view a UUID? Only the uuid command. Only the lsblk command. Only the blkid command. Both the lsblk and blkid commands.
16010-1601What command prepares a swap partition for use. Afterwards, you can enable the swap partition with the swapon command. mkswap mkswp makeswap
17010-1604Which file stores account information? /etc/accounts /etc/passwordfile /etc/password /etc/passwd
18010-1601The /etc/shadow file stores encrypted passwords. True False
19010-1601What UID is always assigned to the root account? 011001000
20010-1604What command displays the group memberships for a user? groupshow lsgroups listgroups groups
21010-1602What file stores group information? /etc/groups /etc/group /etc/memberships
22010-1601The sudo command allows users to run processes as other users, most typically the root user. True False
23010-1603Which command is used to set or change passwords for Linux accounts? password pwd passwd pswd
24010-1602257.19.21.228 is a valid IP address. True False
25010-1603Given an IP address of 199.83.131.0 and a subnet mask of 255.255.255.0, what is the broadcast address? 199.83.131.0 199.83.131.1 199.83.131.255 199.255.255.255
26010-1602Which of the following IP addresses does not fall within a private address range? 10.11.12.13 11.12.13.14 172.16.255.255 192.168.1.100
27010-1604What command can be used to display the hostname of a Linux system? hostname uname -n hostname -f All of the above.
28010-1602Entries added to the /etc/hosts file become automatically available in DNS. True False
29010-1602Which configuration file controls the order in which lookups are performed? /var/nsswitch.conf /etc/nsswitch.conf /etc/resolv.conf /var/resolv.conf
30010-1604What range of ports are considered unprivileged ports? 0 - 1023 0 - 1000 1024 - 2048 1024 - 65535
31010-1601DHCP stands for Dynamic Host Configuration Protocol. True False
32010-1605Which commands can be used for network troubleshooting? ping traceroute netstat tcpdump All of the above.
33010-1602If you cant ping a host, you can always be assured that the host you are attempting to ping is down. True False
34010-1601If you can ping by IP address but not by name, there is a problem with the resolution of the DNS name. True False
35010-1601Which command is used to view running processes? ps pid proc lsproc
36010-1604What character is placed at the end of a command line to start the command in the background? - ? \ &
37010-1601The kill command can be used to kill processes and jobs. True False
38010-1603Which command is used to create, read, update, and delete cron jobs? cron crond crontab vicron
39010-1604Which of the following cron jobs will run at 08:00 AM every day? 8 0 0 * * /opt/acme/bin/backup 8 0 * * * /opt/acme/bin/backup 8 * * * * /opt/acme/bin/backup 0 8 * * * /opt/acme/bin/backup
40010-1602Given the following output of the ls -l command, what permissions are assigned to members of the “staff” group? `-rwxrw-r— 1 jason staff 1040 Sep 27 08:52 sales` rwx rw- r rwxrw-r—
41010-1602Given the following output of the ls -l command, what type is “sales”? `drwxrw-r— 1 jason staff 1040 Sep 27 08:52 sales` file directory link It cannot be determined with the given output.
42010-1603Which command is used to change the permissions on a file or directory? modch set chmod mkmod
43010-1602The chmod command can only be used with numerical permissions. True False
44010-1601Every user on a Linux system is in at least one group. True False
45010-1604Which command would you run to ensure that “file.txt” can only be read, edited, and executed by the owner and that no other users on the system have access to it? chmod 777 file.txt chmod 755 file.txt chmod 770 file.txt chmod 700 file.txt
46010-1603Which command is used to set the file creation mask? fmask fcmask umask chmod
47010-1602The Debian and RedHat Enterprise Linux distributions use the same package format. True False
48010-1601How would you search for “apache” using yum? yum search apache yum find apache yum get apache yum-cache search apache
49010-1603Which command lists all of the RPM packages installed on a system? rpm -a rpm -q rpm -qa rpm -ea
50010-1604How would you install the htop package on a Debian based distribution? apt-get htop apt-get install htop apt-cache install htop yum-get htop
51010-1604Which of the following commands will list the contents of the htop Debian package? dpkg -S htop dpkg i htop dpkg -l htop dpkg L htop
52010-1604Which of the following commands display the first line of the file named “file.txt”? top file.txt top +1 file.txt head file.txt head -1 file.txt
53010-1603What command would you use to view the changes as they occur to the `/var/log/messages` file? watch /var/log/messages tail /var/log/messages tail -f /var/log/messages tail -1 /var/log/messages
54010-1602Use the nano editor if you need powerful and complex editing capabilities. True False
55010-1604Which is not a valid vi mode? command insert line fundamental
56010-1601Emacs can be used as a graphical editor as well as from the command line. True False
57010-1601The first line of a shell script typically starts with a shebang followed by the path to an interpreter that will be used to execute the commands in the script. True False
58010-1604Which of the following variables is valid? 3LETTERS=“ABC” first-three-letters=“ABC” first@Three@Letters=“ABC” FIRST3LETTERS=“ABC”
59010-1602What is the value of “$1” given the following command line: `$ ./add-user.sh tom richard harry` ./add-user.sh tom richard harry
60010-1601Which is the proper way to assign a value to a variable? VAR=“VALUE” VAR = “VALUE”
61010-1603Which of the following will assign the output of the hostname command to the variable HOSTNAME? HOSTNAME=$(hostname) HOSTNAME=`hostname` All of the above.