Server Admin Chapter 5

0.0(0)
studied byStudied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/56

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 1:09 PM on 10/17/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

57 Terms

1
New cards

/dev directory

Contains one file per device for almost all devices on a Linux machine

2
New cards

Character devices

Transfer data character-by-character to and from the device

3
New cards

Block devices

Transfer chunks or blocks of data using physical memory to buffer the transfer (faster than character devices)

4
New cards

What does `ls -l` do when looking at a device?

Shows b or c for block/character file.

Shows major and minor number (Ex: 8, 1) for the device

5
New cards

mknod command

Recreates a corrupt device file if major/minor numbers are known

6
New cards

/proc/devices file

Contains list of devices currently used on the system and their major/minor numbers

7
New cards

Common components of all filesystems

Superblock, Inode table, Data blocks

8
New cards

Linux filesystem types

Btrfs, exFAT, ext2, ext3, ext4, zfs

9
New cards

mount command

Used to mount devices to mount point directories (Makes the device's contents visible)

10
New cards

umount command

Used to unmount devices from mount point directories

11
New cards

lsusb command

Displays removable devices connected to your PC

12
New cards

lsblk command

Used to help verify the device file used to represent the partition on your USB drive

13
New cards

mkfs command

Used to make a filesystem on a USB flash drive

14
New cards

df -hT command

(Disk free space) Displays a list of currently mounted filesystems

15
New cards

fuser command (fuser -u )

Displays the users using a particular directory

16
New cards

eject command

Unmounts the filesystem and force the CD or DVD to physically eject a disc

17
New cards

mkisofs

Create a new ISO image from a directory of files

18
New cards

SATA and SCSI drive letter format

First: /dev/sda

Second: /dev/sdb

...

19
New cards

How many partitions does Linux require at minimum?

Two

One mounted to the / directory (root partition)

One mounted to the /boot directory

20
New cards

Tracks

Concentric circles

21
New cards

Sectors

Divide each track into smaller units

22
New cards

Blocks of data

Combination of sectors

23
New cards

Cylinder

Series consisting of the same concentric track on all the metal platters inside a HDD (think vertical)

24
New cards

Partition definitions

Stored in the first readable sector of the hard disk known as the Master Boot Record (MBR) or GUID Partition Table (GPT)

25
New cards

Partition device files lettering format

First primary partition: /dev/sda1

Second primary partition: /dev/sda2

...

26
New cards

Logical drives are named starting with number...

5

27
New cards

How many partitions can be created?

Up to 128

28
New cards

fdisk /dev/sda command

Creates sda partition after installation (partitions a fixed disk)

29
New cards

mkswap /dev/sda4 command

Prepares the swap partition

30
New cards

swapon /dev/sda4 command

Activates the swap partition

31
New cards

cfdisk command

A GUI to create, manipulate, and delete partitions

Note: always reboot after using fdisk and cfdisk.

32
New cards

gdisk command

(GPT fdisk) Creates and works with partitions on a GPT hard disk

33
New cards

parted command

(GNU parted) Creates and modifies partitions on both MBR and GPT HDs

34
New cards

Logical Volume Manager (LVM)

Creates logical volumes that can be mounted to directories within the Linux filesystem hierarchy

Alternative to creating and mounting filesystems that reside on standard partitions

35
New cards

What does the LVM consist of?

Physical volumes, volume groups, and logical volumes

36
New cards

Physical Volumes (PVs)

Unused partitions on hard disk drives that the LVM can use to store information

37
New cards

Volume Groups (VGs)

Contains one or more PVs.

Represents the pools of storage space that are available to the LVm for creating logical volumes.

38
New cards

Logical Volumes (LVs)

Usable volumes that are created by the LVM from the available storage space within a LG

39
New cards

pvcreate /dev/sda4 command

Creates PVs of unused partition you want the LVM to use

40
New cards

pvdisplay command

Displays detailed info about each PV

41
New cards

vgcreate vg00 /dev/sda4 command

Creates a VG named vg00 that uses the dev/sda4 PV

42
New cards

Physical extent (PE)

Sets the block size of the VG

43
New cards

vgdisplay command

Displays detailed info about each VG

44
New cards

lvcreate command

Creates LVs from available space in a VG

45
New cards

lvdisplay command

Displays info about each LV

46
New cards

pvscan, vgscan, and lvscan commands

Display info about PVs, VGs, and LVs

47
New cards

vgextend command

Adds a new PV to an existing VG

48
New cards

lvextend command

Increases the size of an LV

49
New cards

df -h command

(Disk free) Monitors free space used by mounted filesystems (-h indicates human readable option)

50
New cards

du -h /usr | more command

View size of directory and its contents

-s to summarize output

-h for human readable

| more - use with large nums of files

-i to view the total num of inodes and free inodes

51
New cards

Bad Blocks

Unusable areas of a disk

52
New cards

fsck command

Checks the filesystem for errors

NOTE: THE FILESYSTEM MUST FIRST BE UNMOUNTED!

53
New cards

e2fsck command

Checks an ext2, ext3, and ext4 filesystem for errors

-c to check for bad blocks

54
New cards

tune2fs command

Used to adjust tunable filesystem parameters

55
New cards

Disk Quotas

Set user limits to prevent users from using unnecessary space

56
New cards

Soft limits

Disk quotas that the user may briefly exceed for a certain period of time

57
New cards

Hard limits

Explore top flashcards