All Flashcards

1
Q

DEFAULT

list the common shells

A

bash #The GNU Bourne Again Shell
sh #The Bourne shell upon which bash is based
tcsh #This shell is based on the earlier C shell
csh #The original C shell
ksh #The Korn shell; bourne shell+c shell+extended
zsh #The Z shell takes shell evolution further than the Korn shell

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

DEFAULT

what is an internal command

A

a command that is built into the shell program

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

DEFAULT

what is an external command

A

a command that is not built into the shell program

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

DEFAULT

how do you reverse search for a command in your history

A

ctrl+r

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

DEFAULT

how do you search for a command in your history

A

ctrl+s

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

DEFAULT

how do you terminate a search through your command history

A

ctrl+g

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

DEFAULT

how do you move your shell cursor to the beginning of the line

A

ctrl+a

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

DEFAULT

how do you move your shell cursor to the end of the line

A

ctrl+e

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

DEFAULT

how do you move the shell cursor back one character

A

Ctrl+b

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

DEFAULT

how do you move the shell cursor forward one character

A

Ctrl+f

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

DEFAULT

how do you delete the character under the shell cursor

A

Ctrl+d

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

DEFAULT

how do you delete all text from the shell cursor to the end of the line

A

ctrl+k

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

DEFAULT

how do you delete all of the text from the shell cursor to the beginning of the line

A

Ctrl+x and then Backspace

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

DEFAULT

how do you transpose the character before the cursor with the character under the shell cursor

A

ctrl+t

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

DEFAULT

how do you transpose the two words immediately before (or under) the shell cursor

A

Esc and then t

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

DEFAULT

how do you convert text from the shell cursor to the end of the word to uppercase.

A

Pressing Esc and then u

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

DEFAULT

how do you convert text from the cursor to the end of the word to lowercase

A

Esc and then l

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

DEFAULT
how do you convert the letter under the cursor (or the first letter of the next word) to uppercase; leaving the rest of the word unaffected.

A

Esc and then c

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

DEFAULT

how do you launch a full-fledged editor to edit a command at the shell

A

Ctrl+x followed by Ctrl+e

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

DEFAULT

how do you set an enviornment variable

A

VARNAME=VALUE

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

DEFAULT

how do you save an environment variable across sessions

A

export VARNAME

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

DEFAULT

how do you set and save an environment variable across sessions

A

export VARNAME=VALUE

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

DEFAULT

what is man section 1

A

Executable programs and shell commands

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

DEFAULT

what is man section 2

A

System calls provided by the kernel

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

DEFAULT

what is man section 3

A

Library calls provided by program libraries

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

DEFAULT

what is man section 4

A

Device files (usually stored in /dev )

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

DEFAULT

what is man section 5

A

File formats

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

DEFAULT

what is man section 6

A

Games

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

DEFAULT

what is man section 7

A

Miscellaneous (macro packages; conventions; and so on)

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

DEFAULT

what is man section 8

A

System administration commands (programs run mostly or exclusively by root )

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

DEFAULT

what is man section 9

A

Kernel routines

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

DEFAULT

what is stdin’s file descriptor

A

0

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

DEFAULT

what is stdout’s file descriptor

A

1

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

DEFAULT

what is stderr’s file descriptor

A

2

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

DEFAULT

how do you specify all numbers and letters in the tr command

A

[:alnum:]

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

DEFAULT

how do you specify all uppercase letters in the tr command

A

[:upper:]

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

DEFAULT

how do you specify all lowercase letters in the tr command

A

[:lower:]

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

DEFAULT

how do you specify all numbers in the tr command

A

[:digit:]

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

DEFAULT

how do you specify a range of characters in the tr command

A

You can specify a range of characters by separating them with dashes ( - ); as in A-M

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

DEFAULT

how do you move forward one screen in less

A

spacebar

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

DEFAULT

how do you move back one screen in less

A

Esc followed by v

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

DEFAULT

how do you do a search in less

A

/STRING

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

DEFAULT

how do you do a backward search in less

A

?STRING

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

DEFAULT

how do you move to the next search result in less

A

n

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

DEFAULT

how do you move to the previous search result in less

A

N

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

DEFAULT

how do you go to a specific line in less

A

gNUMBER

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

DEFAULT

how do you display the help system in less

A

h

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

DEFAULT

what are the extended regular express characters

A

? + | ( )

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

DEFAULT

what is the windows newline

A

/r/n

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

DEFAULT

what is the mac newline

A

/n

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

DEFAULT

what is the linux newline

A

/n

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

DEFAULT

how could you use tr to convert from windows to linux format line endings

A

tr -d \r < dosfile.txt > unixfile.txt

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

DEFAULT

how could you use sed to convert from linux to windows line endings

A

sed “”s/$/\r/”” unixfile.txt > dosfile.txt

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

DEFAULT

describe the naming convention of this rpm package: string-a.b.c-x.y.rpm

A
string = Package Name
a.b.c = Version Number
x = Build Number
y = Architecture
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

DEFAULT
How would you use rpm to install or upgrade package samba-4.1.9-4.fc20.x86_64.rpm from an RPM file that you have already downloaded to your local system

A

rpm -Uvh samba-4.1.9-4.fc20.x86_64.rpm

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

DEFAULT

how would you query information on the installed package samba using rpm

A

rpm -qi samba

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

DEFAULT

how would you convert samba-4.1.9-4.fc20.src.rpm to samba-4.1.9-4.fc20.src.cpio

A

rpm2cpio samba-4.1.9-4.fc20.src.rpm > samba-4.1.9-4.fc20.src.cpio

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

DEFAULT

how would you extract samba-4.1.9-4.fc20.src.cpio

A

cpio -i –make-directories < samba-4.1.9-4.fc20.src.cpio

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

DEFAULT

how would you extract samba-4.1.9-4.fc20.src.rpm on a system without rpm

A

rpm2cpio samba-4.1.9-4.fc20.src.rpm | cpio -i –make-directories

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

DEFAULT

how do you install samba_4.1.6+dfsg- 1ubuntu2.1404.3_amd64.deb

A

dpkg -i samba_4.1.6+dfsg-1ubuntu2.1404.3_amd64.deb

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

DEFAULT

how do you uninstall samba using dpkg

A

dpkg -r samba

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

DEFAULT

what information is displayed by ps

A

username; process id; parent process id; tty; cpu time; cpu priority; memory usage; command

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

DEFAULT

how do you send a program to the background

A

ctrl+z

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

DEFAULT

what is process signal 1 and what does it do

A

SIGHUP ; which terminates interactive programs and causes many daemons to reread their configuration files

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

DEFAULT

what is process signal 9 and what does it do

A

SIGKILL ; which causes the process to exit without performing routine shutdown tasks)

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

DEFAULT

what is process signal 15 and what does it do

A

SIGTERM ; which causes the process to exit but allows it to close open files and so on

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

DEFAULT

what is process signal SIGHUP and what does it do

A

1 ; which terminates interactive programs and causes many daemons to reread their configuration files

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

DEFAULT

what is process signal SIGHKILL and what does it do

A

9 ; which causes the process to exit without performing routine shutdown tasks)

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

DEFAULT

what is process signal SIGHTERM and what does it do

A

15 ; which causes the process to exit but allows it to close open files and so on

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

DEFAULT

what is an interrupt request

A

a signal sent to the CPU instructing it to suspend its current activity and to handle some external event such as keyboard input

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

DEFAULT

what is IRQ 0

A

system timer

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

DEFAULT

what is IRQ 1

A

keyboard

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

DEFAULT

what is IRQ 2

A

handles IRQ 8-15

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

DEFAULT

what is IRQ 3

A

COM2

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

DEFAULT

what is IRQ 4

A

COM1

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

DEFAULT

what is IRQ 5

A

LPT2 / Sound card

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

DEFAULT

what is IRQ 6

A

Floppy controller

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

DEFAULT

what is IRQ 7

A

parallel port

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

DEFAULT

what is IRQ 8

A

real time clock

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

DEFAULT

what is IRQ 12

A

ps2 mouse

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

DEFAULT

what is IRQ 13

A

floating point proc

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

DEFAULT

what is IRQ 14

A

primary IDE

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

DEFAULT

what is IRQ 15

A

secondary IDE

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

DEFAULT

what are i/o addresses

A

unique locations in memory that are reserved for communications between the CPU and specific physical hardware devices

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

DEFAULT

what is direct memory addressing

A

an alternative method of communication to I/O ports. Rather than have the CPU mediate the transfer of data between a device and memory; DMA permits the device to transfer data directly; without the CPU’s attention

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

DEFAULT

how does the BIOS boot process begin

A

the computer reading a boot sector (typically the first sector) from a disk and then executing that code

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

DEFAULT

how does the EFI boot process begin

A

the computer reading a boot loader file from a filesystem on a special partition; known as the EFI System Partition (ESP) . This file either can take a special default name or can be registered in the computer’s NVRAM

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

DEFAULT

what is the HAL Daemon

A

The Hardware Abstraction Layer (HAL) Daemon ; or hald ; is a user-space program that runs at all times (that is; as a daemon) and provides other user-space programs with information about available hardware

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

DEFAULT

what is the D-Bus

A

The Desktop Bus (D-Bus) provides a further abstraction of hardware information access. Like hald ; D-Bus runs as a daemon. D-Bus enables processes to communicate with each other as well as to register to be notified of events; both by other processes and by hardware (such as the availability of a new USB device).

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

DEFAULT

what is mbr partition code 0x0c

A

fat

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

DEFAULT

what is mbr partition code 0x05

A

old extended code

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

DEFAULT

what is mbr partition code 0x07

A

ntfs

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

DEFAULT

what is mbr partition code 0x0f

A

newer extended code

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

DEFAULT

what is mbr partition code 0x82

A

linux swap

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

DEFAULT

what is mbr partition code 0x83

A

linux filesystem

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

DEFAULT

what is mbr partition code 0x8e

A

LVM

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

DEFAULT

what directories should never be on a seperate partition from /

A
/bin
/dev
/etc
/lib
/sbin
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
98
Q

DEFAULT

describe ext2fs

A

traditional Linux-native filesystem; no journaling

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

DEFAULT

describe ext3fs

A

ext2 with journaling

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

DEFAULT

describe ext4fs

A

ext3 with performance and size extensions

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

DEFAULT

describe ReiserFS

A

designed from scratch as a journaling filesystem for Linux. It’s particularly good at handling large numbers of small files (

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

DEFAULT

describe JFS

A

IBM developed the Journaled File System (JFS) for its AIX OS on mainframe systems and later reimplemented it on its attempt at a workstation OS; called OS/2. After the demise of OS/2; the OS/2 version of JFS was subsequently donated to Linux

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

DEFAULT

describe XFS

A

Silicon Graphics (SGI) created its Extents File System (XFS) for its IRIX OS and; like IBM; later donated the code to Linux. Like JFS; XFS is a very technically sophisticated filesystem. XFS has gained a reputation for robustness; speed; and flexibility on IRIX; but some of the XFS features that make it so flexible on IRIX aren’t supported well under Linux.

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

DEFAULT

describe Btrfs

A

is an advanced filesystem with features inspired by those of Sun’s Zettabyte File System (ZFS).

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

DEFAULT

describe FAT

A

old and primitive—but ubiquitous. It’s the only hard disk filesystem supported by DOS and early versions of Windows (such as the Windows 9 x series and the short-lived Windows Me). For this reason; every major OS understands FAT;

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

DEFAULT

describe NTFS

A

the preferred filesystem for Windows NT and beyond. Unfortunately; Linux’s NTFS support is rather rudimentary. As of the 2.6. x kernel series; Linux can reliably read NTFS and can overwrite existing files; but the Linux kernel can’t write new files to an NTFS partition. There are separate drivers outside of the kernel that you can use in Linux to create new files on an NTFS filesystem

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

DEFAULT

describe HFS[+]

A

Apple has long used the Hierarchical File System (HFS) with its Mac OS; and Linux provides full read/write HFS support. This support isn’t as reliable as Linux’s read/write FAT support; though; so you may want to use FAT when exchanging files with Mac users.

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

DEFAULT

describe ISO-9660

A

CD-ROMs; Linux Rock Ridge extensions; Joliet Windows extensions

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

DEFAULT

describe UDF

A

Universal Disc Format (UDF) is the next-generation filesystem for optical discs. It’s commonly used on DVD-ROMs and recordable optical discs. Linux supports it; but read/write UDF support is still in its infancy.

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

DEFAULT

describe the /etc/fstab file format

A
#device mount point filesystem options dump(1 means the dump program should do a dump) fsck(fsck check order, 0 means don't check)
e.g. UUID=3631a288-673e-40f5-9e96-6539fec468e9 \ /usr reiserfs defaults 0 0
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
111
Q

DEFAULT

what does ““credentials=/etc/creds”” in the options column of the /etc/fstab signify

A

the login credentials(username and password) are stored in /etc/creds

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

DEFAULT

what characters should not be used in filenames

A
  • ? / \ “”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
113
Q

DEFAULT

what are the wildcard expansion characters

A

? * [a-z]

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

DEFAULT

what are the three timestamps on each file

A

Last file-modification time
Last inode change time
Last access time

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

DEFAULT

how would you compress ∼/my-work and gzip it into /media/pen/my-work.tgz

A

tar cvfz /media/pen/my-work.tgz ∼/my-work

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

DEFAULT

what are the file type codes displayed by ls -l

A
  • normal file
    d directory
    l symlink
    p named pipe (A pipe enables two running Linux programs to communicate with each other. One opens the pipe for reading; and the other opens it for writing; enabling data to be transferred between the programs)
    s socket (similar to a named pipe; but it permits network and bidirectional links)
    b block device (a file that corresponds to a hardware device to and from which data is transferred in blocks of more than 1 byte. Disk devices (hard disks; USB flash drives; CD-ROMs; and so on))
    c character device (a hardware device to and from which data is transferred in units of 1 byte. Examples include parallel port; RS-232 serial port; and audio devices)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
117
Q

DEFAULT

what does the directory execution bit do

A

When a directory’s execute bit is set; that means that the directory’s contents may be searched

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

DEFAULT

what does the write bit on a directory do

A

if a user can write to a directory; that user can create; delete; or rename files in the directory as well
use the sticky bit to alter this behavior

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

DEFAULT

what are the permissions of a symlink

A

always 777

trying to change it’s permissions will affect the file it points to

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

DEFAULT

how is set user id represented

A

4000
SUID
s in the owner’s execute bit
If the SUID bit is set on a file without execution permission set; the permission string appears with a capital S ; as in rwSr-xr-x . However; in this case; SUID will not function and the setting is called benign .

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

DEFAULT

how is set group id represented

A

2000
SGID
s in the group’s execute bit
f the SGID bit is set on a file without execution permission set; the permission string appears with a capital S ; as in rwsr-Sr-x . Also in this case the setting is benign.
SGID is also useful on directories. When the SGID bit is set on a directory; new files or subdirectories created in the original directory will inherit the group ownership of the directory rather than be based on the user’s current default group

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

DEFAULT

how is sticky bit represented

A

1000
t in the world’s execute bit
When this bit is present on a directory; the directory’s files can be deleted only by their owners; the directory’s owner; or root

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

DEFAULT

what is a typical default umask

A

002 or 022

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

DEFAULT

how would you set the permissions of newly created folders to have rwxrxrx permissions symbolically

A

umask u=rwx,g=rx,o=rx

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

DEFAULT

how would you add user quota support to a mount point in /etc/fstab

A

/dev/sdc5 /home ext4 usrquota 1 1

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

DEFAULT

how would you add group quota support to a mount point in /etc/fstab

A

/dev/sdc5 /home ext4 grpquota 1 1

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

DEFAULT

how would you add user and group quota support to a mount point in /etc/fstab

A

/dev/sdc5 /home ext4 usrquota,grpquota 1 1

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

DEFAULT

what is the old filesystem structure for linux called

A

FSSTND
Filesystem Standard
Standardized the programs that reside in
/bin and /usr/bin.
Specified that executable files shouldn’t reside in
/etc
Removed changeable files from the
/usr
enabling it to be mounted read-only (a useful security measure).

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

DEFAULT

what is the current filesystem structure

A

Filesystem Hierarchy Standard (FHS)

Shareable; Unshareable; Static; Variable

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

DEFAULT

what are some static shareable directories in FHS

A

/usr

/opt

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

DEFAULT

what are some static unshareable folders in FHS

A

/etc

/boot

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

DEFAULT

what are some variable shareable folders in FHS

A

/home

/var/mail

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

DEFAULT

what are some variable unshareable folders in FHS

A

/var/run

/var/lock

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

DEFAULT

what directories are recommended to have their own partition

A
/boot
/home
/opt
/tmp
/usr
/usr/local
/var
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
135
Q

DEFAULT

how does grub legacy start a boot entry

A

title

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

DEFAULT

how does grub 2 start a boot entry

A

menuentry

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

DEFAULT

what is the system logger

A

syslogd
writes files to
/var/log/messages
/var/log/syslog

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

DEFAULT

what are the 3 popular initialization process methods used in linux

A

Unix System V (also called SysV)
Upstart (ubuntu; each service has a configuration file)
systemd (redhat) (this is the winner! everyone important is switching to it)

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

DEFAULT

describe runlevel 0

A

shutdown
A transitional runlevel; meaning that it’s used to shift the computer from one state to another. Specifically; it shuts down the system. On modern hardware; the computer should completely power down. If not; you’re expected to either reboot the computer manually or power it off.

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

DEFAULT

describe runlevel 1

A

also s or S
Single-user mode. What services; if any; are started at this runlevel vary by distribution. It’s typically used for low-level system maintenance that may be impaired by normal system operation; such as resizing partitions.

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

DEFAULT

describe runlevel 2

A

On Debian and its derivatives; a full multi-user mode with X running and a graphical login. Most other distributions leave this runlevel undefined.

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

DEFAULT

describe runlevel 3

A

On Fedora; Mandriva; Red Hat; and most other distributions; a full multi-user mode with a console (nongraphical) login screen.

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

DEFAULT

describe runlevel 4

A

Usually undefined by default and therefore available for customization.

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

DEFAULT

describe runlevel 5

A

On Fedora; Mandriva; Red Hat; and most other distributions; the same behavior as runlevel 3; with the addition of having X run with an XDM (graphical) login.

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

DEFAULT

describe runlevel 6

A

Used to reboot the system. This runlevel is also a transitional runlevel. Your system is completely shut down; and then the computer reboots automatically.

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

DEFAULT

what is a systemd unit

A

defines a service or action on the system

eg. mount; service; snapshot

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

DEFAULT

what are the systemd units

A
automount
device
mount
path
service
snapshot
socket
target
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
148
Q

COMMANDS

pwd

A

print the working directory

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

COMMANDS

echo STRING

A

display text from stdin

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

COMMANDS

time COMMAND

A

times how long COMMAND takes to execute

Three times are displayed: totalexecution time (aka real time); user CPU time; and system CPU time

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

COMMANDS

set

A

displays a wide variety of options relating to bash shell operation
These options are formatted much like environment variables; but they aren’t the same things. You can pass various options to set to have it affect a wide range of shell operations.

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

COMMANDS

exit

A

terminates any shell
Login shells are shell programs that are launched automatically when you initiate a text-mode login as opposed to those that run in xterm windows or other terminal emulators

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

COMMANDS

logout

A

terminates only login shells
Login shells are shell programs that are launched automatically when you initiate a text-mode login as opposed to those that run in xterm windows or other terminal emulators

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

COMMANDS

type COMMAND

A

tells you how a command you enter will be interpreted—as a built-in command; an external command; an alias; and so on

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

COMMANDS

history

A

displays all of the commands in the history

typically the latest 500 commands

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

COMMANDS

!!

A

display and execute the last command in your shell history

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

COMMANDS

!NUMBER

A

execute command NUMBER from the history

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

COMMANDS

$PATH

A

a directory list to search when you’re entering command or program names

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

COMMANDS

env

A

display environment variables

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

COMMANDS

unset VARNAME

A

unset an environment variable

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

COMMANDS

$PS1

A

the shell prompt

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

COMMANDS

man COMMAND

A

display the manual for COMMAND

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

COMMANDS

info COMMAND

A

hypertext formatted manual

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

COMMANDS

help COMMAND

A

a built in manual for built in commands

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

COMMANDS

>

A

Creates a new file containing standard output. If the specified file exists; it’s overwritten. No file descriptor necessary.

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

COMMANDS

|&raquo_space;

A

Appends standard output to the existing file. If the specified file doesn’t exist; it’s created. No file descriptor necessary.

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

COMMANDS

2>

A

Creates a new file containing standard error. If the specified file exists; it’s overwritten. File descriptor necessary.

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

COMMANDS

A

Appends standard error to the existing file. If the specified file doesn’t exist; it’s created. File descriptor necessary.

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

COMMANDS

&>

A

Creates a new file containing both standard output and standard error. If the specified file exists; it’s overwritten. No file descriptors necessary.

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

COMMANDS

A

Sends the contents of the specified file to be used as standard input. No file descriptor necessary.

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

COMMANDS

A

Accepts text on the following lines as standard input. No file descriptor necessary.

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

COMMANDS

<>

A

Causes the specified file to be used for both standard input and standard output. No file descriptor necessary.

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

COMMANDS

COMMAND1 | COMMAND2

A

link stdout from COMMAND1 to stdin of COMMAND2

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

COMMANDS

tee

A

display stdin on stdout and save it to the specified files

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

COMMANDS

xargs [ options ] [ command [ initial-arguments ]]

A

run command once for every word passed to it on standard input
find / -user Christine | xargs -d “” \ n”” rm

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

COMMANDS

COMMAND

A

a separate command whose results are substituted on the command line
rm ` find . / -user Christine `

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

COMMANDS

$(COMMAND)

A

a separate command whose results are substituted on the command line
rm $(find ./ -user Christine)

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

COMMANDS

cat

A

concatenate files and print on the standard output

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

COMMANDS

tac

A

concatenate files and print on the standard output in reverse line order

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

COMMANDS

join

A

For each pair of input lines with identical join fields; write a line to standard output. The default join field is the first; delimited by blanks.
Fields are typically space-separated entries on a line

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

COMMANDS

paste

A

Write lines consisting of the sequentially corresponding lines from each FILE; separated by TABs; to standard output

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

COMMANDS

expand

A

Convert tabs in each FILE to spaces; writing to standard output.
assumes a tab stop every eight characters

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

COMMANDS

od

A

dump files in octal and other formats

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

COMMANDS

sort

A

sort lines of text files

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

COMMANDS

split

A

Output pieces of FILE to PREFIXaa; PREFIXab; …; default size is 1000 lines; and default PREFIX is ‘x’.
split -l 2 listing1.1.txt numbers

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

COMMANDS

tr [ options ] SET1 [ SET2 ]

A
Translate; squeeze; and/or delete characters from standard input; writing to standard output
tr BCJ bc < listing1.1.txt
B is replaced with b
C is replaced with c
J is replaced with c
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
187
Q

COMMANDS

unexpand

A

unexpand - convert spaces to tabs

defaults to 8

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

COMMANDS

uniq

A

report or omit repeated lines

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

COMMANDS

fmt

A

Reformat each paragraph in the FILE(s); writing to standard output.
(default of 75 columns)

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

COMMANDS

nl

A

number lines of files (non empty)

the similar to ““cat -b”” by default

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

COMMANDS

pr

A

Paginate or columnate FILE(s) for printing

defaults to 80 columns

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

COMMANDS

head

A

Print the first 10 lines of each FILE to standard output. With more than one FILE; precede each with a header giving the file name.

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

COMMANDS

tail

A

Print the last 10 lines of each FILE to standard output. With more than one FILE; precede each with a header giving the file name.

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

COMMANDS

less

A

Less is a program similar to more (1); but it has many more features.

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

COMMANDS

cut

A

Print selected parts of lines from each FILE to standard output.

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

COMMANDS

wc

A

Print newline; word; and byte counts for each FILE; and a total line if more than one FILE is specified. A word is a non-zero-length sequence of characters delimited by white space.

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

COMMANDS

grep

A

searches for PATTERN in each FILE

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

COMMANDS

sed

A

stream editor for filtering and transforming text
sed [ options ] -f script-file [ input-file ]
sed [ options ] script-text [ input-file ]

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

COMMANDS

rpm

A

RPM Package Manager

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

COMMANDS

rpm2cpio

A

converts the .rpm file specified as a single argument to a cpio archive on standard out. If a ‘-‘ argument is given; an rpm stream is read from standard in.

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

COMMANDS

cpio

A

copy files to and from archives
find ./my-work | cpio -o > /media/usb/my-work.cpio
cpio -i < /media/usb/my-work.cpio

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

COMMANDS

yum

A

a repository based rpm manage
used by: Red Hat; CentOS; Fedora; and some other RPM-based distributions
not usd by: SUSE and Mandriva;

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

COMMANDS

yumdownloader

A

yumdownloader is a program for downloading RPMs from Yum repositories

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

COMMANDS

kyum

A

a gui frontend for yum

also yumex

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

COMMANDS

yumex

A

a gui frontend for yum

also kyum

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

COMMANDS

dpkg

A

debian’s equivelant of rpm

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

COMMANDS

dselect

A

a high-level interactive package browser. Using it; you can select packages to install on your system from the APT archives defined in /etc/apt/sources.list ; review the packages that are already installed on your system; uninstall packages; and upgrade packages.

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

COMMANDS

apt-get

A

debian’s equivelant of yum

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

COMMANDS

apt-cache

A

apt-cache performs a variety of operations on APT’s package cache. apt-cache does not manipulate the state of the system but does provide operations to search and generate interesting output from the package metadata. The metadata is acquired and updated via the ‘update’ command of e.g. apt-get; so that it can be outdated if the last update is too long ago; but in exchange apt-cache works independently of the availability of the configured sources (e.g. offline).

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

COMMANDS

aptitude

A

a text based debian package manager with an optional interactive mode that is similar to dselect

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

COMMANDS

synaptic

A

a X gui program similar to dselect or aptitude

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

COMMANDS

dpkg-reconfigure

A

reconfigures packages after they have already been installed. Pass it the names of a package or packages to reconfigure. It will ask configuration questions; much like when the package was first installed.

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

COMMANDS

alien

A

converts between Red Hat rpm; Debian deb; Stampede slp; Slackware tgz; Solaris pkg; and tarballs
requires that you have appropriate package manager software installed—for instance; both RPM and Debian—to convert between these formats
When converting from a tarball; alien copies the files directly as they had been in the tarball; so alien works only if the original tarball has files that should be installed off the root ( / ) directory of the system

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

COMMANDS

$LD_LIBRARY_PATH

A

This environment variable specifies additional directories the system is to search for libraries
Does not require ldconfig for changes to take effect

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

COMMANDS

ldd

A

prints the shared objects (shared libraries) required by each program or shared object specified on the command line.

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

COMMANDS

ldconfig

A

usually called without any options
updates caches and links used by the system for locating libraries—that is; it reads /etc/ld.so.conf and implements any changes in that file or in the directories to which it refers

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

COMMANDS

uname

A

Print certain system information. With no OPTION; same as -s

node(host) name; kernel name; kernel version; kernel release; machine; processor; hardware platform; os name

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

COMMANDS

ps

A

ps displays information about a selection of the active processes.

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

COMMANDS

top

A

provides a dynamic real-time view of a running system

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

COMMANDS

free

A

displays the total amount of free and used physical and swap memory in the system; as well as the buffers and caches used by the kernel. The information is gathered by parsing /proc/meminfo. T

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

COMMANDS

uptime

A

gives a one line display of the following information. The current time; how long the system has been running; how many users are currently logged on; and the system load averages for the past 1; 5; and 15 minutes
the same information displayed in the header of w

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

COMMANDS

jobs

A

displays minimal information about the processes associated with the current session

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

COMMANDS

pgrep

A

looks through the currently running processes and lists the process IDs which match the selection criteria to stdout.
pgrep -u root cron

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

COMMANDS

bg

A

move the specified job to the background, or start the first background process if it is stopped

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

COMMANDS

fg

A

bring the specified job to the foreground

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

COMMANDS

nice

A

Run COMMAND with an adjusted niceness (defaults to 10); which affects process scheduling. With no COMMAND; print the current niceness.

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

COMMANDS

renice

A

renice alters the scheduling priority of one or more running processes.
renice 7 16580 -u pdavison tbaker

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

COMMANDS

kill

A

send a signal to a process
The default signal for kill is TERM.
used to stop programs

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

COMMANDS

nohup

A

Run COMMAND; ignoring hangup signals

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

COMMANDS

killall

A

kill processes by name

killall vi

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

COMMANDS

pkill

A

allows you to kill one or more processes based on usernames; user IDs; group IDs; and other features as well as using a matching regular expression

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

COMMANDS

setpci

A

a utility for querying and configuring PCI devices.

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

COMMANDS

lspci

A

utility for displaying information about PCI buses in the system and devices connected to them

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

COMMANDS

lsmod

A

a trivial program which nicely formats the contents of the /proc/modules (kernel modules)

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

COMMANDS

insmod

A
a trivial program to insert a module into the kernel. Most users will want to use modprobe(8) instead; which is more clever and can handle module dependencies.
e.g. insmod /lib/modules/3.16.6/kernel/drivers/bluetooth/bluetooth.ko
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
236
Q

COMMANDS

modprobe

A
intelligently adds or removes a module from the Linux kernel
e.g. modprobe bluetooth
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
237
Q

COMMANDS

rmmod

A

a trivial program to remove a module (when module unloading support is provided) from the kernel. Most users will want to use modprobe(8) with the -r option instead.

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

COMMANDS

lsusb

A

a utility for displaying information about USB buses in the system and the devices connected to them

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

COMMANDS

pvcreate

A

initialize a disk or partition for use by LVM

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

COMMANDS

vgcreate

A

create a volume group (for LVM)

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

COMMANDS

lvcreate

A

create a logical volume in an existing volume group (for LVM)

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

COMMANDS

lvscan

A

scan (all disks) for Logical Volumes (for LVM)

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

COMMANDS

fdisk

A

a dialog-driven program for creation and manipulation of partition tables. It understands GPT; MBR; Sun; SGI and BSD partition tables.
the book says this tool can’t do GPT even though it can
e.g. fdisk /dev/hda

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

COMMANDS

gdisk

A

GPT fdisk (aka gdisk) is a text-mode menu-driven program for creation and manipulation of partition tables

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

COMMANDS

mkfs

A

build a Linux filesystem
deprecated in favour of filesystem specific mkfs. utils
mkfs -t ext3 /dev/sda6

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

COMMANDS

mkswap

A

sets up a Linux swap area on a device or in a file

mkswap /dev/sda7

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

COMMANDS

swapon

A

used to specify devices on which paging and swapping are to take place
/dev/sda7

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

COMMANDS

dumpe2fs

A

dump ext2/ext3/ext4 filesystem information

prints the super block and blocks group information for the filesystem present on device

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

COMMANDS

xfs_info

A

like dumpe2fs but for xfs; displays filesystem info

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

COMMANDS

xfs_metadump

A

copies the filesystem’s metadata (filenames; file sizes; and so on) to a file

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

COMMANDS

tune2fs

A

enables you to change many of the filesystem parameters that are reported by dumpe2fs
adjust tunable filesystem parameters on ext2/ext3/ext4 filesystems

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

COMMANDS

fsck

A

check and repair a Linux filesystem

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

COMMANDS

xfs_admin

A

xfs equivelant to tune2fs

xfs_admin -L av_data /dev/sda7

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

COMMANDS

blkid

A

display the label and UUID of any partition’s filesystem

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

COMMANDS

debugfs

A

provides the abilities of dumpe2fs ; tune2fs ; and many of Linux’s normal file-manipulation tools all rolled into one
an interactive file system debugger. It can be used to examine and change the state of an ext2; ext3; or ext4 file system
e.g. debugfs /dev/sda11

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

COMMANDS

xfs_db

A

xfs equivelant to debugfs; only for experts

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

COMMANDS

df

A

report file system disk space usage

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

COMMANDS

du

A

estimate file space usage

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

COMMANDS

mount

A

mount a filesystem

mount /dev/sdb7 /mnt/shared

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

COMMANDS

umount

A

unmount file systems

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

COMMANDS

ls

A

list directory contents

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

COMMANDS

cp

A

make a copy

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

COMMANDS

mv

A

move (rename) files

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

COMMANDS

rm

A

remove files or directories

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

COMMANDS

touch

A

Update the access and modification times of each FILE to the current time

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

COMMANDS

tar

A

an archiving utility

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

COMMANDS

gzip

A

compress or expand files; oldest least compression

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

COMMANDS

bzip2

A

a block-sorting file compressor; improved over gzip

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

COMMANDS

xz

A

Compress or decompress .xz and .lzma files newest and best compression compared to gzip and bzip2

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

COMMANDS

dd

A

Copy a file; converting and formatting according to the operands.
very low level

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

COMMANDS

ln

A

make links between files
ln [options] source link
you can’t make hard links to directories

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

COMMANDS

mkdir

A

make directories

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

COMMANDS

rmdir

A

remove empty directories

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

COMMANDS

chown

A

change file owner and group
chown [ options ] [ newowner ][: newgroup ] filenames
eg. chown sally:skyhook forward.odt
Ordinary users may use chown to change the group of files that they own; provided that the users belong to the target group

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

COMMANDS

chmod

A

change file mode bits (permissions)

chmod [ options ] [ mode [; mode… ]] filename…

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

COMMANDS

umask

A

sets the bits that will be removed from 777 for directories and 666 for files when a new file/directory is created

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

COMMANDS

newgrp

A

set the users default group

newgrp mygroup

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

COMMANDS

chattr

A

change file attributes on a Linux file system

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

COMMANDS

lsattr

A

display file attributes

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

COMMANDS

quotaon

A

turn on disk quotas

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

COMMANDS

quotaoff

A

turn off disk quotas

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

COMMANDS

quotacheck

A

surveys the filesystem needing quotas and builds current disk usage data records.
e.g. create needed files and check the user quota on home: quotacheck -cu /home

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

COMMANDS

edquota

A

open a text editor to edit quotas

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

COMMANDS

repquota

A

summarizes the quota information about the filesystem you specify or on all filesystems if you pass it the -a option

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

COMMANDS

quota

A

display disk usage and limits

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

COMMANDS

find

A

search for files in a directory hierarchy

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

COMMANDS

locate

A

reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs

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

COMMANDS

updatedb

A

creates or updates a database used by locate(1)

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

COMMANDS

whereis

A

searches for files in a restricted set of locations; such as standard binary file directories; library directories; and man page directories.

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

COMMANDS

which

A

searches your path for the command that you type and lists the complete path to the first match it finds

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

COMMANDS

grub-install

A
installs grub legacy
grub-install /dev/sda
grub-install '(hd0)'
install to bootsector instead of MBR: 
/dev/sda1 or (hd0;0)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
292
Q

COMMANDS

efibootmgr

A

manipulate the EFI Boot Manager

efibootmgr -c -l \EFI\redhat\grub.efi -L GRUB

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

COMMANDS

update-grub

A
apply changes from
/etc/default/grub
and
/etc/grub.d/
to
/boot/grub/grub.cfg
or grub-mkconfig
some versions output to stdio; if so redirect them to the file
/boot/grub/grub.cfg
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
294
Q

COMMANDS

dmesg

A
print or control the kernel ring buffer
kernel and module log messages
sometimes it's in /var/log/dmesg
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
295
Q

COMMANDS

chkconfig

A

(SysV) updates and queries runlevel information for system services

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

COMMANDS

runlevel

A

returns the previous and current runlevel

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

COMMANDS

init

A

reread the /etc/inittab file and change runlevels

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

COMMANDS

telinit

A

just like init; but telinit [qQ] will re-read the /etc/inittab

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

COMMANDS

shutdown

A

shutdown the machine

shutdown -h +15 ““system going down for maintenance””

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

COMMANDS

halt

A

halt the machine

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

COMMANDS

reboot

A

reboot the machine

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

COMMANDS

poweroff

A

poweroff the machine

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

COMMANDS

systemctl

A

Control the systemd system and service manager

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

COMMANDS

journalctl

A

Query the systemd journal

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

SWITCHES

type -a

A

returns all of the places that contain an executable named file

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

SWITCHES

uname -a

A

show all information

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

SWITCHES

history -c

A

clear the history

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

SWITCHES

man -k

A

search man pages for a topic; requires the whatis database to work
man -k ““system information””

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

SWITCHES

man #

A

select the section in the man page to open

man 5 passwd

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

SWITCHES

xargs -d

A

specify the delimiter

defaults to space

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

SWITCHES

cat -E

A

display a “”$”” at the end of each line

–show-ends

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

SWITCHES

cat -n

A

adds line numbers to the beginning of every line.

–number

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

SWITCHES

cat -b

A

adds line numbers to the beginning of every line that contains text
–number-nonblank

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

SWITCHES

cat -s

A

compresses groups of blank lines down to a single blank line

–squeeze-blank

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

SWITCHES

cat -T

A

displays tab characters as ““∧I””

–show-tabs

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

SWITCHES

cat -v

A

displays most control and other special characters using carat ( ∧ ) and M- notations.
–show-nonprinting

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

SWITCHES

join -t CHAR

A

use CHAR as input and output field separator

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

SWITCHES

join -i

A

ignore differences in case when comparing fields

–ignore-case

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

SWITCHES

expand -t NUMBER

A

have tabs NUMBER characters apart; not 8

–tabs=NUMBER

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

SWITCHES

sort -f

A

ignore case

–ignore-case; (fold)

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

SWITCHES

sort -M

A

sort by three-letter month abbreviation ( JAN through DEC )

–month-sort

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

SWITCHES

sort -n

A

compare according to string numerical value

–numeric-sort

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

SWITCHES

sort -r

A

reverse the result of comparisons

–reverse

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

SWITCHES

sort -k KEYDEF

A

sort via a key; KEYDEF gives location and type
–key=KEYDEF
(KEYDEF can be two numbered fields separated by commas; to sort on multiple fields.)
E.G. sort -k 3 listing1.1.txt

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

SWITCHES

split -b NUMBER

A

put NUMBER bytes per output file

–bytes=NUMBER

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

SWITCHES

split -C NUMBER

A

put at most NUMBER bytes of records per output file

–line-bytes=NUMBER

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

SWITCHES

split -l NUMBER

A

put NUMBER lines/records per output file

–lines=NUMBER

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

SWITCHES

tr -t

A

first truncate SET1 to length of SET2

–truncate-set1

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

SWITCHES

tr -d

A

delete characters in SET1; do not translate

–delete

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

SWITCHES

unexpand -t LIST

A

use comma separated LIST of tab positions (enables -a)

–tabs=LIST

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

SWITCHES

fmt -w NUMBER

A

maximum line width (default of 75 columns)

–width=NUMBER

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

SWITCHES

nl -b STYLE

A

use STYLE for numbering body lines
–body-numbering=STYLE
STYLE is:
t (The default behavior is to number lines that aren’t empty. You can make this default explicit by using a style code of t .)
a (This style code causes all lines to be numbered; including empty lines.)
n (This style code causes all line numbers to be omitted; which may be desirable for headers or footers.)
pREGEXP (This option causes only lines that match the specified regular expression ( REGEXP ) to be numbered.)

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

SWITCHES

nl -h STYLE

A

use STYLE for numbering header lines
–header-numbering=STYLE
STYLE is: t (The default behavior is to number lines that aren’t empty. You can make this default explicit by using a style code of t .) a (This style code causes all lines to be numbered; including empty lines.) n (This style code causes all line numbers to be omitted; which may be desirable for headers or footers.)
pREGEXP (This option causes only lines that match the specified regular expression ( REGEXP ) to be numbered.)

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

SWITCHES

nl -f STYLE

A

use STYLE for numbering footer lines
–footer-numbering=STYLE
STYLE is: t (The default behavior is to number lines that aren’t empty. You can make this default explicit by using a style code of t .) a (This style code causes all lines to be numbered; including empty lines.) n (This style code causes all line numbers to be omitted; which may be desirable for headers or footers.)
pREGEXP (This option causes only lines that match the specified regular expression ( REGEXP ) to be numbered.)

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

SWITCHES

nl -d CC

A

use CC for logical page delimiters

–section-delimiter=CC

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

SWITCHES

nl -n FORMAT

A
insert line numbers according to FORMAT
--number-format=FORMAT
format is:
ln (left justified; no leading zeros);
rn (right justified; no leading zeros);
rz (right justified with leading zeros).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
337
Q

SWITCHES

pr -NUMBER

A

output COLUMN columns and print columns down; unless -a is used
–columns=NUMBER
default is 80

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

SWITCHES

pr -d

A

double space the output

–double-space

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

SWITCHES

pr -f

A

use form feeds instead of newlines to separate pages (by a 3-line page header with -F or a 5-line header and trailer without -F)

  • -form-feed
  • F
340
Q

SWITCHES

pr -l NUMBER

A

set the page length to PAGE_LENGTH (66) lines (default number of lines of text 56; and with -F 63). implies -t if PAGE_LENGTH <= 10
–length=NUMBER

341
Q

SWITCHES

pr -h STRING

A

use a centered STRING instead of filename in page header; -h “””” prints a blank line; don’t use -h””””
–header=STRING

342
Q

SWITCHES

pr -t

A

omit page headers and trailers; implied if PAGE_LENGTH <= 10

–omit-header

343
Q

SWITCHES

pr -o

A

offset each line with MARGIN (zero) spaces; do not affect -w or -W; MARGIN will be added to PAGE_WIDTH
–indent=NUMBER

344
Q

SWITCHES

pr -w NUMBER

A

set page width to NUMBER (72) characters for multiple text-column output only; -s[char] turns off (72)
–width=NUMBER

345
Q

SWITCHES

head -c NUMBER

A

print the first NUM bytes of each file; with the leading ‘-‘; print all but the last NUM bytes of each file
–bytes=[-]NUMBER

346
Q

SWITCHES

head -n NUMBER

A

print the first NUM lines instead of the first 10; with the leading ‘-‘; print all but the last NUM lines of each file
–lines=[-]NUMBER

347
Q

SWITCHES

tail -c NUMBER

A

output the last NUMBER bytes; or use -c +NUMBER to output starting with byte NUMBER of each file
–bytes=[+]NUMBER

348
Q

SWITCHES

tail -n NUMBER

A

output the last NUM lines; instead of the last 10; or use -n +NUM to output starting with line NUM
–lines=[+]NUMBER

349
Q

SWITCHES

tail -f

A

output appended data as the file grows;

–follow[={name|descriptor}]

350
Q

SWITCHES

tail –pid=NUMBER

A

with -f; terminate after process ID; PID dies

351
Q

SWITCHES

cut -b LIST

A

select only these bytes
–bytes=LIST
LIST can be a single number (such as 4 ); a closed range of numbers (such as 2-4 ); or an open range of numbers (such as -4 or 4- ).

352
Q

SWITCHES

cut -c LIST

A

select only these characters
–characters=LIST
LIST can be a single number (such as 4 ); a closed range of numbers (such as 2-4 ); or an open range of numbers (such as -4 or 4- ).

353
Q

SWITCHES

cut -f LIST

A

select only these fields; also print any line that contains no delimiter character; unless the -s option is specified
–fields=LIST
LIST can be a single number (such as 4 ); a closed range of numbers (such as 2-4 ); or an open range of numbers (such as -4 or 4- ).

354
Q

SWITCHES

cut -d STRING

A

use DELIM instead of TAB for field delimiter

–delimiter=STRING

355
Q

SWITCHES

cut -s

A

do not print lines not containing delimiters

–only-delimited

356
Q

SWITCHES

wc -l

A

print the newline counts

–lines

357
Q

SWITCHES

wc -w

A

print the word counts

–words

358
Q

SWITCHES

wc -c

A

print the byte counts

–bytes

359
Q

SWITCHES

wc -m

A

print the character counts

–chars

360
Q

SWITCHES

wc -L

A

print the maximum display width

–max-line-length

361
Q

SWITCHES

grep -c

A

Suppress normal output; instead print a count of matching lines for each input file. With the -v; –invert-match option (see below); count non-matching lines.
–count

362
Q

SWITCHES

grep -f STRING

A

Obtain patterns from file STRING; one per line. If this option is used multiple times or is combined with the -e (–regexp) option; search for all patterns given. The empty file contains zero patterns; and therefore matches nothing.
–file=STRING

363
Q

SWITCHES

grep -i

A

Ignore case distinctions; so that characters that differ only in case match each other.
–ignore-case

364
Q

SWITCHES

grep -r

A

Read all files under each directory; recursively; following symbolic links only if they are on the command line. Note that if no file operand is given; grep searches the working directory. This is equivalent to the -d recurse option.
–recursive
or use rgrep

365
Q

SWITCHES

grep -F

A

Interpret PATTERN as a list of fixed strings (instead of regular expressions); separated by newlines; any of which is to be matched.
–fixed-strings
or use fgrep

366
Q

SWITCHES

grep -E

A

Interpret PATTERN as an extended regular expression (ERE; see below).
–extended-regexp
or use egrep

367
Q

SWITCHES

sed =

A

Display the current line number

368
Q

SWITCHES

sed a\text

A

Append text to the file.

369
Q

SWITCHES

sed i\text

A

Insert text into the file

370
Q

SWITCHES

sed r filename

A

Append text from filename into the file

371
Q

SWITCHES

sed c\text

A

Replace the selected range of lines with the provided text

372
Q

SWITCHES

sed s/regexp/replacement/[g]

A

Replace text that matches the regular expression ( regexp ) with replacement

373
Q

SWITCHES

sed w filename

A

Write the current pattern space to the specified file.

374
Q

SWITCHES

sed q

A

Immediately quit the script; but print the current pattern space.

375
Q

SWITCHES

sed Q

A

Immediately quit the script.

376
Q

SWITCHES

rpm –root STRING

A

Modifies the Linux system having a root directory located at dir . This option can be used to maintain one Linux installation discrete from another one (say; during OS installation or emergency maintenance).

377
Q

SWITCHES

rpm –force

A

Forces installation of a package even when it means overwriting existing files or packages.
used with: -i ; -U ; -F

378
Q

SWITCHES

rpm -h

A

Displays a series of hash marks ( # ) to indicate the progress of the operation.
–hash
used with: -i ; -U ; -F

379
Q

SWITCHES

rpm -v

A

Used in conjunction with the -h option to produce a uniform number of hash marks for each package.
used with: -i ; -U ; -F

380
Q

SWITCHES

rpm –nodeps

A

Specifies that no dependency checks be performed. Installs or removes the package even if it relies on a package or file that’s not present or is required by a package that’s not being uninstalled.
used wih: -i ; -U ; -F ; -e

381
Q

SWITCHES

rpm –test

A

Checks for dependencies; conflicts; and other problems without actually installing the package.
used with: -i ; -U ; -F

382
Q

SWITCHES

rpm –prefix STRING

A

Sets the installation directory to STRING (works only for some packages).
used with: -i ; -U ; -F

383
Q

SWITCHES

rpm -a

A

Queries or verifies all packages.
–all
used with: -q ; -V

384
Q

SWITCHES

rpm -f STRING

A

Queries or verifies the package that owns file
–file STRING
used with: -q ; -V

385
Q

SWITCHES

rpm -p STRING

A

Queries the uninstalled RPM STRING

used with -q

386
Q

SWITCHES

rpm -i

A

Displays package information; including the package maintainer; a short description; and so on
used with -q

387
Q

SWITCHES

rpm -R

A

Displays the packages and files on which this one depends
–requires
used with -q

388
Q

SWITCHES

rpm -l

A

Displays the files contained in the package.
–list
used with -q

389
Q

SWITCHES

rpm -i

A

Installs a package; system must not contain a package of the same name

390
Q

SWITCHES

rpm -U

A

Installs a new package or upgrades an existing one

391
Q

SWITCHES

rpm -F

A

Upgrades a package only if an earlier version already exists

–freshen

392
Q

SWITCHES

rpm -q

A

Queries a package—finds whether a package is installed; what files it contains; and so on

393
Q

SWITCHES

rpm -v

A

Verifies a package—checks that its files are present and unchanged since installation
–verify

394
Q

SWITCHES

rpm -e

A

Uninstalls a package

395
Q

SWITCHES

rpm -b

A

Builds a binary package; given source code and configuration files; moved to the rpmbuild program with RPM version 4.2

396
Q

SWITCHES

rpm –rebuild

A

Builds a binary package; given a source RPM file; moved to the rpmbuild program with RPM version 4.2

397
Q

SWITCHES

rpm –rebuilddb

A

Rebuilds the RPM database to fix errors

398
Q

SWITCHES

cpio -i

A

extract an archive

399
Q

SWITCHES

cpio –make-directories

A

create directories

400
Q

SWITCHES

yum install

A

Installs one or more packages by package name. Also installs dependencies of the specified package or packages.

401
Q

SWITCHES

yum update

A

Updates the specified package or packages to the latest available version. If no packages are specified; yum updates every installed package.

402
Q

SWITCHES

yum check-update

A

Checks to see whether updates are available. If they are; yum displays their names; versions; and repository area ( updates or extras ; for instance).

403
Q

SWITCHES

yum upgrade

A

Works like update with the –obsoletes flag set; which handles obsolete packages in a way that’s superior when performing a distribution version upgrade

404
Q

SWITCHES

yum remove

A

Deletes a package from the system; similar to rpm -e ; but yum also removes depended-on packages
or erase

405
Q

SWITCHES

yum list

A

Displays information about a package; such as the installed version and whether an update is available

406
Q

SWITCHES

yum provides

A

Displays information about packages that provide a specified program or feature. For instance; typing yum provides samba lists all the Samba-related packages; including every available update. Note that the output can be copious.
or whatprovides

407
Q

SWITCHES

yum search

A

Searches package names; summaries; packagers; and descriptions for a specified keyword. This is useful if you don’t know a package’s name but can think of a word that’s likely to appear in one of these fields but not in these fields for other packages

408
Q

SWITCHES

yum info

A

Displays information about a package; similar to the rpm -qi command

409
Q

SWITCHES

yum clean

A

Cleans up the Yum cache directory. Running this command from time to time is advisable; lest downloaded packages chew up too much disk space.

410
Q

SWITCHES

yum shell

A

Enters the Yum shell mode; in which you can enter multiple Yum commands one after another

411
Q

SWITCHES

yum resolvedep

A

Displays packages matching the specified dependency.

412
Q

SWITCHES

yum localinstall

A

Installs the specified local RPM files; using your Yum repositories to resolve dependencies

413
Q

SWITCHES

yum localupdate

A

Updates the system using the specified local RPM files; using your Yum repositories to resolve dependencies. Packages other than those updated by local files and their dependencies are not updated

414
Q

SWITCHES

yum deplist

A

Displays dependencies of the specified package.

415
Q

SWITCHES

dpkg -i

A

Installs a package

–install

416
Q

SWITCHES

dpkg –configure

A

Reconfigures an installed package: runs the post-installation script to set site-specific options

417
Q

SWITCHES

dpkg -r

A

Removes a package but leaves configuration files intact

–remove

418
Q

SWITCHES

dpkg -P

A

Removes a package; including configuration files

–purge

419
Q

SWITCHES

dpkg –get-selections

A

Displays currently installed packages

420
Q

SWITCHES

dpkg -p

A

Displays information about an installed package

–print-avail

421
Q

SWITCHES

dpkg -I

A

Displays information about an uninstalled package file

–info

422
Q

SWITCHES

dpkg -l STRING

A

Lists all installed packages whose names match pattern

–list pattern

423
Q

SWITCHES

dpkg -L

A

Lists the installed files associated with a package

–listfiles

424
Q

SWITCHES

dpkg -S STRING

A

Locates the package(s) that own the file(s) specified by pattern
–search pattern

425
Q

SWITCHES

dpkg -c

A

pattern -C or –audit Searches for partially installed packages and suggests what to do with them
–audit

426
Q

SWITCHES

dpkg –root=STRING

A

Modifies the Linux system using a root directory located at STRING . Can be used to maintain one Linux installation discrete from another one; say during OS installation or emergency maintenance.
used with: all

427
Q

SWITCHES

dpkg -B

A

Disables packages that rely on one that is being removed.
–auto-deconfigure
used with -r

428
Q

SWITCHES

dpkg –force-things

A

Overrides defaults that would ordinarily cause dpkg to abort. Consult the dpkg man page for details of what (specified by things ) this option does.
used with: assorted

429
Q

SWITCHES

dpkg –ignore-depends=package

A

ignores dependency information for the specified package

used with: -i; -r

430
Q

SWITCHES

dpkg –no-act

A

Checks for dependencies; conflicts; and other problems without actually installing or removing the package
used with: -i; -r

431
Q

SWITCHES

dpkg –recursive

A

Installs all packages that match the package-name wildcard in the specified directory and all subdirectories
used with: -i

432
Q

SWITCHES

dpkg -G

A

Doesn’t install the package if a newer version of the same package is already installed.
used with: -i

433
Q

SWITCHES

dpkg -E

A

Doesn’t install the package if the same version of the package is already installed.
–skip-same-version
used with: -i

434
Q

SWITCHES

apt-cache showpkg

A

displays information about the packages listed on the command line.
eg: apt-cache showpkg samba

435
Q

SWITCHES

apt-cache stats

A

You can learn how many packages you’ve installed; how many dependencies are recorded; and various other statistics about the package database

436
Q

SWITCHES

apt-cache unmet

A

Find Unmet Dependencies

437
Q

SWITCHES

apt-cache depends

A

Display Dependencies

438
Q

SWITCHES

apt-cache pkgnames

A

Locate All Packages
If you include a second parameter; as in apt-cache pkgnames sa ; the program returns only those packages that begin with the specified string.

439
Q

SWITCHES

apt-get -d

A

Downloads package files but doesn’t install them.
–download-only
used with: upgrade ; dselect- upgrade ; install ; source

440
Q

SWITCHES

apt-get -f

A

Attempts to fix a system on which dependencies are unsatisfied.
–fix-broken
used with: install ; remove

441
Q

SWITCHES

apt-get -m

A

Ignores all package files that can’t be retrieved (because of network errors; missing files; or the like)
–ignore-missing ; or –fix-missing
used with: upgrade ; dselect- upgrade ; install ; remove ; source

442
Q

SWITCHES

apt-get -q

A

Omits some progress indicator information. May be doubled (for instance; -qq ) to produce still less progress information
–quiet
used with: all

443
Q

SWITCHES

apt-get -s

A

Performs a simulation of the action without actually modifying; installing; or removing files
–simulate ; –just- print ; –dry-run ; – recon ; or –no-act
used with: all

444
Q

SWITCHES

apt-get -y

A

Produces a ““yes’’ response to any yes/no prompt in installation scripts.
–yes ; or –assume- yes
used with: all

445
Q

SWITCHES

apt-get -b

A

Compiles a source package after retrieving it.
–compile; or –build
used with: source

446
Q

SWITCHES

apt-get –no-upgrade

A

auses apt-get to not upgrade a package if an older version is already installed.
used with: install

447
Q

SWITCHES

apt-get update

A

Obtains updated information about packages available from the installation sources listed in /etc/apt/sources.list .

448
Q

SWITCHES

apt-get upgrade

A

Upgrades all installed packages to the newest versions available; based on locally stored information about available packages.

449
Q

SWITCHES

apt-get dselect-upgrade

A

Performs any changes in package status (installation; removal; and so on) left undone after running dselect .

450
Q

SWITCHES

apt-get dist-upgrade

A

Similar to upgrade ; but performs ``smart’’ conflict resolution to avoid upgrading a package if doing so would break a dependency.

451
Q

SWITCHES

apt-get install

A

Installs a package by package name (not by package filename); obtaining the package from the source that contains the most up-to-date version.

452
Q

SWITCHES

apt-get remove

A

Removes a specified package by package name

453
Q

SWITCHES

apt-get source

A

Retrieves the newest available source package file by package filename using information about available packages and installation archives listed in /etc/apt/sources.list

454
Q

SWITCHES

apt-get check

A

Checks the package database for consistency and broken package installations

455
Q

SWITCHES

apt-get clean

A

Performs housekeeping to help clear out information about retrieved files from the Debian package database. If you don’t use dselect for package management; run this from time to time in order to save disk space.

456
Q

SWITCHES

apt-get autoclean

A

Similar to clean ; but removes information only about packages that can no longer be downloaded.

457
Q

SWITCHES

aptitude install STRING

A

install package STRING

458
Q

SWITCHES

aptitude install STRING-

A

uninstall package STRING

also remove STRING

459
Q

SWITCHES

aptitude remove STRING

A

uninstall package STRING

also install STRING-

460
Q

SWITCHES

aptitude full-upgrade

A

less conservative about removing packages in the upgrade process; and so it is more likely to complete its tasks. However; it may break software in the process.

461
Q

SWITCHES

aptitude safe-upgrade

A

conservative about removing packages or installing new ones and so may fail

462
Q

SWITCHES

aptitude search

A

earches the database for packages matching the specified name

463
Q

SWITCHES

aptitude autoclean

A

removes already-downloaded packages that are no longer available

464
Q

SWITCHES

aptitude clean

A

removes all downloaded packages

465
Q

SWITCHES

aptitude help

A

displays a complete list of options.

466
Q

SWITCHES

alien –to-deb

A

converts to debian

467
Q

SWITCHES

alien –to-rpm

A

converts to rpm

468
Q

SWITCHES

alien –to-tgz

A

converts to tgz

469
Q

SWITCHES

ldconfig -v

A

Display Verbose Information

470
Q

SWITCHES

ldconfig -N

A

causes ldconfig not to perform its primary duty of updating the library cache. It will; though; update symbolic links to libraries; which is a secondary duty of this program.

471
Q

SWITCHES

ldconfig -n

A

causes ldconfig to update the links contained in the directories specified on the command line. The system won’t examine the directories specified in /etc/ld.so.conf or the trusted directories ( /lib and /usr/lib )

472
Q

SWITCHES

ldconfig -X

A

the opposite of -N ; it causes ldconfig to update the cache but not manage links.

473
Q

SWITCHES

ldconfig -f STRING

A

change the configuration file from /etc/ld.so.conf to STRING

474
Q

SWITCHES

ldconfig -C STRING

A

change the cache file that ldconfig creates to STRING

475
Q

SWITCHES

ldconfig -r STRING

A

tells ldconfig to treat dir as if it were the root ( / ) directory. This option is helpful when you’re recovering a badly corrupted system or installing a new OS

476
Q

SWITCHES

ldconfig -p

A

Causes ldconfig to display the current cache—all of the library directories and the libraries they contain

477
Q

SWITCHES

uname -a

A

display all information

478
Q

SWITCHES

uname -n

A

displays the system’s node name; that is; its network hostname.
–nodename

479
Q

SWITCHES

uname -s

A

displays the kernel name; which is Linux on a Linux system

–kernel-name

480
Q

SWITCHES

uname -v

A

find the kernel version

–kernel-version

481
Q

SWITCHES

uname -r

A

The actual kernel version number

–kernel-release

482
Q

SWITCHES

uname -m

A

returns information about your machine. This is likely to be a CPU code; such as i686 or x86_64 .
–machine

483
Q

SWITCHES

uname -p

A

may return information about your CPU; such as the manufacturer; model; and clock speed; in practice; it returns unknown on many systems
–processor

484
Q

SWITCHES

uname -i

A

theoretically returns hardware platform information; this option often returns unknown
–hardware-platform

485
Q

SWITCHES

uname -o

A

returns the OS name—normally GNU/Linux for a Linux system

–operating-system

486
Q

SWITCHES

ps –help

A

Display Help

487
Q

SWITCHES

ps -A

A

Display All Processes

also -e

488
Q

SWITCHES

ps -e

A

Display All Processes

also -A

489
Q

SWITCHES

ps x

A

Lift the BSD-style ““must have a tty”” restriction;

displays all processes owned by the user who gives the command

490
Q

SWITCHES

ps -u STRING

A

display processes owned by user STRING
–User user
also U STRING
STRING may be a user name or uid

491
Q

SWITCHES

ps U STRING

A

display processes owned by user STRING
–User user
also U STRING
STRING may be a user name or uid

492
Q

SWITCHES

ps -H

A

Display Process Hierarchy
–forest
also -f

493
Q

SWITCHES

ps -f

A

Display Process Hierarchy
–forest
also -f

494
Q

SWITCHES

ps -w

A

don’t truncate output at 80 columns

also w

495
Q

SWITCHES

top -d NUMBER

A

how often top updates

defaults to 5 seconds

496
Q

SWITCHES

top -p NUMBER

A

only display the listed processes
NUMBER is a pid
up to 20 pids can be listed

497
Q

SWITCHES

top -n NUMBER

A

display NUMBER updates then quit

498
Q

SWITCHES

top -b

A

specifies batch mode; in which top doesn’t use the normal screen-update commands. You might use this to log CPU use of targeted programs to a file; for instance

499
Q

SWITCHES

top h while running

A

display help

also ?

500
Q

SWITCHES

top k while running

A

kill a process

501
Q

SWITCHES

top q while running

A

quit

502
Q

SWITCHES

top r while running

A

change a process’s priority

503
Q

SWITCHES

top s while running

A

changes the display’s update rate

504
Q

SWITCHES

top P while running

A

sets the display to sort by CPU usage; which is the default

505
Q

SWITCHES

top M while running

A

change the display to sort by memory usage with this command

506
Q

SWITCHES

nice -n NUMBER

A

run the program with NUMBER niceness
also -NUMBER
–adjustment=NUMBER

507
Q

SWITCHES

nice -NUMBER

A

run the program with NUMBER niceness
also -n NUMBER
–adjustment=NUMBER

508
Q

SWITCHES

renice [-n] NUMBER

A

Specify the scheduling priority to be used for the process; process group; or user.
–priority NUMBER

509
Q

SWITCHES

renice -p NUMBER

A

change niceness on the pid NUMBER

510
Q

SWITCHES

renice -g NUMBER

A

change niceness on the gid NUMBER

511
Q

SWITCHES

renice -u NUMBER

A

change niceness on the uid NUMBER

e.g. renice 7 16580 -u pdavison tbaker

512
Q

SWITCHES

kill -l

A

List signal names

513
Q

SWITCHES

kill -s STRING

A

specify the signal to send

common signals are 1(SIGHUP); 9(SIGKILL); 15(SIGTERM)

514
Q

SWITCHES

killall -i

A

Interactively ask for confirmation before killing

–interactive

515
Q

SWITCHES

lspci -v

A

Increases verbosity of output.

This option may be doubled ( -vv ) or tripled ( -vvv ) to produce yet more output

516
Q

SWITCHES

lspci -n

A

Displays information in numeric codes rather than translating the codes to manufacturer and device names.

517
Q

SWITCHES

lspci -nn

A

Displays both the manufacturer and device names and their associated numeric codes

518
Q

SWITCHES

lspci -x

A

Displays the PCI configuration space for each device as a hexadecimal dump.
This is an extremely advanced option. Tripling ( -xxx ) or quadrupling ( -xxxx ) this option displays information about more devices

519
Q

SWITCHES

lspci -b

A

hows IRQ numbers and other data as seen by devices rather than as seen by the kernel

520
Q

SWITCHES

lspci -t

A

Displays a tree view depicting the relationship between devices

521
Q

SWITCHES

lspci -s STRING

A

Displays only devices that match the listed specification. This can be used to trim the results of the output
-s [[[[ domain ]:] bus ]:] [ slot ][.[ func ]]

522
Q

SWITCHES

lspci -d STRING

A

Shows data on the specified device.

-d [ vendor ]: [ device ]

523
Q

SWITCHES

lspci -i STRING

A

Uses the specified file to map vendor and device IDs to names. (The default is /usr/share/misc/pci.ids .)

524
Q

SWITCHES

lspci -m

A

Dumps data in a machine-readable form intended for use by scripts. A single -m uses a backward-compatible format; whereas doubling ( - mm ) uses a newer format

525
Q

SWITCHES

lspci -D

A

Displays PCI domain numbers. These numbers normally aren’t displayed.

526
Q

SWITCHES

lspci -M

A

Performs a scan in bus-mapping mode; which can reveal devices hidden behind a misconfigured PCI bridge. This is an advanced option that can be used only by root .

527
Q

SWITCHES

lspci –version

A

Displays version information.

528
Q

SWITCHES

modprobe -v

A

display extra information

–verbose

529
Q

SWITCHES

modprobe -C STRING

A

This option overrides the default configuration directory (/etc/modprobe.d)
–config

530
Q

SWITCHES

modprobe -n

A

This option does everything but actually insert or delete the modules
–dry-run
useful when combined with -v

531
Q

SWITCHES

modprobe -r

A
Reverses modprobe 's usual effect; it causes the program to remove the specified module and any on which it depends
--remove
532
Q

SWITCHES

modprobe -f

A
force the module loading even if the kernel version doesn't match what the module expects. This action is potentially dangerous
--force
533
Q

SWITCHES

modprobe –show-depends

A

shows all of the modules on which the specified module depends

534
Q

SWITCHES

modprobe -l STRING

A

displays a list of available options whose names match the wildcard you specify

  • -list
    eg. modprobe -l v* displays all modules whose names begin with v
535
Q

SWITCHES

rmmod -v

A

display some extra information about what it’s doing

–verbose

536
Q

SWITCHES

rmmod -f

A
forces module removal even if the module is marked as being in use. Naturally; this is a very dangerous option;
--force
537
Q

SWITCHES

rmmod -w

A
wait for the module to become unused rather than return an error message if the module is in use. Once the module is no longer being used (say; after a bluetooth device is disconnected); rmmod unloads the module and returns
--wait
538
Q

SWITCHES

lsusb -v

A

display more information

539
Q

SWITCHES

lsusb -s STRING

A

restricts output to the specified bus and device number.

-s [[ bus ]:][ devnum ]

540
Q

SWITCHES

lsusb -d STRING

A

restrict output to a particular vendor and product

-d [ vendor ]: [ product ]

541
Q

SWITCHES

lsusb -D STRING

A

displays information about the device that’s accessible via filename ; which should be a file in the /proc/bus/usb directory tree

542
Q

SWITCHES

lsusb -t

A

displays the device list as a tree so that you can see what devices are connected to specific controllers more easily

543
Q

SWITCHES

lsusb -V

A

displays the version of the lsusb utility

–version

544
Q

SWITCHES

fdisk -l

A

display the current partition table

545
Q

SWITCHES

fdisk d while running

A

delete a partition

546
Q

SWITCHES

fdisk m while running

A

display help

also ?

547
Q

SWITCHES

fdisk t while running

A

change the partition type code

548
Q

SWITCHES

fdisk l while running

A

display common partition type codes

549
Q

SWITCHES

fdisk a while running

A

set the bootable flag

550
Q

SWITCHES

fdisk q while running

A

exit

551
Q

SWITCHES

fdisk w while running

A

save changes and exit

552
Q

SWITCHES

gdisk print while running

A

display existing partitions

553
Q

SWITCHES

mkfs -m NUMBER

A

sets the reserved-space percentage to NUMBER

554
Q

SWITCHES

tune2fs -c NUMBER

A

Adjust the number of mounts after which the filesystem will be checked by e2fsck

555
Q

SWITCHES

tune2fs -i NUMBER

A

Adjust the maximal time between two filesystem checks. No suffix or d will interpret the number interval-between-checks as days; m as months; and w as weeks. A value of zero will disable the time-dependent checking.

556
Q

SWITCHES

tune2fs -j

A

converts ext2 to ext3

557
Q

SWITCHES

tune2fs -r NUMBER

A

sets the reserved-space blocks to NUMBER

558
Q

SWITCHES

xfs_admin -j

A

enable version 2 log (journal) format

559
Q

SWITCHES

xfs_admin -l

A

obtain the filesystem’s label (name)

560
Q

SWITCHES

xfs_admin -u

A

obtain the filesystem’s uuid

561
Q

SWITCHES

xfs_admin -L STRING

A

set the filesystem’s label (name)

562
Q

SWITCHES

xfs_admin -U STRING

A

set the filesystem’s uuid

563
Q

SWITCHES

debugfs show_super_stats while running

A

produces superblock information; similar to what dumpe2fs displays
also stats

564
Q

SWITCHES

debugfs stat STRING (while running)

A

display the inode data on a file or directory

STRING is the name of a file or directorhy

565
Q

SWITCHES

debugfs undelete NUMBER STRING (while running)

A

undelete a file
also undel
NUMBER is the inode number and STRING is the name you want to give i

566
Q
SWITCHES
debugfs lsdel (while running)
A

obtain a list of deleted inodes

also list_deleted_inodes

567
Q

SWITCHES

debugfs write STRING1 STRING2 (while running)

A

extract a file from the filesystem
STRING1 is the name of a file in the filesystem that you’re manipulating and STRING2 is a filename on your main Linux system.

568
Q
SWITCHES
debugfs list_requests (while running)
A

produces a summary of available commands

also lr; help; or ?

569
Q

SWITCHES

debugfs quit

A

exit the program

570
Q

SWITCHES

fsck -A

A

check all of the filesystems marked to be checked in /etc/fstab .

571
Q

SWITCHES

fsck -c

A

displays a text-mode progress indicator of the check process

572
Q

SWITCHES

fsck -v

A

produces verbose output of the check process

573
Q

SWITCHES

fsck -N

A

display what it would normally do without actually doing it

574
Q

SWITCHES

fsck -t STRING

A

causes the program to check only the specified filesystem types; even if others are marked to be checked
used with -A
If STRING is prefixed with no ; then all filesystems except the specified type are checked

575
Q

SWITCHES

fsck –STRING

A

passes STRING to the underlying check program

576
Q

SWITCHES

df -a

A

includes pseudo-filesystems with a size of 0 in the output. These filesystems may include /proc ; /sys ; /proc/bus/usb ; and others
–all

577
Q

SWITCHES

df -h

A

scale and label its units

–human-readable

578
Q

SWITCHES

df -H

A

scale and label its units using powers of 10

–si

579
Q

SWITCHES

df -k

A

scale and label its units using kilobytes

–kilobytes

580
Q

SWITCHES

df -m

A

scale and label its units using megabytes

–megabytes

581
Q

SWITCHES

df -i

A

report on available and used inodes

–inodes

582
Q

SWITCHES

df -l

A

omit network filesystems

–local

583
Q

SWITCHES

df -T

A

display filesystem type

–print

584
Q

SWITCHES

df -t STRING

A

displays only information about filesystems of the specified type
–type=STRING

585
Q

SWITCHES

df -x STRING

A

don’t display information about filesystems of the specified type
–exclude=STRING

586
Q

SWITCHES

du -a

A

report on individual files as well.

–all

587
Q

SWITCHES

du -c

A

add a grand total to the end of its output

–total

588
Q

SWITCHES

du -h

A

scale and label its units;

–human-readable

589
Q

SWITCHES

du -H

A

scale and label its units using powers of 10

–si

590
Q

SWITCHES

du -k

A

scale and label its units using kilobytes

–kilobytes

591
Q

SWITCHES

du -m

A

scale and label its units using megabytes

–megabytes

592
Q

SWITCHES

du -l

A

count the space each hardlink takes (useful if you want to burn to optical storage)
–count-links

593
Q

SWITCHES

du –max-depth=NUMBER

A

limits the report to NUMBER levels

594
Q

SWITCHES

du -s

A

equivalent to –max=depth=0

–summarize

595
Q

SWITCHES

du -x

A

limits the report to the current filesystem. If another filesystem is mounted within the tree that you want summarized; its contents aren’t included in the report
–one-file-system

596
Q

SWITCHES

mount -a

A

mount all of the filesystems listed in the /etc/fstab

597
Q

SWITCHES

mount -r

A

mount the filesystem read-only

598
Q

SWITCHES

mount -v

A

produces verbose output

599
Q

SWITCHES

mount -w

A

mount the filesystem for both read and write

also: -o rw

600
Q

SWITCHES

mount -t STRING

A

specify the filesystem type

601
Q

SWITCHES

mount -L STRING

A

mount the filesystem whose label matches STRING

602
Q

SWITCHES

mount -U STRING

A

mount the filesystem whose UUID matches STRING

603
Q

SWITCHES

mount -o defaults

A

Causes the default options for this filesystem to be used. It’s used primarily in the /etc/fstab file to ensure that the file includes an options column
supported filesystems: all

604
Q

SWITCHES

mount -o loop

A

Causes the loopback device for this mount to be used. Allows you to mount a file as if it were a disk partition. For instance; mount -t vfat -o loop image.img /mnt/image mounts the file image.img as if it were a disk
supported filesystems: all

605
Q

SWITCHES

mount -o auto or noauto

A

Mounts or doesn’t mount the filesystem at boot time or when root issues the mount -a command. The default is auto ; but noauto is appropriate for removable media. Used in /etc/fstab
supported filesystems: all

606
Q

SWITCHES

mount -o user or nouser

A

Allows or disallows ordinary users to mount the filesystem. The default is nouser ; but user is often appropriate for removable media. Used in /etc/fstab . When included in this file; user allows users to type mount /mountpoint (where / mountpoint is the assigned mount point) to mount a disk. Only the user who mounted the filesystem may unmount it.
supported filesystems: all

607
Q

SWITCHES

mount -o users

A

Similar to user ; except that any user may unmount a filesystem once it’s been mounted.
supported filesystems: all

608
Q

SWITCHES

mount -o owner

A

Similar to user ; except that the user must own the device file. Some distributions; such as Red Hat; assign ownership of some device files (such as /dev/fd0 for the floppy disk) to the console user; so this can be a helpful option
supported filesystems: all

609
Q

SWITCHES

mount -o remount

A

Changes one or more mount options without explicitly unmounting a partition. To use this option; you issue a mount command on an already-mounted filesystem but with remount along with any options that you want to change. This feature can be used to enable or disable write access to a partition; for example
supported filesystems: all

610
Q

SWITCHES

mount -o ro

A

Specifies a read-only mount of the filesystem. This is the default for filesystems that include no write access and for some with particularly unreliable write support
supported filesystems: all

611
Q

SWITCHES

mount -o rw

A

Specifies a read/write mount of the filesystem. This is the default for most read/write filesystems
supported filesystems: All read/write filesystems

612
Q

SWITCHES

mount -o uid=NUMBER

A

Sets the owner of all files. For instance; uid=1000 sets the owner to whomever has Linux user ID 1000. (Check Linux user IDs in the /etc/passwd file.)
supported filesystmes: Most filesystems that don’t support Unix-style permissions; such as vfat ; hpfs ; ntfs ; and hfs

613
Q

SWITCHES

mount -o gid=value

A

Works like uid= value ; but sets the group of all files on the filesystem. You can find group IDs in the /etc/group file
supported filesystems: Most filesystems that don’t support Unix-style permissions; such as vfat ; hpfs ; ntfs ; and hfs

614
Q

SWITCHES

mount -o umask=value

A

Sets the umask for the permissions on files. value is interpreted in binary as bits to be removed from permissions on files. For instance; umask=027 yields permissions of 750; or –rwxr-x— . Used in conjunction with uid= value and gid= value ; this option lets you control who can access files on FAT; HPFS; and many other foreign filesystems.
supported filesystems: Most filesystems that don’t support Unix-style permissions; such as vfat ; hpfs ; ntfs ; and hfs

615
Q

SWITCHES

mount -o dmask=value

A

Similar to umask ; but sets the umask for directories only; not for files.
supported filesystems: Most filesystems that don’t support Unix-style permissions; such as vfat ; hpfs ; ntfs ; and hfs

616
Q

SWITCHES

mount -o fmask=value

A

Similar to umask ; but sets the umask for files only; not for directories.
supported filesystems: Most filesystems that don’t support Unix-style permissions; such as vfat ; hpfs ; ntfs ; and hfs

617
Q

SWITCHES

mount -o conv=code

A

If code is b or binary ; Linux doesn’t modify the files’ contents. If code is t or text ; Linux auto-converts files between Linux-style and Windows- or Macintosh-style end-of-line characters. If code is a or auto ; Linux applies the conversion unless the file is a known binary file format. It’s usually best to leave this at its default value of binary because file conversions can cause serious problems for some applications and file types.
supported filesystems: Most filesystems used on Microsoft and Apple OSs: msdos ; umsdos ; vfat ; hpfs ; and hfs

618
Q

SWITCHES

mount -o norock

A

Disables Rock Ridge extensions for ISO-9660 CD-ROMs.

supported filesystems: iso9660

619
Q

SWITCHES

mount -o nojoliet

A

Disables Joliet extensions for ISO-9660 CD-ROMs.

supported filesystems: iso9660

620
Q

SWITCHES

umount -a

A

attempt to unmount all of the partitions listed in /etc/mtab

621
Q

SWITCHES

umount -f

A

force an unmount operation that might otherwise fail. This feature is sometimes helpful when unmounting NFS mounts shared by servers that have become unreachable

622
Q

SWITCHES

umount -r

A

if it can’t unmount a filesystem; it should attempt to remount it in read-only mode

623
Q

SWITCHES

umount -t STRING

A

unmount only partitions of the specified type. You can list multiple filesystem types by separating them with commas.

624
Q

SWITCHES

ls -F

A
append indicator (one of */=>@|) to entries
--classify
/ Directory
* Executable
| Named pipe
= Socket
@ Symbolic Link
625
Q

SWITCHES

ls -a

A

show hidden files (dot)

–all

626
Q

SWITCHES

ls -l

A

long listing

627
Q

SWITCHES

ls –color

A

colored listing

628
Q

SWITCHES

ls -d

A

only list the directory’s name; useful for globbing for directories
–directory

629
Q

SWITCHES

ls -R

A

display directory contents recursively.

–recursive

630
Q

SWITCHES

cp -f

A

overwrite any existing files without prompting

–force

631
Q

SWITCHES

cp -i

A

prompt before overwriting

–interactive

632
Q

SWITCHES

cp -p

A

preserves ownership and permissions; if possible

–preserve

633
Q

SWITCHES

cp -R

A

copy recursively
–recursive
Although -r also performs a recursive copy; its behavior with files other than ordinary files and directories is unspecified. Most cp implementations use -r as a synonym for -R ; but this behavior isn’t guaranteed

634
Q

SWITCHES

cp -a

A

similar to -R ; but it also preserves ownership and copies links as is. The -R option copies the files to which symbolic links point rather than the symbolic links themselves.
–archive

635
Q

SWITCHES

cp -u

A

copy the file only if the original is newer than the target or if the target doesn’t exist
–update

636
Q

SWITCHES

touch -a

A

change the access time alone; not the modification time

–time=atime

637
Q

SWITCHES

touch -m

A

change the modification time alone; not the access time

–time=mtime

638
Q

SWITCHES

touch -c

A

don’t create the file if it doesn’t exist

–no-create

639
Q

SWITCHES

touch -t STRING

A

ets the time to the value specified by STRING

MMDDhhmm[[CC]YY][.ss]

640
Q

SWITCHES

tar C

A

Changes to directory dir before performing operations

  • -directory
    eg. tar -xvzf bigfile.tar.gz -C /folder/subfolder/
641
Q

SWITCHES

tar f

A

Uses the file called file on the computer called host as the archive file
–file [host:]file

642
Q

SWITCHES

tar g STRING

A

Performs an incremental backup or restore; using file as a list of previously archived files
–listed- incremental file

643
Q

SWITCHES

tar M

A

Creates or extracts a multi-volume archive

–multi- volume

644
Q

SWITCHES

tar p

A

Preserves all protection information

–preserve- permissions

645
Q

SWITCHES

tar P

A

Retains the leading / on filenames

–absolute- paths

646
Q

SWITCHES

tar v

A

Lists all files read or extracted; when used with –list ; displays file sizes; ownership; and time stamps
–verbose

647
Q

SWITCHES

tar W

A

Verifies the archive after writing it

–verify

648
Q

SWITCHES

tar z

A

Compresses an archive with gzip

–gzip or – ungzip

649
Q

SWITCHES

tar j

A

Compresses an archive with bzip2
–bzip2
some older versions used I or y

650
Q

SWITCHES

tar J

A

Compresses an archive with xz

–xz

651
Q

SWITCHES

tar c

A

Creates an archive

–create

652
Q

SWITCHES

tar A

A

Appends tar files to an archive

–concatenate

653
Q

SWITCHES

tar r

A

Appends non- tar files to an archive

–append

654
Q

SWITCHES

tar u

A

Appends files that are newer than those in an archive

–update

655
Q

SWITCHES

tar d

A

Compares an archive to files on disk

–diff or –compare

656
Q

SWITCHES

tar t

A

Lists an archive’s contents

–list

657
Q

SWITCHES

tar x

A

Extracts files from an archive

–extract or –get

658
Q

SWITCHES

cpio -o

A

creates an archive and copies files into it

–create

659
Q

SWITCHES

cpio -i

A

extracts data from an existing archive.

–extract

660
Q

SWITCHES

cpio -p

A

combines the copy-out and copy-in modes; enabling you to copy a directory tree from one location to another.
–pass-through

661
Q

SWITCHES

cpio -a

A

Resets the access time after reading a file so that it doesn’t appear to have been read.
–reset- access-time

662
Q

SWITCHES

cpio -A

A

Appends data to an existing archive.

–append

663
Q

SWITCHES

cpio -E STRING

A

Uses the contents of filename as a list of files to be extracted in copy-in mode.
–pattern-file=filename

664
Q

SWITCHES

cpio -F STRING

A

Uses filename as the cpio archive file; if this parameter is omitted; cpio uses standard input or output.
–file=filename

665
Q

SWITCHES

cpio -H STRING

A

Uses a specified format for the archive file. Common values for format include bin (the default; an old binary format); crc (a newer binary format with a checksum); and tar (the format used by tar ).
–format=format

666
Q

SWITCHES

cpio -I STRING

A

Uses the filename specified by STRING instead of standard input. (Unlike -F ; this option does not redirect output data.)

667
Q

SWITCHES

cpio –no-absolute-filenames

A

In copy-in mode; extracts files relative to the current directory; even if filenames in the archive contain full directory paths.

668
Q

SWITCHES

cpio -o STRING

A

Uses the filename specified by STRING instead of standard output. (Unlike -F ; this option does not redirect input data.)

669
Q

SWITCHES

cpio -t

A

Displays a table of contents for the input

–list

670
Q

SWITCHES

cpio -u

A

Replaces all files without first asking for verification.

–unconditional

671
Q

SWITCHES

cpio -v

A

Displays filenames as they’re added to or extracted from the archive. When used with -t ; displays additional listing information (similar to ls -l ).
–verbose

672
Q

SWITCHES

dd if=STRING

A

use STRING as the input file

dd if=/dev/sda3 of=/dev/dvd

673
Q

SWITCHES

dd of=STRING

A

use STRING as the output file

dd if=/dev/sda3 of=/dev/dvd

674
Q

SWITCHES

dd bs=NUMBER

A

read the filesystem using a block size of NUMBER

1024 seems good

675
Q

SWITCHES

dd count=NUMBER

A

read count*bs bytes from the input file

676
Q

SWITCHES

ln -f

A

overwrite any existing files without prompting

–force

677
Q

SWITCHES

ln -i

A

prompt before overwriting

–interactive

678
Q

SWITCHES

ln -d

A

attempt to make a hard link to a directory
or -F or –directory
usually fails

679
Q

SWITCHES

ln -s

A

make a symbolic link

–symbolic

680
Q

SWITCHES

mkdir -m STRING

A

causes the new directory to have the specified permission mode; expressed as an octal number.
–mode=mode

681
Q

SWITCHES

mkdir -p

A

create parent directories as needed

–parents

682
Q

SWITCHES

rmdir –ignore-fail-on-non-empty

A

don’t display an error message if the directory isn’t empty

683
Q

SWITCHES

rmdir -p

A

delete parent directories recursively

  • -parents
    eg. rmdir -p one/two/three
684
Q

SWITCHES

chown -R

A

–recursive

685
Q

SWITCHES

chmod u

A

set permissions for the owner

686
Q

SWITCHES

chmod g

A

set permissions for the group

687
Q

SWITCHES

chmod o

A

set permissions for all others (world)

688
Q

SWITCHES

chmod a

A

set permissions for ugo

689
Q

SWITCHES

chmod +

A

add permissions

690
Q

SWITCHES

chmod -

A

remove permissions

691
Q

SWITCHES

chmod =

A

set permissions equal to

692
Q

SWITCHES

chmod r

A

read permission

693
Q

SWITCHES

chmod w

A

write permission

694
Q

SWITCHES

chmod x

A

execute permission

695
Q

SWITCHES

chmod X

A

execute permission only if it’s already set

696
Q

SWITCHES

chmod s

A

SUID or SGID

697
Q

SWITCHES

chmod t

A

sticky bit

698
Q

SWITCHES

chmod u

A

existing owner’s permissions

699
Q

SWITCHES

chmod o

A

existing other permissions

700
Q

SWITCHES

umask -S

A

display permissions that will not be removed from files/folder symbolically
e.g. u=rwx;g=rx;o=rx

701
Q

SWITCHES

newgrp -l

A

reinitializes the environment as if the user had just logged in

702
Q

SWITCHES

chattr [+-]A

A

Linux won’t update the access time stamp when you access a file. This can reduce disk input/output; which is particularly helpful for saving battery life on laptops.

703
Q

SWITCHES

chattr [+-]a

A

disables write access to the file except for appending data.

704
Q

SWITCHES

chattr [+-]c

A

causes the kernel to compress data written to the file automatically and uncompress it when it’s read back.

705
Q

SWITCHES

chattr [+-]i

A

cannot be modified: it cannot be deleted or renamed; no link can be created to this file and no data can be written to the file.

706
Q

SWITCHES

chattr [+-]j

A

tells the kernel to journal all data written to the file. This improves recoverability of data written to the file after a system crash but can slow performance. This flag has no effect on ext2 filesystems.

707
Q

SWITCHES

chattr [+-]s

A

when the file is deleted; the kernel zeros its data blocks

708
Q

SWITCHES

chattr [+-]t

A

disables this behavior: small data pieces at a file’s end that don’t fill a complete block are merged with similar pieces of data from other files

709
Q

SWITCHES

quotacheck -c

A

create aquota.user and aquota.group files

710
Q

SWITCHES

quotacheck -u

A

check user quotas

711
Q

SWITCHES

quotacheck -g

A

check group quotas

712
Q

SWITCHES

edquota -t

A

sets the soft limit grace period
0 disables it
grace periods are per filesystem, not per user

713
Q

SWITCHES

edquota -g STRING

A

edit the quota for the group STRING

714
Q

SWITCHES

quota -g

A

display group quotas

715
Q

SWITCHES

quota -l

A

omits NFS mounts

716
Q

SWITCHES

quota -q

A

limits output to filesystems on which usage is over the limit

717
Q

SWITCHES

find -perm NUMBER

A

find files that have the specified permissions
also symbolically
e.g. -perm g=w

718
Q

SWITCHES

find -perm +NUMBER

A

find files that have any of the specified permission bits set

719
Q

SWITCHES

find -size NUMBER

A
locate files that use NUMBER units of space; rounding up
NUMBER is specified in 512k blocks
trail with c for bytes
trail with k for kibibytes
trail with M for Mebibytes
720
Q

SWITCHES

find -size +NUMBER

A

locate files larger than NUMBER units of space; rounding up

721
Q

SWITCHES

find -size -NUMBER

A

locate files less than NUMBER units of space; rounding up

722
Q

SWITCHES

find -gid NUMBER

A

locates files whose gid matches GID

723
Q

SWITCHES

find -group STRING

A

locate files whose group matches STRING

724
Q

SWITCHES

find -uid NUMBER

A

locates files whose uid matches UID

725
Q

SWITCHES

find -user STRING

A

locate files whose owner matches STRING

726
Q

SWITCHES

find -maxdepth NUMBER

A

only recuse NUMBER directories

727
Q

SWITCHES

which -a

A

show all matches

728
Q

SWITCHES

type -t

A

shortens the output to builtin ; file ; alias ; or other short identifiers.

729
Q

SWITCHES

type -a

A

provides a complete list; for instance; it provides both the alias expansion and the location of the ultimate executable when provided with an alias name.

730
Q

SWITCHES

chkconfig –list

A

list the services and their applicable runlevels

731
Q

SWITCHES

chkconfig –level NUMBER STRING1 STRING2

A

set the STRING1 program to on or off (STRING2) on the runlevels specified in NUMBER with no delimiters
chkconfig –level 23 nfs-common on

732
Q

SWITCHES

chkconfig –add STRING

A

adds the STRING script to those managed by chkconfig
This approach may not work if the script lacks the necessary comment lines with runlevel sequence numbers for chkconfig ‘s benefit

733
Q

SWITCHES

shutdown now

A

shutdown now

734
Q

SWITCHES

shutdown -c

A

cancel a pending shutdown

735
Q

SWITCHES

shutdown -r

A

reboot

736
Q

SWITCHES

shutdown -H

A

halt

737
Q

SWITCHES

shutdown -P

A

power off

738
Q

SWITCHES

shutdown -h

A

usually powers off; may halt

739
Q

SWITCHES

systemctl list-units

A

Displays the current status of all configured units.

740
Q

SWITCHES

systemctl default

A

Changes to the default target uni

741
Q

SWITCHES

systemctl isolate

A

Starts the named unit and stops all others.
systemctl isolate rescue.target
go into single user mode

742
Q

SWITCHES

systemctl start STRING

A

Starts the named unit.

743
Q

SWITCHES

systemctl stop STRING

A

Stops the named unit.

744
Q

SWITCHES

systemctl reload STRING

A

Causes the named unit to reload its configuration file.

745
Q

SWITCHES

systemctl restart STRING

A

Causes the named unit to shut down and restart.

746
Q

SWITCHES

systemctl status STRING

A

Displays the status of the named unit. (You can pass a PID value; rather than a name; if you like.)

747
Q

SWITCHES

systemctl enable STRING

A

Configures the unit to start when the computer next boots.

748
Q

SWITCHES

systemctl disable STRING

A

Configures the unit not to start when the computer next boots.

749
Q

SWITCHES

vi commands while running o

A

opens a new line immediately below the current line; moves the cursor to that line; and enters insert mode

750
Q

SWITCHES

vi commands while running #yy

A

copy # lines

751
Q

SWITCHES

vi commands while running #dd

A

cut # lines

752
Q

SWITCHES

vi commands while running yw

A

copy from cursor to end of word

753
Q

SWITCHES

vi commands while running dw

A

cut from cursor to end of word

754
Q

SWITCHES

vi commands while running p

A

paste

755
Q

SWITCHES

vi commands while running R

A

enter text replacement mode

756
Q

SWITCHES

vi commands while running a

A

enter insert mode and advance the cursor 1 space

757
Q

SWITCHES

vi commands while running ZZ

A

:wq

758
Q

SWITCHES

vi commands while running ~

A

change case under cursor and advance 1

759
Q

SWITCHES

vi commands while running u

A

undo

760
Q

SWITCHES

vi commands while running o

A

inserts a new line immediately below the current one and enters insert mode on that line

761
Q

SWITCHES

vi commands while running /

A

search forward for text

762
Q

SWITCHES

vi commands while running ?

A

search backward for text

763
Q

SWITCHES

vi commands while running cw

A

clear from cursor to the end of the word and enter insert mode

764
Q

SWITCHES

vi commands while running cc

A

clear line and enter insert mode

765
Q

SWITCHES

vi commands while running #G

A

go to line #

766
Q

SWITCHES

vi commands while running H

A

move cursor to top of screen

767
Q

SWITCHES

vi commands while running L

A

move cursor to bottom of screen

768
Q

SWITCHES

vi commands while running :%s/STRING1/STRING2/g

A

replace STRING1 with STRING2 globally
remove g to do the first occurance on each line
to do only lines 3 through 5; replace % with 3,5

769
Q

SWITCHES

vi commands while running :e STRING

A

load file STRING for editing

closes the currently open file

770
Q

SWITCHES

vi commands while running :r STRING

A

load file STRING on the line after the cursor

771
Q

SWITCHES

vi commands while running :!STRING

A

run external command STRING

:!ls runs ls ; enabling you to see what files are present in the current directory

772
Q

LOCATIONS

the bash history

A

~/.bash_history

773
Q

LOCATIONS

rpm main configuration file

A

/usr/lib/rpm/rpmrc

typically you don’t edit this file

774
Q

LOCATIONS

rpm global configuration file for editing

A

/etc/rpmrc
create it if it doesn’t exist
The main reason to create such a file is to implement architecture optimizations—for instance; to optimize your code for your CPU model by passing appropriate compiler options when you build a source RPM into a binary RPM. This is done with the optflags line:
optflags: athlon -O2 -g -march=i686

775
Q

LOCATIONS

rpm per user configuration file for editing

A

∼ /.rpmrc
create it if it doesn’t exist
The main reason to create such a file is to implement architecture optimizations—for instance; to optimize your code for your CPU model by passing appropriate compiler options when you build a source RPM into a binary RPM. This is done with the optflags line:
optflags: athlon -O2 -g -march=i686

776
Q

LOCATIONS

yum configuration file

A

/etc/yum.conf
holds basic options; such as the directory to which Yum downloads RPMs and where Yum logs its activities. Chances are that you won’t need to modify this file

777
Q

LOCATIONS

yum additional configuration files

A

/etc/yum.repos.d/
You probably shouldn’t directly edit these files; instead; if you want to add a repository; you should manually download the RPM that includes the repository configuration and install it using rpm . The next time you use Yum; it will access your new repository along with the old ones

778
Q

LOCATIONS

apt repository configuration

A

/etc/apt/sources.list

okay to modify

779
Q

LOCATIONS

The main configuration file for dpkg

A

/etc/dpkg/dpkg.cfg or ∼/.dpkg.cfg

780
Q

LOCATIONS

controls apt and dselect options

A

/etc/apt/apt.conf

BIND formatting

781
Q

LOCATIONS

the debian installed file database

A

/var/lib/dpkg

782
Q

LOCATIONS

library path

A

/etc/ld.so.conf

Generally speaking; there’s seldom a need to change the library path system wide

783
Q

LOCATIONS

trusted library directories

A

/lib and /usr/lib

These directories are always on the library path; even if they aren’t listed in ld.so.conf .

784
Q

LOCATIONS

shared library cache

A

/etc/ld.so.cache

785
Q

LOCATIONS

interrupts

A

/proc/interrupts
virtual filesystem
only shows an entry after a driver that uses the interrupt is loaded

786
Q

LOCATIONS

Windows name COM1, IRQ 4

A

/dev/ttyS0

787
Q

LOCATIONS

Windows name COM2; IRQ 3

A

/dev/ttyS1

788
Q

LOCATIONS

Windows name COM3; IRQ 4

A

/dev/ttyS2

789
Q

LOCATIONS

Windows name COM4; IRQ 3

A

/dev/ttyS3

790
Q

LOCATIONS

Windows name LPT1; IRQ 7

A

/dev/lp0

791
Q

LOCATIONS

Windows name LPT2; IRQ 5

A

/dev/lp1

792
Q

LOCATIONS

Windows name A:; IRQ 6

A

/dev/fd0

793
Q

LOCATIONS

Windows name B:; IRQ 6

A

/dev/fd1

794
Q

LOCATIONS

what I/O addresses the computer is using

A

/proc/ioports

795
Q

LOCATIONS

what DMA channels your system uses

A

/proc/dma

796
Q

LOCATIONS

sysfs virtual filesystem, contains information about devices so that user-space utilities can access the information

A

/sys

797
Q

LOCATIONS

a place where dynamic device files as drivers are loaded and unloaded; necessitated by hotplug devices

A

/dev

798
Q
LOCATIONS
kernel module files; kernel drivers for hardware
A

/lib/modules

799
Q

LOCATIONS

currently loaded kernel modules

A

/proc/modules

800
Q

LOCATIONS

modprobe configuration

A

/etc/modprobe.conf
or
/etc/modprobe.d/

801
Q

LOCATIONS

connected usb devices

A

/proc/bus/usb

802
Q

LOCATIONS

where logical volumes for LVM are mapped to names

A

/dev/mapper

803
Q

LOCATIONS

Serves as an adjunct to system RAM. It is slow but enables the computer to run more or larger programs.

A

swap partition (mounted with swapon to /swap)

804
Q

LOCATIONS
Holds users’ data files. Isolating it on a separate partition preserves user data during a system upgrade. Size depends on the number of users and their data storage needs.

A

/home partition

805
Q

LOCATIONS
Holds critical boot files. Creating it as a separate partition lets you circumvent limitations of older BIOSs and boot loaders; which often can’t boot a kernel from a point above a value between 504MiB and 2TiB.

A

/boot partition

806
Q

LOCATIONS
Holds most Linux program and data files; this is sometimes the largest partition; although /home is larger on systems with many users or if users store large data files. Changes implemented in 2012 are making it harder to create a separate /usr partition in many distributions

A

/usr partition

807
Q

LOCATIONS

Holds Linux program and data files that are unique to this installation; particularly those that you compile yourself

A

/usr/local partition

808
Q

LOCATIONS

Holds Linux program and data files that are associated with third- party packages; especially commercial ones

A

/opt partition

809
Q

LOCATIONS
Holds miscellaneous files associated with the day-to-day functioning of a computer. These files are often transient in nature. Most often split off as a separate partition when the system functions as a server that uses the /var directory for server-related files like mail queues.

A

/var partition

810
Q

LOCATIONS

Holds temporary files created by ordinary users.

A

/tmp partition

811
Q

LOCATIONS
Not a separate partition; rather; it or its subdirectories are used as mount points for removable media like CDs and DVDs.

A

/mnt partition

812
Q

LOCATIONS

Holds subdirectories that may be used as mount points for removable media; much like /mnt or its subdirectories.

A

/media partition

813
Q

LOCATIONS

the partitions that are mounted on boot and their mount points

A

/etc/fstab

814
Q

LOCATIONS

a list of filesystems linux has mounted; don’t edit it

A

/etc/mtab

815
Q

LOCATIONS

root directory

A

/

816
Q

LOCATIONS
contains static and unshareable files related to the computer’s initial booting. Higher-level startup and configuration files reside in another directory; /etc . In this directory; you will find GRUB or LILO configuration files along with the other files necessary for the initial boot. typically; it is recommended that you store /boot on its own partition.

A

/boot

817
Q

LOCATIONS
contains unshareable and static system configuration files. These higher-level startup and configuration files control the various programs and services offered on a system
If the Linux distribution uses SysV system initialization; its configuration files are stored here

A

/etc

818
Q

LOCATIONS
contains certain critical executable files; such as ls ; cp ; and mount . These commands are accessible to all users and constitute the most important commands that ordinary users might issue
static files; almost never shared

A

/bin

819
Q

LOCATIONS
similar to /bin ; but it contains programs that are normally run only by the system administrator—tools like fdisk and e2fsck . It’s static and theoretically shareable; but in practice it makes no sense to share it

A

/sbin

820
Q

LOCATIONS
similar to /bin and /sbin ; but it contains program libraries. Program libraries consist of code that’s shared across many programs and stored in separate files to save disk space and RAM.
is static and theoretically shareable; although it’s not shared in practice

A

/lib

821
Q

LOCATIONS
hosts the bulk of a Linux computer’s programs. Its contents are shareable and static; so it can be mounted read-only and may be shared with other Linux systems. For these reasons; many administrators split /usr off into a separate partition; although doing so isn’t required

A

/usr

822
Q

LOCATIONS
mirror the organization of /usr
osts files that a system administrator installs locally—for instance; packages that are compiled on the target computer. The idea is to have an area that’s safe from automatic software upgrades when the OS as a whole is upgraded.
Some system administrators split this off into its own partition to protect it from OS reinstallation procedures that might erase the parent partition.

A

/usr/local

823
Q

LOCATIONS

stores the manual pages used by the man command

A

/usr/share/man

824
Q

LOCATIONS
houses files related to the X Window System (X for short); Linux’s GUI environment.
often moved to /usr/bin

A

/usr/X11R6

825
Q

LOCATIONS
intended for ready-made packages that don’t ship with the OS; such as commercial word processors or games.
static and shareable
Some system administrators break it into a separate partition

A

/opt

826
Q

LOCATIONS

contains users’ data; and it’s shareable and variable

A

/home

827
Q

LOCATIONS
home directory of the root user
variable; not shareable

A

/root

828
Q

LOCATIONS
contains transient files of various types—system log files; print spool files; mail and news files; and so on
variable; some subfolders are shareable and some are not
Many system administrators put /var in its own partition; particularly on systems that see a lot of activity in /var ; like major Usenet news or mail servers.

A

/var

829
Q

LOCATIONS
temporary files
variable; seldom shared

A

/tmp

830
Q

LOCATIONS

removable-media devices

A

/mnt

831
Q

LOCATIONS

like /mnt ; but it should contain subdirectories for specific media types

A

/media

832
Q

LOCATIONS

files that represent devices

A

/dev

833
Q

LOCATIONS
virtual filesystem that’s created dynamically by Linux to provide access to certain types of hardware information that aren’t accessible via /dev

A

/proc

834
Q

LOCATIONS

the configuration file for updatedb used by locate

A

/etc/updatedb.conf

835
Q

LOCATIONS

EFI System Partition (ESP)

A

/boot/efi

836
Q

LOCATIONS

grub legacy configuration file

A

/boot/grub/menu.lst

/boot/grub/grub.conf

837
Q

LOCATIONS

grub 2 configuration file

A

/boot/grub/grub.cfg

do not edit

838
Q

LOCATIONS

grub 2 OS probers

A

etc/grub.d/

839
Q

LOCATIONS

grub 2 menu configuration

A

/etc/default/grub

840
Q

LOCATIONS

syslogd output

A

/var/log/messages

841
Q

LOCATIONS

i think this is also syslogd output

A

/var/log/syslog

842
Q

LOCATIONS

the first program run by the kernel

A

/sbin/init

843
Q

LOCATIONS
the programs the init script is supposed to run when changing runlevels
also specifies the default runlevel

A

/etc/inittab

id: runlevels:action:process
e. g.
l0: 0:wait:/etc/init.d/rc 0
l1: 1:wait:/etc/init.d/rc 1

844
Q

LOCATIONS

the program that runs all of the scripts associated with the desired runlevel

A

/etc/init.d/rc

or /etc/rc.d/rc

845
Q

LOCATIONS

scripts that are run by rc when the runlevel changes

A

/etc/rc.d/rc?.d
or /etc/init.d/rc?.d or /etc/rc?.d
S* scripts are started
K* scripts are stopped

846
Q

LOCATIONS

configuration files for systemd

A

/lib/systemd/system

847
Q

LOCATIONS

Upstart and it’s scripts

A

/etc/init/