Centos 7 File System Stuff Flashcards

1
Q

df

A

Shows the amount of disk space used and available on Linux file systems.

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

du

A

Display the amount of disk space used by the specified files and for each subdirectory.

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

Which file system does centos 7 use?

A

XFS - high-performance 64-bit journaling file system

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

/bin

A

All the executable binary programs (file) required during booting, repairing, files required to run into single-user-mode, and other important, basic commands viz., cat, du, df, tar, rpm, wc, history, etc.

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

/boot

A

Holds important files during boot-up process, including Linux Kernel.

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

/dev

A

Contains device files for all the hardware devices on the machine e.g., cdrom, cpu, etc

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

/etc

A

Contains Application’s configuration files, startup, shutdown, start, stop script for every individual program.

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

/home

A

Home directory of the users. Every time a new user is created, a directory in the name of user is created within home directory which contains other directories like Desktop, Downloads, Documents, etc.

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

/lib

A

The Lib directory contains kernel modules and shared library images required to boot the system and run commands in root file system.

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

/lost+found

A

This Directory is installed during installation of Linux, useful for recovering files which may be broken due to unexpected shut-down.

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

/mount

A

Temporary mount directory is created for removable devices viz., media/cdrom.

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

/mnt

A

Temporary mount directory for mounting file system.

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

/opt

A

Optional is abbreviated as opt. Contains third party application software. Viz., Java, etc.

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

/proc

A

A virtual and pseudo file-system which contains information about running process with a particular Process-id aka pid.

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

/root

A

This is the home directory of root user and should never be confused with ‘/‘

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

/run

A

This directory is the only clean solution for early-runtime-dir problem.

17
Q

/sbin

A

Contains binary executable programs, required by System Administrator, for Maintenance. Viz., iptables, fdisk, ifconfig, swapon, reboot, etc.

18
Q

/srv

A

Service is abbreviated as ‘srv‘. This directory contains server specific and service related files.

19
Q

/sys

A

Modern Linux distributions include a /sys directory as a virtual filesystem, which stores and allows modification of the devices connected to the system.

20
Q

/tmp

A

System’s Temporary Directory, Accessible by users and root. Stores temporary files for user and system, till next boot.

21
Q

/usr

A

Contains executable binaries, documentation, source code, libraries for second level program.

22
Q

/var

A

Stands for variable. The contents of this file is expected to grow. This directory contains log, lock, spool, mail and temp files.