System Directories Flashcards

(8 cards)

1
Q

Filesystem Hierarchy Standard (FHS)

A

■ Defines how files and directories are organized in Linux

■ Provides standard directory names and use cases

■ Ensures consistency across FHS-compliant Linux distributions

■ Structures the filesystem like a tree, beginning with the root directory

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

/boot

A

■ Stores files needed to start the operating system

              ■ Includes
		● /boot/initrd.img
		● /boot/vmlinuz
		● /boot/grub/grub.cfg
	
          ■ Initializes hardware and loads the operating system
	
         ■ Improper changes can prevent system from booting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

/bin

A

■ Contains executable programs required for basic system functionality
■ Used by all users
■ Examples
● /bin/ls
● /bin/cp
● /bin/mv
● /bin/cat

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

/sbin

A

■ Contains administrative commands used by the root user
■ Supports system-level modifications and tasks
■ Examples
● /sbin/fsck
● /sbin/reboot
● /sbin/iptables
● /sbin/mount

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

/lib – Shared Libraries and Kernel Modules

A

■ Contains essential shared libraries for programs in /bin and /sbin
■ Examples
● /lib/libc.so.6
● /lib/ld-linux.so.2

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

/dev

A

■ Contains special files representing hardware devices
■ Allows programs to interact with hardware as files
■ Examples
● /dev/sda
● /dev/tty1
● /dev/null
● /dev/random

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

/proc – Process and System Information

A

■ Virtual filesystem providing real-time system and process information
■ Dynamically generated files
■ Examples
● /proc/cpuinfo
● /proc/meminfo
● /proc/uptime
● /proc/[PID]/

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

/etc

A

■ Stores system-wide configuration files

■ Used to control system behavior and application settings

■ Examples
	● /etc/passwd
	● /etc/shadow
	● /etc/hosts
	● /etc/fstab
	● /etc/ssh/sshd_config
How well did you know this?
1
Not at all
2
3
4
5
Perfectly