SlideShare ist ein Scribd-Unternehmen logo
1 von 35
U N I X
made by B Chari K working in semiconductors domain
UNIX OS
 Unix is a multi-user, multi-tasking, multi-
processing, efficient, fast and very powerful
operating system.
 The OS is build on top of the kernel, and
consists of
additional commands,
utilities,
command interpreters or shells,
language compilers and debuggers,
text processors etc.
B Chari K
Kernel
 The kernel is the heart of the any operating
system.
 This is relatively small piece of code that
directly sits on the hardware.
 It is a collection of programs that are mostly
written in C
B Chari K
Kernel Architecture
B Chari K
Kernel Tasks
B Chari K
Shell Prompt
 Shell provides an interface to the user and UNIX
OS.
 A shell is an environment in which we can run our
commands, programs, and shell scripts.
 It gathers input from user and executes programs
based on that input.
B Chari K
Different shells
 Different flavor of
shells, each has own
set of recognized
commands and
functions
 Borne shell(sh)
 Korn shell(sh)
 C shell
 TENEX C
shell(tcsh)
 Shells are usually
installed in /bin/B Chari K
Super User
 Unix is a case-sensitive operating system.
 A special account root that is reserved for the
system administrator or super user.
 It has all system resources, including all files,
directories, and data.
 The super user has full access and control
over every thing and a slight mistake can cause
irreparable damage to the system.
B Chari K
File Organization
B Chari K
File Organization
B Chari K
Absolute path & Relative path
 Absolute path : starts from root(/) and follow the
tree
 Relative path : starts from current directory
B Chari K
UNIX commands
Changing directory
 cd is used to change from
one directory to another
directory
cd ~  to home directory
cd /  to root directory
cd -  to last directory
cd ..  to immediate parent
directory
cd <dir_name> or cd <path>
pwd  know the path for
current directory
B Chari K
Creating and Removing Directories
 mkdir creates a
directory
mkdir <dir_name>
mkdir path>/<dir_name>
 rmdir removes a
directory
rmdir <dir_name>
B Chari K
Listing Files
 ls list the files and
directories in current
directory
 ls –l  long listing the all
details of files
 ls –a  hidden files
 ls –t  sort the files
 Ls -R recursively
displays all files in
subdirectories
B Chari K
Creating Files
touch is used to create
new, empty files
touch <file_name>
The argument to the
command taken as new
file name
Touch
<fie1><file2><file3>
Can create any no.of files
simultaneously
This command can
change timestamps for
existing files
B Chari K
Creating and Editing files
vi editor to create an
ordinary files
vi <file_name>
Press i - come into insert
mode
esc - come to command
mode
:wq to save and come out
of file completely.
vim, gvim, gedit, nedit,
emacs are some of editors
B Chari K
Display or concatenate files
cat displays the file
content on terminal.
Or display two files’
contents together
cat file1 file2
Combines and displays
file1 and file2
cat file1 file2 > filex
Moves file1 and file2
to filex
B Chari K
File Permissions
B Chari K
Chmod 755 <file1>
Change permissions
chmod alters the
permissions on files and
directories using either
symbolic or octal numeric
codes.
+ to add a permission
- to add a permission
= to assign a permission
chmod u=rw <file1>
chmod u+x, g+w, o-w
<file1>
B Chari K
Change Permissions
B Chari K
Copying and Moving files
cp used to make
copies of files and
directories
Cp <source_file>
<destination_file>
Cp file1 file2 dir1
Copies file1 and file2
into dir1 directory
Cp –r dir1 dir2
Copies directories
using -r
B Chari K
Moving and Renaming files
mv used to change the
name of the files or move
the files into other
directories
mv file1 file2
Renames the file1 to
file2
mv file1 file2 dir1
Moves file1 and file2
to dir1 directory
B Chari K
Getting help
man used to get the
manuals pages about the
command
man <command>
(or)
<command> --help
Info used to get the
description of all available
commands.
info
Info <command>
B Chari K
Removing files
rm is used to remove
files
rm <file1>
Deletes the existing file
rm -i <file1>
You will be asked that
you wish to be delete or
not
rm -r <directory>
Recursively deletes the
contents of directory,
its subdirectories and
deletes directory itself
B Chari K
Commands on files
Sort this command sort
and combines all the lines in
file
Sort -d <file1>
Sorts based on
dictionary order in which
letters, digits,
whitespaces considered
Sort -r <file1>
Reverse the order of
the combining sequence
diff display difference
between two files
Diff <file1> <file2>
Reports line by line
difference between the text
files
file tests named files to
determine the categories their
contents belongs to.
File <file1>
B Chari K
Display commands
echo prints the given
argument in standard output
device
echo “type a string”
head displays the head
or start of the file
head -number <file1>
Head -10 file1
taildisplays the tail or end of
the file
tail -number <file1>
Tail -20 <file1>
B Chari K
Display commands(more, less)
more display the large
file in one screenful at a time
more <file1>
Allows only forward
control
less similar to more
Less <file1>
Allows forward and
backward movement
more, less can also be
used for pattern searching
 more +/pattern <file1>
Less +/pattern <file1>
B Chari K
System resource commands
date report current
date and time
which reports path for
the specified command
which <command>
du report the disk
usage of specified file or
directory
du <dirname>
B Chari K
System resource commands
uname display or set the
name of the current machine
passwd change or set
the password
who report who is logged
in and what processes are
running
script saves everything that
appears on the screen to a file
until exit is executed.
script <file>
B Chari K
Find files of a specified name or
type
find searches for files in
a named directory and all its
subdirectories.
find . -type f -name “*.txt”
Searches current directory
for the files end with .txt
extension
find < > -type < > -name “pattern”
Path from where
You want to search
d – directory
f – files
l - link
B Chari K
Pattern Matching
grep searches for lines
containing specified pattern
grep <pattern>
<file_name>
grep -i <pattern>
<file_name>
For insensitive
search
grep -wocv <pattern>
<file>
-w Prints line which
have individual word
-o it prints only the
word
-c it gives the count
-v prints lines which
didn't match
B Chari K
Piping
 Connect two commands together so that the
output from one program becomes the input of
the next program.
 ls –l | grep “Aug”
 This would extract all the files created in August
month
B Chari K
T h a n k Y o u
made by B Chari K working in semiconductors domain

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
File permission in linux
File permission in linuxFile permission in linux
File permission in linux
 
Linux Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 
Shell programming
Shell programmingShell programming
Shell programming
 
UNIX Operating System ppt
UNIX Operating System pptUNIX Operating System ppt
UNIX Operating System ppt
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Secondary storage structure
Secondary storage structureSecondary storage structure
Secondary storage structure
 
Intro to Linux Shell Scripting
Intro to Linux Shell ScriptingIntro to Linux Shell Scripting
Intro to Linux Shell Scripting
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
Linux architecture
Linux architectureLinux architecture
Linux architecture
 
Unix
UnixUnix
Unix
 
Vi editor in linux
Vi editor in linuxVi editor in linux
Vi editor in linux
 
Introduction to Shell script
Introduction to Shell scriptIntroduction to Shell script
Introduction to Shell script
 
Linux booting Process
Linux booting ProcessLinux booting Process
Linux booting Process
 
A Quick Introduction to Linux
A Quick Introduction to LinuxA Quick Introduction to Linux
A Quick Introduction to Linux
 

Ähnlich wie Know the UNIX Commands

Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structureSreenatha Reddy K R
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.pptLuigysToro
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scriptsPrashantTechment
 
Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX CommandsSubra Das
 
Linux file system nevigation
Linux file system nevigationLinux file system nevigation
Linux file system nevigationhetaldobariya
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command ShellTushar B Kute
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.pptKiranMantri
 
BASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptxBASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptxAlkaYadav79
 
bash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfbash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfMuhammadAbdullah311866
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unixsouthees
 
Introduction to LINUX
Introduction to LINUXIntroduction to LINUX
Introduction to LINUXAVI DHALL
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Wave Digitech
 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritpingchockit88
 

Ähnlich wie Know the UNIX Commands (20)

Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
Linux ppt
Linux pptLinux ppt
Linux ppt
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Basics of UNIX Commands
Basics of UNIX CommandsBasics of UNIX Commands
Basics of UNIX Commands
 
Linux file system nevigation
Linux file system nevigationLinux file system nevigation
Linux file system nevigation
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
Basic unix commands_1
Basic unix commands_1Basic unix commands_1
Basic unix commands_1
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 
UNIX.pptx
UNIX.pptxUNIX.pptx
UNIX.pptx
 
BASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptxBASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptx
 
bash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfbash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdf
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Basics of Unix Adminisration
Basics  of Unix AdminisrationBasics  of Unix Adminisration
Basics of Unix Adminisration
 
Unix Basics For Testers
Unix Basics For TestersUnix Basics For Testers
Unix Basics For Testers
 
Introduction to LINUX
Introduction to LINUXIntroduction to LINUX
Introduction to LINUX
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Karkha unix shell scritping
Karkha unix shell scritpingKarkha unix shell scritping
Karkha unix shell scritping
 

Kürzlich hochgeladen

Delhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...Call Girls in Nagpur High Profile
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja Nehwal
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130Suhani Kapoor
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfAmirYakdi
 
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130Suhani Kapoor
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Delhi Call girls
 
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...Pooja Nehwal
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...babafaisel
 
Tapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the FunnelTapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the Funneljen_giacalone
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️soniya singh
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...home
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Servicearoranaina404
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girlsmodelanjalisharma4
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...amitlee9823
 
The Art of Batik, template ppt aesthetic
The Art of Batik, template ppt aestheticThe Art of Batik, template ppt aesthetic
The Art of Batik, template ppt aestheticTiaFebriani
 
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Douxkojalkojal131
 
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵anilsa9823
 

Kürzlich hochgeladen (20)

Delhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Paharganj 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
VVIP Pune Call Girls Dange Chowk (8250192130) Pune Escorts Nearby with Comple...
 
꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...
꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...
꧁❤ Hauz Khas Call Girls Service Hauz Khas Delhi ❤꧂ 9999965857 ☎️ Hard And Sex...
 
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
Pooja 9892124323, Call girls Services and Mumbai Escort Service Near Hotel Hy...
 
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
VIP Call Girls Service Bhagyanagar Hyderabad Call +91-8250192130
 
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdfThe_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
The_Canvas_of_Creative_Mastery_Newsletter_April_2024_Version.pdf
 
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
VIP Call Girls Service Mehdipatnam Hyderabad Call +91-8250192130
 
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
Best VIP Call Girls Noida Sector 47 Call Me: 8448380779
 
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...Kurla Call Girls Pooja Nehwal📞 9892124323 ✅  Vashi Call Service Available Nea...
Kurla Call Girls Pooja Nehwal📞 9892124323 ✅ Vashi Call Service Available Nea...
 
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
Kala jadu for love marriage | Real amil baba | Famous amil baba | kala jadu n...
 
Tapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the FunnelTapestry Clothing Brands: Collapsing the Funnel
Tapestry Clothing Brands: Collapsing the Funnel
 
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
Call Girls in Kalkaji Delhi 8264348440 call girls ❤️
 
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
young call girls in Vivek Vihar🔝 9953056974 🔝 Delhi escort Service
 
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
Recommendable # 971589162217 # philippine Young Call Girls in Dubai By Marina...
 
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts ServiceVVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
VVIP CALL GIRLS Lucknow 💓 Lucknow < Renuka Sharma > 7877925207 Escorts Service
 
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call GirlsCBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
CBD Belapur Individual Call Girls In 08976425520 Panvel Only Genuine Call Girls
 
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Brookefield Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
The Art of Batik, template ppt aesthetic
The Art of Batik, template ppt aestheticThe Art of Batik, template ppt aesthetic
The Art of Batik, template ppt aesthetic
 
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai DouxDubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
Dubai Call Girls Pro Domain O525547819 Call Girls Dubai Doux
 
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service  🧵
CALL ON ➥8923113531 🔝Call Girls Kalyanpur Lucknow best Female service 🧵
 

Know the UNIX Commands

  • 1. U N I X made by B Chari K working in semiconductors domain
  • 2. UNIX OS  Unix is a multi-user, multi-tasking, multi- processing, efficient, fast and very powerful operating system.  The OS is build on top of the kernel, and consists of additional commands, utilities, command interpreters or shells, language compilers and debuggers, text processors etc. B Chari K
  • 3. Kernel  The kernel is the heart of the any operating system.  This is relatively small piece of code that directly sits on the hardware.  It is a collection of programs that are mostly written in C B Chari K
  • 6. Shell Prompt  Shell provides an interface to the user and UNIX OS.  A shell is an environment in which we can run our commands, programs, and shell scripts.  It gathers input from user and executes programs based on that input. B Chari K
  • 7. Different shells  Different flavor of shells, each has own set of recognized commands and functions  Borne shell(sh)  Korn shell(sh)  C shell  TENEX C shell(tcsh)  Shells are usually installed in /bin/B Chari K
  • 8. Super User  Unix is a case-sensitive operating system.  A special account root that is reserved for the system administrator or super user.  It has all system resources, including all files, directories, and data.  The super user has full access and control over every thing and a slight mistake can cause irreparable damage to the system. B Chari K
  • 11. Absolute path & Relative path  Absolute path : starts from root(/) and follow the tree  Relative path : starts from current directory B Chari K
  • 13. Changing directory  cd is used to change from one directory to another directory cd ~  to home directory cd /  to root directory cd -  to last directory cd ..  to immediate parent directory cd <dir_name> or cd <path> pwd  know the path for current directory B Chari K
  • 14. Creating and Removing Directories  mkdir creates a directory mkdir <dir_name> mkdir path>/<dir_name>  rmdir removes a directory rmdir <dir_name> B Chari K
  • 15. Listing Files  ls list the files and directories in current directory  ls –l  long listing the all details of files  ls –a  hidden files  ls –t  sort the files  Ls -R recursively displays all files in subdirectories B Chari K
  • 16. Creating Files touch is used to create new, empty files touch <file_name> The argument to the command taken as new file name Touch <fie1><file2><file3> Can create any no.of files simultaneously This command can change timestamps for existing files B Chari K
  • 17. Creating and Editing files vi editor to create an ordinary files vi <file_name> Press i - come into insert mode esc - come to command mode :wq to save and come out of file completely. vim, gvim, gedit, nedit, emacs are some of editors B Chari K
  • 18.
  • 19. Display or concatenate files cat displays the file content on terminal. Or display two files’ contents together cat file1 file2 Combines and displays file1 and file2 cat file1 file2 > filex Moves file1 and file2 to filex B Chari K
  • 21. Chmod 755 <file1> Change permissions chmod alters the permissions on files and directories using either symbolic or octal numeric codes. + to add a permission - to add a permission = to assign a permission chmod u=rw <file1> chmod u+x, g+w, o-w <file1> B Chari K
  • 23. Copying and Moving files cp used to make copies of files and directories Cp <source_file> <destination_file> Cp file1 file2 dir1 Copies file1 and file2 into dir1 directory Cp –r dir1 dir2 Copies directories using -r B Chari K
  • 24. Moving and Renaming files mv used to change the name of the files or move the files into other directories mv file1 file2 Renames the file1 to file2 mv file1 file2 dir1 Moves file1 and file2 to dir1 directory B Chari K
  • 25. Getting help man used to get the manuals pages about the command man <command> (or) <command> --help Info used to get the description of all available commands. info Info <command> B Chari K
  • 26. Removing files rm is used to remove files rm <file1> Deletes the existing file rm -i <file1> You will be asked that you wish to be delete or not rm -r <directory> Recursively deletes the contents of directory, its subdirectories and deletes directory itself B Chari K
  • 27. Commands on files Sort this command sort and combines all the lines in file Sort -d <file1> Sorts based on dictionary order in which letters, digits, whitespaces considered Sort -r <file1> Reverse the order of the combining sequence diff display difference between two files Diff <file1> <file2> Reports line by line difference between the text files file tests named files to determine the categories their contents belongs to. File <file1> B Chari K
  • 28. Display commands echo prints the given argument in standard output device echo “type a string” head displays the head or start of the file head -number <file1> Head -10 file1 taildisplays the tail or end of the file tail -number <file1> Tail -20 <file1> B Chari K
  • 29. Display commands(more, less) more display the large file in one screenful at a time more <file1> Allows only forward control less similar to more Less <file1> Allows forward and backward movement more, less can also be used for pattern searching  more +/pattern <file1> Less +/pattern <file1> B Chari K
  • 30. System resource commands date report current date and time which reports path for the specified command which <command> du report the disk usage of specified file or directory du <dirname> B Chari K
  • 31. System resource commands uname display or set the name of the current machine passwd change or set the password who report who is logged in and what processes are running script saves everything that appears on the screen to a file until exit is executed. script <file> B Chari K
  • 32. Find files of a specified name or type find searches for files in a named directory and all its subdirectories. find . -type f -name “*.txt” Searches current directory for the files end with .txt extension find < > -type < > -name “pattern” Path from where You want to search d – directory f – files l - link B Chari K
  • 33. Pattern Matching grep searches for lines containing specified pattern grep <pattern> <file_name> grep -i <pattern> <file_name> For insensitive search grep -wocv <pattern> <file> -w Prints line which have individual word -o it prints only the word -c it gives the count -v prints lines which didn't match B Chari K
  • 34. Piping  Connect two commands together so that the output from one program becomes the input of the next program.  ls –l | grep “Aug”  This would extract all the files created in August month B Chari K
  • 35. T h a n k Y o u made by B Chari K working in semiconductors domain

Hinweis der Redaktion

  1. 17
  2. 26