Hello everyone; I am Teertha Darekar This blog of mine is based on the Day 1 of linux workshop conducted by Pranav Jambare sir .
CONTENTS :
Operating System
Why to choose Linux
Evolution
Architecture
Linux File Hierarchy
Yanking
Redirection
Modes
Let's Start this blog .
1) Operating System :
An operating system is the most importatnt software that runs on a computer
It acts as an interface between a computer user and computer hardware
It allow you to communicate with the computer without knowing how to speak the computer's language
some of the examples are :- Windows , Mac , Ubuntu ect.
2) Why to choose Linux :
Below are the benefits of linux
. Free
. Open Source
. Reliable
. Low Level Resource Support
. Secure
. Privacy
. Perfect to Programmers
. Updates
. Customization
. Variety of Distribution
. Better Community Support
3) Unix - Evolution of Linux :
In 1991 Linux Torvalds Invented Linux
1969 -> Unix Developed by AT&T
1973 -> Unix rewritten in c
1974 -> Unix released for educational Purpose
1975-79 -> 6th and 7th edition
1983 -> System v accepted as standard os
1987 -> sco reported record distribution of xenix
1990 -> UnixWare developed
1993 -> Berkeleystopped further unix development
1996 -> over 20 distribution
4) Linux Architecture
* Hardware layer :- This is the bottommost layer of the linux architechture and represents the physical hardware components of the computer. such as printer , disks , memory etc. It is responsible for interacting with various hardware devices.
* kernel layer :- The kernel is the core of the operating system and is responsible for managing the resources of the computer such as cpu , memory and I/O devices. It acts as an interpreter between shell and hardware
* Shell Layer :- It is an interface to the krnel which hides the complexity of the kernels's functions from the users.
* Application Layer :- This is the Topmost layer of the linux architecture and consists of the various applications that run on the os
* Utilities layer :- It provides the functionalities of an operating system to the user
5) Linux file hierarchy
/ : Contains various directories
/bin/ : Contains Binaries
/boot/ : Contains Boot loader files
/dev/ : Device related
/etc/ : Cotains configuration files
/home/ : Contains User's Home Directories
/lib/ : Libraries
/media/ : Contains media like photos, videos
/mnt/ : Temporary monting
/opt/ : Optional application
/root/ : Created by System /sbin/ : Contains sysytem related binary
/srv/ : Server related
/tmp/ : Temporary files
/usr/ : User
/var/ : Variable directory
Var contains the following:-
/cache/ : cache files
/log/ - System user related
/spool/ : mail reated
/tmp/ : temporary files
6) YANKING
*Shortcut keys :-
yy - to copy line
dd - to delete
cc - to insert
gg - to go o the begining of line
G - to go to the last line
:4 - to go to the 4 line (any number can be writen instead of 4 depending on the line you want to go)
:set nu - to show line numbers
:!<command> - to run command
/<word> - to search specific word
n - next
:%s/xyz/abc - to replace xyz with abc
g - global ( it is used to replace more than one word in a single line )(written as :%s/xyz/abc/g )
*Running command with " :! "
7) Redirection
Various redirections
find / -user <username>
find / -user 2> <username> <errorfile>
find / -user > <username> <o/p file>
find / -user > <username> <o/p file> 2> <filename>
find / -user <username> &> /dev/null - output will be nullified
find / -user <username> |tee <file name>
8) Modes
Ess mode
insert mode (i)
:wq!
v (visual code)
This are all the points covered on Day one of linux workshop.
Thankyou for reading my blog.