Mod 8 day 1-3 Flashcards
What is a Symbolic Link?
A symbolic link is a file containing the pathname to another file
What is a Hard Link?
A Hard Link is a pointer to a files Inode and is the same as the original file
What is a Directory Entry?
a Directory Entry is a simple data structure containing filename and Inode addresses where the files metadata can be found
What does the Touch command allow us to do?
the Touch command creates an empty file and can also alter Timestamps.
- m - modify
- a - access
- t - time
what does the Stat command allow us to do?
The stat command is used to view a file or file system status to include timestamps
What are the 3 timestamps EXT3 systems support?
- Modification-Time files data layer was last modified
- Acces- Time files data was last accessed
- Change- Time files inode (metadata layer) was last changed/created
What is an indirect pointer used for?
In your file system, if data takes up more than 12 blocks it uses a Single, Double, or Triple to alllow to go past 12 blocks of preallocated data
What is an Inode?
An Inode contains information proccesses need to access a file or metadata Contains: -file size -file ownership -file timestamp -file type -file access -number of links
What is a Data Block
A Block is a basic file allocation unit size for the EXT(x) file system and is used to store file contents
a Block is a group of consecutive sectors and can be 1024, 2048, or 4096 bytes in size.
What is a Group Descriptor Table?
A Group Descriptor Table contains:
- Starting block address of a Block Bitmap
- Starting block address of the Inode Bitmap
- Starting block address of the Inode table
- number of unallocated blocks in the group
- number of directories in the group
- unused bytes.
What is the file system that Linux uses?
Linux uses EXTx, a journaling filesystem. A journaling filesystem maintain a journal used to repair inconsistencies that may occur after an improper shutdown
What is a superblock?
A superblock is located 1024 bytes from the start of file system and is 1024 bytes in size & contains following information?
- total number of Inodes
- Total number of Blocks
- Block Size
- Number of Blocks per Group
- Number of Inodes per Block Group
- Number of reserved Blocks before the first Block Group
What is a Bitmap?
A Bitmap informs whatever is looking at it, if something is allocated or unallocated
What does the command fdisk do?
fdisk allows you to view the disks physical partitioning scheme?
What are common Virtual File Systems?
- Swapfs - used for Swapping
- Procfs - provides info for Processes
- Tmpfs - temporary file storage in memory instead of Hard disk
What are common network based file systems?
networked file systems
server message block
What are common Linux disk file systems?
EXT3, EXT4, or XFS disk file systems
What is a file system?
A File System defines the way files are stored, named, organized and accessed on a logical volume and give the OS a road map to access data on a type of file system.
What is a Kernel signal process-level interrupt?
A kernel signal is when a process commits an infraction such as division by zero
What is an Administrator Signal process-level Interrupt?
Administrator Interrupts use kill or pkill to get desired result
What is a Terminal Signal process - level interrupt?
CTRL + C & CTRL + D is to kill, interrupt or suspended processes
What is a process exception by trap?
A trap is software written to catch exceptions generated by the CPU. A trap is an error exception condition generated within the currently running process.
What is the process Exception by interrupt?
an Interrupt is a signal generated by Hardware when it wants the processors attention. An interrupt is caused by an external event & is considered asynchronous.
What are the 4 states of a process?
R- Running- Running or Runable
S- Sleeping- Waiting for resources or an event to occur
Z- Zombie- Dead Process whose process entry still exists
T- Stopped- suspended process
What is the command to check the current states of a shell process?
ps -Helf
How are processes created?
processes are created with fork(), whch creates exact copies of the original process, called a Child Process. The child may help the parent with the process. when a parent exits without waiting the child, it becomes a Zombie Process.