Linux Class - II
October 08, 2021
Presentation: Here
Reading Resources: Here
Class Recording: Here
Class coverage
- Revised previous class in 5 mins
- Discussed with examples how everything is a file in Linux. Showed examples using
/dev/
directory.
- Talked a little about wildcards. Read in-depth here.
- Showed what shell scripting is.
- Talked about PATH environment variable.
- Showed how to create a command in Linux by either placing the program file in a directory that is present in PATH or by changing PATH itself.
- Talked a little about
~/.bashrc
, ~/.zshrc
and ~/.profile
.
- Discussed the Linux booting process.
- Talked about BIOS, POST, CMOS, MBR, UEFI, GPT, GRUB, init, initrd, Runlevels.
- Also showed the examples of contents
/etc/rc*
directories.
- Talked about I/O Redirection and pipes.
- Discussed
sudo
and su
and the difference between them.
- Discussed
mount
and umount
using an example.
- Talked about
kill -9
and pkill
with examples.
- Talked briefly about file descriptors.
- Discussed a little about system call functions like
read()
, write()
, fork()
, exec()
.
Homework
- Revise the previous class and do leftover homework.
- Read about wildcards.
- Create your own shell script and command. Check out your
~/.bashrc
or ~/.zshrc
.
- Learn what is
~/.bash_history
or ~/.zsh_history
file in Linux.
- Read more about the system calls like
read()
, write()
, fork()
, exec()
, alarm()
, etc. You can use man page for this.
- Read more about the
kill
command and what all signals can be used with it. Use kill -L
in bash to learn this (or the internet).
- Participate in TuxWars XD.