Professional Documents
Culture Documents
(Performance Criteria)
Week1:
1. Types of OS installation
2. Boot methods
3 . File System and formatting
4. Post installation tasks
1. Types of OS installation:
Attended installation: Here, someone is required to interact with the computer while executing
the installation process
Silent installation: This means once the installation starts, the user is not offered any options to
change or edit the installation process.
Unattended installation: The installation of a program without requiring the user to select options
or click next at the end of each step. It often use a file of predefined answers so that after starting
the installation, it runs to completion without further user intervention.
Headless installation: A headless server is simply an operating system installed on a computer
without a monitor, mouse, keyboard, and other peripherals.
Scheduled or automated installation: An installation process that runs on a preset time or when a
predefined condition transpires, as opposed to an installation process that starts explicitly on a
user's command.
Clean installation: A clean install is a software installation in which any previous version is
eradicated.
Network installation: Installing the NOS directly from the CD-ROM distribution discs on the
server's CD-ROM drive and shared harddisk from sever.
2. Boot methods: Cold Booting or Soft Booting & Warm Booting or Hard Booting.
Cold booting: When the computer is started after having been switched off.
Warm booting: When the operating system alone is restarted after a system crash or freeze.
3. File System and formatting: A file system is a major component of the operating system (OS). An
application command the OS to input and output data, and the file system reads and writes the sectors on
the storage drive. The file system manages the folder/directory structure and provides an index to the files.
APP-> OS-> File System-> Storage (HDD/SSD)
Formatting: Disk formatting is the process of preparing a data storage device such as a hard disk drive,
solid-state drive, floppy disk or USB flash drive for initial use. In some cases, the formatting operation may
also create one or more new file systems.
Week 2:
1. Install and configure virtual machine- Virtual box/VMware, VMware player station.
2. Download and install a terminal emulator and connect Linux VM via TE(optional).
Significance of man command.
1. Install and configure virtual machine- Virtual box/VMware, VMware player station.
2. Download and install a terminal emulator and connect Linux VM via TE (optional). Significance of man
command. :
man command in Linux is used to display the user manual of any command that we can run on
the terminal. It provides a detailed view of the command which includes NAME, SYNOPSIS, DESCRIPTION,
OPTIONS, EXIT STATUS, RETURN VALUES, ERRORS, FILES, VERSIONS, EXAMPLES, AUTHORS and SEE ALSO.
Week 3:
File and Directory commands:
1. Create and delete directories and files, File movement, copy commands, Pipes (named & unnamed)
2. Commands for viewing File, File comparison, File manipulation, Altering file permission, File
compression and decompression.
3. Text processing commands.
2. Commands for viewing File, File comparison, File manipulation, Altering file permission, File
compression and decompression.
For compression
$ gzip ostechnix.txt : here Gzip will replace the original file ostechnix.txt with a gzipped compressed
version named ostechnix.txt.gz.
For decompression
The above command decompresses the output.txt.gz file and writes the output to ostechnix1.txt file. In
both cases, it won't delete the original file.
$ # -n option for numeric sort, check out what happens when -n is not used
$ sort -t: -k2,2n ip.txt
2.3 : 012 : bar
3.1 : 32 : foo
1.2 : 123 : xyz
6.2 : 897 : bar
$ uniq -d sorted_colors.txt
Blue
Red
$ uniq -u sorted_colors.txt
Black
Green
comm: It prints output in three columns - lines unique to file1, line unique to file2 and lines common to
both files
Options
examples
$ # 3 column output - unique to file1, file2 and common
$ comm colors_1.txt colors_2.txt
Black
Blue
Brown
Green
Purple
Red
Teal
White
Yellow
Useful to compare binary files. If the two files are same, no output is displayed (exit status 0)
If there is a difference, it prints the first difference - line number and byte location (exit status 1)
Two provide examples for this command, lets consider two files :
$ cat file2.txt
My name is Mohak Kataria
$ cat file1.txt
My name is Mohak
1. Compare file1 to file2 and outputs results
Week 4:
1. Linux commands related to process creation and management- system calls fork() and exec();
bg, fg, nohup, pkill, nice, top, ps;
2. cron and at commands to schedule tasks.
1. System Calls fork(): Fork system call is used for creating a new process, which is called child process,
which runs concurrently with the process that makes the fork() call (parent process). After a new child
process is created, both processes will execute the next instruction following the fork() system call .
System Calls exec(): The exec system call is used to execute a file which is residing in an active process.
When exec is called the previous executable file is replaced and new file is executed.
Syntax:
exec [-cl] [-a name] [command [arguments]] [redirection ...]
Options:
c: It is used to execute the command with empty environment.
a name: Used to pass a name as the zeroth argument of the command.
l: Used to pass dash as the zeroth argument of the command.
P-kill is a command-line utility that sends signals to the processes of a running program based on given
criteria. The processes can be specified by their full or partial names, a user running the process, or other
attributes.
nice is a program found on Unix and Unix-like operating systems such as Linux. It directly maps to a
kernel call of the same name. nice is used to invoke a utility or shell script with a particular CPU priority,
thus giving the process more or less CPU time than other processes.
Eg:
1. To check the nice value of a process. : ps -el | grep terminal
2. To set the priority of a process: nice -10 gnome-terminal
3. To set the negative priority for a process :nice --10 gnome-terminal
4. changing priority of the running process: sudo renice -n 15 -p 77982
Top (table of processes) command shows a real-time view of running processes in Linux and displays
kernel-managed tasks. The command also provides a system information summary that shows resource
utilization, including CPU and memory usage.
Eg:
PID: Shows task's unique process id.
PR: The process's priority. ...
VIRT: Total virtual memory used by the task.
USER: User name of owner of task.
%CPU: Represents the CPU usage.
TIME+: CPU Time, the same as 'TIME', but reflecting more granularity through hundredths of a
second.
ps program displays the currently-running processes. A related Unix utility named top provides a real-time
view of the running processes.
[root@rhel7 ~]# ps
PID TTY TIME CMD
12330 pts/0 00:00:00 bash
21621 pts/0 00:00:00 ps
Where,
PID – the unique process ID
TTY – terminal type that the user is logged into
TIME – amount of CPU in minutes and seconds that the process has been running
CMD – name of the command that launched the process.
Crontab syntax:
To schedule a task using cron, you need to edit a special file called the crontab file in a text
editor and add your task in it in a particular format. Then cron will run the task for you at the
time you specify in the crontab file. You can specify any intervals of time, from seconds to weeks
and even years.
Week5:
1. Demonstration through videos. 2. Commands to exhibit thread concepts.
The top command can show a real-time view of individual threads. To enable thread views in the top
output, invoke top with "-H" option. This will list all Linux threads. You can also toggle on or off thread view
mode while top is running, by pressing 'H' key
# top -H -p <pid>
# ps -T -p <pid>
# ps -ef | grep 97947
deploy 97947 97942 1 00:51 ? 00:13:51 java