Unix Mid terms
What two characters below should not be used in filenames?
$ *
Select the regular expression metacharacter that matches 0 or more occurrences of the previous character.
*
What installation media source is the most common source for Linux packages?
DVD
The Filesystem Hierarchy Standard specifies what directory as containing the Linux kernel and the boot loader configuration files?
/boot
The Filesystem Hierarchy Standard specifies what directory as the root user's home directory?
/root
What directory under / contains the log files and spools for a Linux system?
/var
In what year was the source code for the Linux kernel released?
1991
A hard drive or SSD can be divided into partitions. What is the maximum number of primary partitions that can be used on these devices?
4
When using the chmod command, the mode rwx can be represented by which number?
7
At the vi command mode prompt, what key combination below will force a quit from the vi editor without saving changes?
:q!
What metacharacter can be used to issue two commands to be run in consecutive order, without piping or redirecting output?
;
Data is read from physical hard drives in concentric circles known as which of the following?
Circles
What service provides a method for the efficient transfer of files over the Internet?
FTP
What stipulates that the source code of any software published under its license must be freely available.
GNU General Public License
The Linux kernel was developed and released in 1991 by:
Linus Torvalds
When using command-line terminal, specific letters that start with a dash ("-") and appear after command names are considered to be:
Options
What two special permissions can be applied in order to effectively allow a user to become owner of a file, or become a member of a group, by executing a file?
SUID, SGID
After logging into a terminal, a user will receive an interface known as which option below?
Shell
The overall cost of using a particular operating system is known as?
Total cost of ownership (TCO)
What is the minimum number of user accounts that must be created at install time?
Two
Using wildcard metacharacters, how can one indicate a number is either 1, 2, 3, or 4?
[1-4]
What two regular expression characters can be used to match the characters at the beginning or end of a line, respectively?
^ $
To display the contents of a text file called data, what command should be used?
cat data
In what mode does the vi editor open by default?
command mode
What command can be used to copy files?
cp
Which command below provides the easiest method for monitoring free space on mounted filesystems?
df
Select the command below that shows the size of a directory and its contents in kilobytes:
du
Which two filesystems below do not perform journaling?
ext2, VFAT
What command can be used to check different kinds of filesystems on Linux for errors?
fsck
What two commands below can be used to edit a GPT based hard disk's partitions?
gdisk, parted
In order to create a hard link, what command must be used?
ln
What two commands below can be used to locate files on a filesystem?
locate, find
Select the command below that can be used to provide a long listing for each file in a directory:
ls -l
When displaying a large text file, what two commands provide the ability to show text in a page by page fashion?
more, less
Because Linux has the ability to manage thousands of tasks at the same time, including allowing multiple users to access the system simultaneously, it is referred to as an operating system that is:
multitasking, multiuser
What command below can be used to create a new physical volume?
pvcreate
In the event that you wish to disable a swap partition, what command must be used?
swapoff
To copy a directory full of files in Linux, you must tell the cp command that the copy will be recursively(involve files and subdirectories too) by using the -r option
the -r option
The section of an inode that stores permissions is referred to as what?
the mode of a file
What two commands can be used to show information about physical volumes and logical volumes respectively?
vgdisplay, lgdisplay
What permission (when assigned to a file) grants a user the ability to open, read, and edit the contents of a file?
write
What two commands below will halt a Linux system immediately?
shutdown -H now, halt