MODULE 13- Where data is stored Flashcards
What provides a guideline for distributions on how to organize files?
The filesystem Hierarchy is a guidelines for distros on how to organize files.
Where does the kernel provide access to information about active processes in Linux?
The kernel provides access to information about active processes in Linux through the /proc directory.
Which filesystem type appears to be real files but only exist in memory with no actual data stored on the disk?
A pseudo filesystem appears to be real files but only exist in memory.
Which directory contains special files providing access to hardware devices?
The /dev directory contains special files providing access to hardware devices.
What are two pseudo filesystem examples?
The /sys and /proc are two examples of the pseudo filesystems.
What is the difference between /sys and /dev?
/sys stores information about hardware devices and /dev stores special files for hardware access (to communicate).
Which directory store real time information about running processes, system hardware and kernel configuration?
The /proc directory stores real time information about running processes, system hardware and kernel information.
Which command is used to view active processes utilizing information from the /proc directory?
The ‘top’ command is used to view active processes utilizing resources from the /proc directory.
Which directory shows information passed to the kernel at boot time?
The /proc/cmdline directory shows information passed to the kernel at boot time.
Which directory shows the modules currently loaded?
the /proc/modules directory shows the modules currently loaded.
Which directory shows memory usage by the kernel ?
/proc/meminfo directory shows memoery usage by a kernel.
Modifying which files under which directory can change the behavior of the Linux kernel?
Modifying the files under /proc/sys files can change the behavior of the Linux kernel.
What is the purpose of the admin making changes to /proc/sys and adding the configuration to/etc/sysctl.conf.
The admin can make changes made to /proc/sys persist after reboot by adding the configuration to/etc/sysctl.conf
Which process starts other system processes after the kernel finishes loading?
The init process starts other system processes after the kernel finishes loading.
What is the PID of the first process started by the kernel during the boot procedure?
The first process started by the kernel during the boot procedure is assigned a PID of 1, known as the init process.
Where can you find information about the init process on a Linux system?
Information about the init process can be found in the /proc/1 directory.
What do we call a process started by another process ?
A child process is a process started by another process (the parent process).
What does PPID represent in the Linux process hierarchy?
PPID represents the Parent Process ID, which is the PID of the process that started another process.
What can you do with the /proc/sys/kernel/pid_max file ?
The maximum PID value can be viewed through the /proc/sys/kernel/pid_max file.
What command is used to view the process family tree in Linux?
The command pstree is used to display the process family tree.
Which command is used to view processes and their parent-child relationship?
The ‘ps –forest’ command is used to view processes and their parent-child relationship.
Which command can be used to view processes?
The ‘ps’ command can be used to view processes.
Which two commands allow viewing all processes on a system?
The ‘ps aux’ and ‘ps -ef’ commands allow viewing all processes on a system
What key in the top command is used to terminate a runaway process?
The ‘K’ -key in the top command is used to terminate a process.