The document outlines a lecture on Linux internals given by Dr. Vikram Neerugatti. It covers the history of Linux, popular distributions like Red Hat, Ubuntu and Debian. It also discusses licensing models and provides an overview of common Linux commands for managing directories, files and general utilities. The lecture aims to introduce students to key concepts in Linux including its development history, distributions, licensing and basic commands.
3. JAIN
–
DEEMED
TO
BE
UNIVERSITY
GLOBAL
CAMPUS:
45th
km
NH
-
209
Jakkasandra
Post,
Kanakapura
Rd,
Bengaluru,
Karnataka
562112
Department of CSE
✓ 1969 - Dennis Ritchie - and Ken Thompson developed
the C language and the Unix operating system at AT&T
Bell Labs.
✓ 1975 – Commercial UNIX & BSD UNIX.
✓ 1980 – Many companies has their own UNIX - Richard
Stallman – GNU (1984) – root of Linux
✓ 1990- Linus Torvalds, a Swedish speaking Finnish
student, buying a 386 computer and writing a brand new
POSIX compliant kernel. combination of this kernel
with the GNU tools.
✓ 2015 - Linux
History
2/9/2023 Linux Internals by Dr. Vikram Neerugatti 3
14. JAIN
–
DEEMED
TO
BE
UNIVERSITY
GLOBAL
CAMPUS:
45th
km
NH
-
209
Jakkasandra
Post,
Kanakapura
Rd,
Bengaluru,
Karnataka
562112
Department of CSE
✓ Whereis
✓ Whereis –m whois location of the manpage will be
revealed
✓ Man sections
✓ Section numbers will be in brackets ex. (1)
✓ Man $section $file
✓ man passwd opens the first manual found
✓ man 5 passwd opens a page from section 5
✓ Man man
✓ If you want to know more about man, then Read The
Fantastic Manual (RTFM)
✓ Mandb
✓ Mandb man page exists, but you can't access it
Linux commands – Man/Manual Pages
2/9/2023 Linux Internals by Dr. Vikram Neerugatti 14
15. JAIN
–
DEEMED
TO
BE
UNIVERSITY
GLOBAL
CAMPUS:
45th
km
NH
-
209
Jakkasandra
Post,
Kanakapura
Rd,
Bengaluru,
Karnataka
562112
Department of CSE
✓ Pwd
✓ Pwd print working directory
✓ Cd
✓ Cd touched change your current directory
✓ Absolute and relative paths
✓ Paths in the file tree
✓ Path starting with a slash (/), then the root of the file tree is
assumed
✓ If you don't start your path with a slash, then the current
directory is the assumed starting point.
✓ Cd home or cd /home
Linux commands – Working with directories
2/9/2023 Linux Internals by Dr. Vikram Neerugatti 15
19. JAIN
–
DEEMED
TO
BE
UNIVERSITY
GLOBAL
CAMPUS:
45th
km
NH
-
209
Jakkasandra
Post,
Kanakapura
Rd,
Bengaluru,
Karnataka
562112
Department of CSE
✓ Cal
✓ Cal Shows current month calendar on the terminal with the
current date highlighted.
✓ Cal –y Shows the calendar of the complete current year
with the current date highlighted
✓ Cal 08 2000
✓ Cal 2000
✓ Date
✓ Date displays date - pacific daylight time
✓ Date –u Greenwich Mean Time)/UTC(Coordinated
Universal Time )
✓ Date –date=“2 year ago”
✓ Date –date=“5 sec ago”
Linux commands – general purpose utilities
2/9/2023 Linux Internals by Dr. Vikram Neerugatti 19
20. JAIN
–
DEEMED
TO
BE
UNIVERSITY
GLOBAL
CAMPUS:
45th
km
NH
-
209
Jakkasandra
Post,
Kanakapura
Rd,
Bengaluru,
Karnataka
562112
Department of CSE
✓ Script
✓ script command in Linux is used to make typescript or
record all the terminal activities.
✓ After executing the script command it starts recording
everything printed on the screen including the inputs and
outputs until exit.
✓ By default, all the terminal information is saved in the file
typescript
✓ Script
✓ Who
✓ The who command is used to get information about currently
logged in user on to system.
✓ who
Linux commands – general purpose utilities
2/9/2023 Linux Internals by Dr. Vikram Neerugatti 20
21. JAIN
–
DEEMED
TO
BE
UNIVERSITY
GLOBAL
CAMPUS:
45th
km
NH
-
209
Jakkasandra
Post,
Kanakapura
Rd,
Bengaluru,
Karnataka
562112
Department of CSE
✓ Tty
✓ tty which displays information related to terminal
✓ tty is short of teletype, but popularly known as a terminal it
allows you to interact with the system by passing on the data
(you input) to the system, and displaying the output
produced by the system.
✓ Tty --version
✓ Pwd
✓ pwd stands for Print Working Directory. It prints the path of
the working directory, starting from the root
Linux commands – general purpose utilities
2/9/2023 Linux Internals by Dr. Vikram Neerugatti 21
22. JAIN
–
DEEMED
TO
BE
UNIVERSITY
GLOBAL
CAMPUS:
45th
km
NH
-
209
Jakkasandra
Post,
Kanakapura
Rd,
Bengaluru,
Karnataka
562112
Department of CSE
✓ Ps
✓ Linux provides us a utility called ps for viewing information
related with the processes on a system which stands as
abbreviation for “Process Status”.
✓ ps command is used to list the currently running processes
and their PIDs along with some other information depends
on different options.
✓ Ps
✓ Uname
✓ The command ‘uname‘ displays the information about the
system.
✓ Uname -a
Linux commands – general purpose utilities
2/9/2023 Linux Internals by Dr. Vikram Neerugatti 22