Linux & Shell Scripting (G4A20LSS) - Complete Unit-wise Notes
Unit 1: General Overview of the System
- System structure: Hardware, Kernel, System Calls, User Space.
- User perspective: Shell, commands, user directories.
- OS Services: File, Process, Memory management, Security.
- Kernel & Buffer Cache: Manages I/O and data caching.
- Kernel Data Structures: Process table, inode table, etc.
- System Administration: User mgmt, disk mgmt, logs.
- Buffer headers & pool: Metadata for disk blocks.
- Buffer retrieval & disk I/O: Strategies to optimize reads/writes.
Unit 2: Internal Representation of Files
- INODES: Metadata holder for files.
- Regular Files & Directories: Data + path resolution.
- Super Block: Filesystem metadata.
- System Calls: open, read, write, close, unlink.
- Mount/Unmount: Attach/detach filesystems.
- Links: Hard and soft links.
Unit 3: Structures of Processes and Process Control
- Process States: Running, waiting, zombie.
- Memory Layout: Text, Data, Heap, Stack.
- Process Context & Switching.
- Process Creation: fork(), exit().
- IPC: Pipes, Message Queues, Shared Memory.
- Multiprocessor Handling: Synchronization, semaphores.
Unit 4: Introduction to Shell Scripts
- Shell Types: bash, sh, csh.
- Unix Commands, Permissions.
- Filters: grep, sed, awk.
- Variables, Scripts, Metacharacters.
- Control Statements: if, case.
- Loops: for, while, until.
Unit 5: Awk and Perl Programming
- AWK: Pattern scanning, BEGIN/END, built-ins.
- Arrays, functions, string ops.
- PERL: chop(), $_, $. , regex, file handling.
- Subroutines and formatted output.
Unit 6: Linux
- History: Linus Torvalds, GPL, Open-source.
- Features: Secure, multitasking, portable.
- Architecture: Kernel, Shell, Utilities.
- Distributions: Ubuntu, Fedora, Kali, RHEL.