Linux test 2 (4,5,6) Flashcards

(122 cards)

1
Q

To move files, you can use the mv command.

A

T

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

The rmdir command automatically removes a directory and all of its subdirectories and files.

A

F

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

You can use wildcard metacharacters with the find command

A

T

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

When using the chmod command, if there is no character specifying the category of user to affect, only the group category is affected.

A

F

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

The SGID allows regular users to execute a binary compiled program and become a member of the group that is attached to the file.

A

T

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

To create a subdirectory, you would use the makedir command

A

F

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

When working with files, the special metacharacter “..” specifies the current directory.

A

F

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

When using the find command, the -size x criteria is used to search for files with a size greater than x.

A

F

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

The PATH variable lists directories that are searched for executable files if a relative or absolute pathname was not specified when executing a command on the command line.

A

T

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

The execute permission for a file allows a user the ability to execute the file in memory (if it is a program file or a script).

A

T

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

In the FHS, the ____ directory contains the Linux kernel and files used by the boot loader.

A

/boot

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

In the FHS, the ____ directory is the root user’s home directory.

A

/root

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

In the FHS, the ____ directory contains most system commands and utilities.

A

/usr

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

Copying a file can be accomplished using the ____ command.

A

cp

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

The ____ command takes a list of arguments specifying the absolute or relative pathnames of files to remove.

A

rm

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

The fastest method to search for files in the Linux directory tree is to use the ____ command

A

locate

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

You can see the contents of a certain variable in memory by using the ____ metacharacter with the echo command.

A

$

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

The ____ section of a filesystem is the section that contains information about the filesystem in general.

A

superblock

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

To create a hard link, you must use the ____ command

A

ln

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

The chgrp command takes ____ argument(s) at minimum.

A

2

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

The section of an inode that stores permissions is called the ____ of the file.

A

mode

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

In a file’s mode, if a permission is unavailable, a(n) ____ character replaces its position in the mode

A

-

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

If a user has ____ permission for a file, they can open, read, and edit the contents of a file.

A

write

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

When using the chmod command for a specific file, the ____ argument would add read permission and remove write permission for the group permissions.

A

g+r-w

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
When using the chmod command, the mode rwx can be represented by the number ____.
7
26
To set all of the special permissions on a certain file or directory, you can use the command ____, where name is the name of the file or directory.
chmod 7777 name
27
Can the mv command be used to rename files?
Y
28
Does the find command use a pre-made index of files to locate a file?
N
29
Do symbolic links share the same inode and inode number
N
30
Should most files residing in a user’s home directory be owned by that user?
Y
31
Are permissions additive?
N
32
___________________________________ defines a standard set of directories for use by all Linux and UNIX systems, as well as the file and subdirectory contents of each directory.
FHS
33
To copy a directory full of files in Linux, you must tell the cp command that the copy will be ____________________ (involve files and subdirectories too) by using the -R option
recursive
34
The ____________________ command only searches directories that are listed in a special variable called the PATH variable in the current BASH shell.
which
35
To create a(n) ____________________ link, you use the -s option to the ln command
symbolic
36
When a user creates a file or directory, that user’s name and ____________________ becomes the owner and group owner of the file, respectively.
primary group
37
Command used to change the group owner of a file or directory.
chgrp
38
Command used to view your group memberships and primary group
groups
39
Command used to displays BASH shell aliases.
alias
40
Special variable on the system used to take away permissions on new files and directories immediately after they are created.
umask
41
Command used to quickly create an empty file
touch
42
Command used to change the ownership of a file or directory
chown
43
Command used to view your current user name
whoami
44
Command used to change the permissions for a certain file or directory
chmod
45
Command used to test network connectivity.
ping
46
check quiz 4 and 5 for grading
to add questions 38-42
47
There can be multiple device files per device.
F
48
After a typical Fedora Linux installation, over 700 different device files are in the /dev directory
T
49
In Linux, you must use only one type of filesystem on a system.
F
50
When you insert a DVD while in a GUI environment, it is automatically mounted by the system to a directory underneath the /media directory that is named for the label on the DVD.
T
51
The more filesystems that are used on a system, the less likely a corrupted filesystem will interfere with normal system operations.
T
52
Device files that represent disks, such as floppy disks, CD-ROMs, DVDs, USB flash drives, and hard disks, are typically character device files because a fast data transfer rate is preferred.
F
53
When a device is mounted, it is attached to a certain directory on the directory tree called a(n) mount point.
T
54
To check whether the /mnt/floppy directory is being used by any users, you can use the fuser command with the -u option.
T
55
PATA hard disk drives typically have faster data transfer speeds, and most systems allow for the connection of more than four such hard disks.
F
56
To view the size of a directory and its contents in Kilobytes, you can use the du command.
T
57
Devices that transfer data in a character-by-character fashion are referred to as ____ devices.
character
58
The ____ device file represents the first primary partition on the second IDE hard disk drive (primary slave).
/dev/hdb1
59
The ____ device file represents the second serial port on the system (COM2).
/dev/ttyS1
60
If you do not know the type, major, or minor number of a device, you can use the ____ command to re-create the device based on the common name
/dev/MAKEDEV
61
The ____ filesystem is used by software programs that write to a CD-RW or DVD-RW drive.
udf
62
The ____ filesystem contains most of the operating system files.
root
63
To format a filesystem with a specified filesystem type, you can use the ____ option with the mkfs command
-t
64
To mount all filesystems in the /etc/fstab file that are intended to mount at boot time, you can simply type the ____ command.
mount -a
65
CD-ROMs typically use the ____ filesystem type.
iso9660
66
Linux requires ____ partition(s) at minimum.
2
67
Data is read off of hard disks in concentric circles called ____.
tracks
68
To create partitions after installation, you can use the ____ command.
fdisk
69
The easiest method for monitoring free space by mounted filesystems is to use the ____ command.
df
70
Errors on a filesystem are often referred to as filesystem ____ and are common on most filesystems.
corruption
71
You can edit the quotas for certain users by using the ____ command.
edquota
72
To check a filesystem for errors, you can use the ____ command, which can check filesystems of many different types.
fsck
73
Can several different devices share the same major number?
Y
74
Is ext3 the traditional filesystem used on Linux?
N
75
Can any existing directory can be used as a mount point?
Y
76
If a device is mounted to a directory that contains files, are those files temporarily covered up until the device is unmounted?
Y
77
Can CD-ROMs be ejected from the CD-ROM drive before the CD-ROM is properly unmounted?
N
78
If you find a corrupted device file, or accidentally delete a device file, the ____________________ command can be used to re-create the device file if you know the type, major, and minor numbers.
mknod
79
Creating a filesystem on a device is commonly referred to as _____________
formatting
80
At installation, Fedora Linux creates a symbolic link called ____________________ to the correct device file for your first CD-ROM drive.
/dev/cdrom
81
Each track on a hard disk is divided into ____________________ of information.
sectors
82
An extended partition can contain many subpartitions called ___________________
logical drives
83
File on the hard disk representing a device on a Linux system
device file
84
Indicates a particular device
minor number
85
File that contains a list of devices that are currently used on the system and their major numbers
/proc/devices
86
oints to the device driver for a device in the Linux kernel.
major number
87
Hard disk quotas that the user can exceed for a certain period of time
soft limits
88
Rigid quota limits that the user cannot exceed.
hard limits
89
Directory that stores device files.
/dev
90
The first readable sector of a hard disk, where partition definitions are stored.
MBR
91
Command used to create modify filesystem parameters
tune2fs
92
A computer connected to a remote hard disk via iSCSI is referred to as an iSCSI initiator.
T
93
When you use disk imaging software to write a Linux ISO image onto a USB flash drive, the filesystem existing on the flash drive is maintained.
F
94
To perform a Linux installation over a network, you can connect to a server with the appropriate installation files via FTP.
T
95
The BIOS configurations on different computers are generally very similar or exactly the same.
F
96
You can use a small bootable Linux kernel to fix problems related to the following: the boot loader; filesystems and partitions; the configuration file; and drivers.
T
97
Up to 100,000 Serial Attached SCSI hard disks can be connected to a single SCSI controller via serial cables with small serial connectors.
F
98
RAID level 4 configurations are not fault tolerant.
F
99
RAID level 3 requires a minimum of three hard disk drives to function.
T
100
Normally, kickstart files are text files.
T
101
It is good form to check the installation log files after installation as well as verify settings on the system after installation to ensure that all hardware was detected with the correct values.
T
102
Each SCSI device is assigned a unique ID number known as a(n) ____.
target ID
103
Most Parallel SCSI controllers support up to ____ devices.
15
104
The highest priority SCSI device is given a SCSI ID of ____.
7
105
The ____ standard support speeds of up to 80 MB/second.
SCSI-3 Ultra2 Wide
106
RAID level ____ is often referred to as disk mirroring.
1
107
RAID level ____ is commonly referred to as disk striping with parity.
5
108
A Fedora 13 CD installation requires ____ CDs.
6
109
In Fedora Linux, a ____ file is a script file that specifies the choices that you would normally choose when you install the operating system.
Kickstart
110
Any line in a kickstart file that starts with a(n) ____ symbol is a comment line and is ignored by the installation program.
#
111
If a Linux installation ends abnormally and the screen displays a “fatal signal ____” error message, it indicates an error known as a segmentation fault.
11
112
Some installations fail to place a boot loader on the hard disk properly; this is often the case with large hard disk drives that have over ____ cylinders.
1024
113
____ installation log file(s) is/are created by the Fedora installation program.
2
114
To verify hardware settings, you can examine the contents of the ____ directory.
/proc
115
To ensure that Linux has detected the correct amount of RAM in the system after installation, you can view the contents of the ____ file
/proc/meminfo
116
The ____ file in the /proc directory contains a list of memory address ranges reserved for device use.
ioports
117
The ____ file in the /proc directory contains statistics on the performance of the processor.
loadavg
118
If a hard disk fails in a RAID level 0 configuration, is all of the data lost?
Y
119
Can you install Linux from ISO image files on a hard disk?
Y
120
Can disk imaging software be used to perform a Linux installation?
Y
121
Can you use a Kickstart Configurator to make major changes to a kickstart file?
Y
122
In a laptop computer, can changes to the BIOS be retrieved if the battery dies?
N