SlideShare a Scribd company logo
1 of 68
UNIX ENVIRONMENT
DESIGNED BY :
MITTINPREET SINGH NAYYAR
VIKAS K PRASAD
 Introduction to Unix
 History of Unix
 Salient features of Unix
 SHELL
 Distributions
 Installing VMware
 Basic Unix Commands
 Q&A
 References
Roadmap
INTRODUCTION TO UNIX
 A multi-tasking and multi-user Operating System
 Developed in 1969 at AT&T’s Bell Labs by
 Ken Thompson (Unix)
 Dennis Ritchie (C)
 Peter Neumann suggested their project is given the name UNIX.
 It is a portable operating system that is designed for both efficient
multi-tasking and multi-user functions. Its portability allows it to run on
different hardware platforms. It was written is C and lets user do
processing and control under a shell.
 Unix is case sensitive
HISTORY OF UNIX
 The history of UNIX starts from the project MULTICS (Multiplexed
Information and Computing Service) in 1965 conducted by AT&T,GE
& MIT funded by DOD(Dept. of Defense)USA.
 The main aim to develop UNIX was to develop and operating
system that could serve large Community of users and allow them to
share data if needed be. This never to be enterprise called MULTICS
 In 1969, ken Thompson and Dennis Ritchie released the first version
of Multiuser System Called UNIX. At that time Unix was not portable.
To remedy this Ken Thompson created a new language “B” but
language lacked some aspects. So in 1973 UNIX was Rewritten in
“C” Language by Ken Thompson. C Language was developed by
Dennis Ritchie.
SALIENT FEATURE OF UNIX
 Multiuser Capability
 Multitasking Capability
 Communication
 Security
 Portability
What is SHELL
A shell acts as an interface between the user and the system. As a
command interpreter, the shell takes commands that we give interpret
the command and then conveys them to the kernel which ultimate
executes them. You can imagine kernel as a monarch who is the
overall control of everything where as the shell as its emissary
TYPES Of SHELLS
 BOURNE SHELL
Steve Bourne Creation, known after him Bourne Shell is the most
popular. It comes with every Unix System
 C SHELL
This shell is a hit with those who are seriously into Unix programming,
created by Bill Joy, it had two advantage over Bourne Shell. It allows aliasing of
commands the other one is history feature.
 KORN SHELL
it is not widely used but is a powerful and superset of Bourne shell,
created by David Korn.
OTHER SHELLS
 ZSHELL
 BASH SHELL
SHELL Prompt of Ubuntu
To open the terminal in Ubuntu use can use the shortcut : ctrl + Alt + T
DISTRIBUTIONS
 Linux
 Minix
 FreeBSD
 OpenBSD
 NetBSD
 GNU Hurd
 Solaris
 SCO Unix
Conclusion
There are many free Unix like operating systems floating around out there and most if not all
of them can be found quickly with a simple internet search. The OS's I have listed above are,
in my opinion, the best. They are also all available to use for free unlike most of the others.
http://www.distrowatch.com
Ubuntu Distribution
BASIC COMMANDS
This command returns your username. Sounds useless, but
isn't. You may need to find out who it is who forgot to log
out somewhere, and make sure *you* have logged out.
Example: whoami
whoami
Man - Manual
In unix online help has been available since the beginning. In order to
access all the available help, you have to tell the shell where to look for
online help pages. This information is specified using the MANPATH. A
common setting is:
MANPATH=/usr/man:/usr/share/man
When you use the man command to request online help as follows, the
man command searches every directory given in the MANPATH for an
online help page corresponding to the topic you have requested.
$man who
In this case it looks for the online help page corresponding to the who
command
A snapshot of $man who
Passwd
 To change the password of the user we use passwd command
 Which ever password we create Unix stores it in /etc/passwd file.
 The password actually stored in Shadow File which is located in
etc/shadow.
 We can even cat this file on the screen
 lets you change your password, which you should do regularly (at
least once a year).
$cat /etc/passwd
cal - Calender
Display a conveniently-formatted calendar from the command line.
In general, if no options are given, cal displays the current month at the
command line.
Touch
 With this command we will learn how to create files
 With this we can create many files without storing anything in the
files. The size of the file is ZERO Bytes
Q Why do we use touch ?
A when we want to create several files quickly we use touch
command.
 Example: touch dinesh heena siddhi jatin
cat- concatenate
 If we want to store a few lines in a file while creating it we use cat
command. One’s you are through with typing content press the
keys : Ctrl + d . In Unix Ctrl + d indicates the EOF(End of File)
 To display the content of file under DOS we use type command.
 To see content of file we use the following command
 Umask 0022
Example : cat >dheeraj - for creating file
cat < dheeraj or cat dheeraj - will show you the output
cp- copy
Copies Files from one Directory or location to another file or directory.
Cp command takes the liberty to overwrite the file to the destination it
will not even give a warning.
Example:
$cp abc.c xyz.c mycfile.txt
$cp abc.c xyz.c
$cp /usr/aa16/chapter1 /usr/aa16/newbook/chap1
The last command when executed it will copy the chapter1 file to
/usr/aa16/newbook. When copied to this directory it would have the
name chap1 instead of chapter1
rm - remove
Remove Files from directory. It is wise to use the option rm -i, which will
ask you for confirmation before actually deleting anything.
Ls-list
ls --- lists your files
ls -l --- lists your files in 'long format', which contains lots of useful
information, e.g. the exact size of the file, who owns the file and who
has the right to look at it, and when it was last modified.
ls -a --- lists all files, including the ones whose filenames begin in a dot,
which you do not always want to see.
There are many more options, for example to list files by size, by date,
recursively etc.
mv - move or rename
 moves a file (i.e. gives it a different name, or moves it into a different
directory
Chmod- change mode
mkdir – make directory
cd – change directory
Pwd- print working directory
rmdir – remove directory
logname
uname
who
tty – tele terminal
ulimit
sort
wc
Head
tail
more
shows the first part of a file, just as much as will fit on one screen. Just hit
the space bar to see more or q to quit. You can use /pattern to search
for a pattern.
less
date
Shows the current date and time.
References
 Unix Shell Programming By Yashavant Kanetkar.
 Unix Concept and Application by Sumitabha Das.
 http://www.tutorialspoint.com/unix
 https://www.youtube.com/watch?v=nVt3Rst-
2H8&list=PL7B7FA4E693D8E790
Q&A SESSION

More Related Content

What's hot

Accessing windows files from linux
Accessing windows files from linuxAccessing windows files from linux
Accessing windows files from linux
Vivek K. Singh
 
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake DevilleThe OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
Matthew Turland
 

What's hot (19)

Accessing windows files from linux
Accessing windows files from linuxAccessing windows files from linux
Accessing windows files from linux
 
OLSR setup
OLSR setup OLSR setup
OLSR setup
 
Slider2
Slider2Slider2
Slider2
 
NCSU MGSA Unix Presentation
NCSU MGSA Unix PresentationNCSU MGSA Unix Presentation
NCSU MGSA Unix Presentation
 
Install Archlinux in 10 Steps (Sort of) :)
Install Archlinux in 10 Steps (Sort of) :)Install Archlinux in 10 Steps (Sort of) :)
Install Archlinux in 10 Steps (Sort of) :)
 
Linux Training Workshop
Linux Training WorkshopLinux Training Workshop
Linux Training Workshop
 
Linux Overload
Linux OverloadLinux Overload
Linux Overload
 
Linux
LinuxLinux
Linux
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Terminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partITerminal basic-commands(Unix) -partI
Terminal basic-commands(Unix) -partI
 
Ubuntu
UbuntuUbuntu
Ubuntu
 
Introduction to linux1
Introduction to linux1Introduction to linux1
Introduction to linux1
 
Types of Free Software
Types of Free Software Types of Free Software
Types of Free Software
 
Unix notes
Unix notesUnix notes
Unix notes
 
Introduction to linux day1
Introduction to linux day1Introduction to linux day1
Introduction to linux day1
 
How to mount ntfs in linux
How to mount ntfs in linuxHow to mount ntfs in linux
How to mount ntfs in linux
 
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake DevilleThe OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
The OpenSolaris Operating System and Sun xVM VirtualBox - Blake Deville
 
Clase4 (consola linux)
Clase4 (consola linux)Clase4 (consola linux)
Clase4 (consola linux)
 
50 Perintah Dasar pada linux
50 Perintah Dasar pada linux50 Perintah Dasar pada linux
50 Perintah Dasar pada linux
 

Similar to Unix environment [autosaved]

LINUX
LINUXLINUX
LINUX
ARJUN
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
Reka
 

Similar to Unix environment [autosaved] (20)

Unix environment [autosaved]
Unix environment [autosaved]Unix environment [autosaved]
Unix environment [autosaved]
 
Unix - An Introduction
Unix - An IntroductionUnix - An Introduction
Unix - An Introduction
 
LINUX
LINUXLINUX
LINUX
 
A beginners introduction to unix
A beginners introduction to unixA beginners introduction to unix
A beginners introduction to unix
 
Basic unix commands1
Basic unix commands1Basic unix commands1
Basic unix commands1
 
Programming and problem solving 3
Programming and problem solving 3Programming and problem solving 3
Programming and problem solving 3
 
lec1.docx
lec1.docxlec1.docx
lec1.docx
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
linux.pdf
linux.pdflinux.pdf
linux.pdf
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
 
Linuxppt
LinuxpptLinuxppt
Linuxppt
 
Unix Introduction
Unix IntroductionUnix Introduction
Unix Introduction
 
Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 
Linux
LinuxLinux
Linux
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Introduction to unix
Introduction to unixIntroduction to unix
Introduction to unix
 
84640411 study-of-unix-os
84640411 study-of-unix-os84640411 study-of-unix-os
84640411 study-of-unix-os
 
Linux notes
Linux notesLinux notes
Linux notes
 

Recently uploaded

Recently uploaded (20)

On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 

Unix environment [autosaved]

  • 1. UNIX ENVIRONMENT DESIGNED BY : MITTINPREET SINGH NAYYAR VIKAS K PRASAD
  • 2.  Introduction to Unix  History of Unix  Salient features of Unix  SHELL  Distributions  Installing VMware  Basic Unix Commands  Q&A  References Roadmap
  • 3. INTRODUCTION TO UNIX  A multi-tasking and multi-user Operating System  Developed in 1969 at AT&T’s Bell Labs by  Ken Thompson (Unix)  Dennis Ritchie (C)  Peter Neumann suggested their project is given the name UNIX.  It is a portable operating system that is designed for both efficient multi-tasking and multi-user functions. Its portability allows it to run on different hardware platforms. It was written is C and lets user do processing and control under a shell.  Unix is case sensitive
  • 4. HISTORY OF UNIX  The history of UNIX starts from the project MULTICS (Multiplexed Information and Computing Service) in 1965 conducted by AT&T,GE & MIT funded by DOD(Dept. of Defense)USA.  The main aim to develop UNIX was to develop and operating system that could serve large Community of users and allow them to share data if needed be. This never to be enterprise called MULTICS  In 1969, ken Thompson and Dennis Ritchie released the first version of Multiuser System Called UNIX. At that time Unix was not portable. To remedy this Ken Thompson created a new language “B” but language lacked some aspects. So in 1973 UNIX was Rewritten in “C” Language by Ken Thompson. C Language was developed by Dennis Ritchie.
  • 5. SALIENT FEATURE OF UNIX  Multiuser Capability  Multitasking Capability  Communication  Security  Portability
  • 6. What is SHELL A shell acts as an interface between the user and the system. As a command interpreter, the shell takes commands that we give interpret the command and then conveys them to the kernel which ultimate executes them. You can imagine kernel as a monarch who is the overall control of everything where as the shell as its emissary
  • 7. TYPES Of SHELLS  BOURNE SHELL Steve Bourne Creation, known after him Bourne Shell is the most popular. It comes with every Unix System  C SHELL This shell is a hit with those who are seriously into Unix programming, created by Bill Joy, it had two advantage over Bourne Shell. It allows aliasing of commands the other one is history feature.  KORN SHELL it is not widely used but is a powerful and superset of Bourne shell, created by David Korn. OTHER SHELLS  ZSHELL  BASH SHELL
  • 8. SHELL Prompt of Ubuntu To open the terminal in Ubuntu use can use the shortcut : ctrl + Alt + T
  • 9. DISTRIBUTIONS  Linux  Minix  FreeBSD  OpenBSD  NetBSD  GNU Hurd  Solaris  SCO Unix Conclusion There are many free Unix like operating systems floating around out there and most if not all of them can be found quickly with a simple internet search. The OS's I have listed above are, in my opinion, the best. They are also all available to use for free unlike most of the others. http://www.distrowatch.com
  • 11. BASIC COMMANDS This command returns your username. Sounds useless, but isn't. You may need to find out who it is who forgot to log out somewhere, and make sure *you* have logged out. Example: whoami whoami
  • 12.
  • 13. Man - Manual In unix online help has been available since the beginning. In order to access all the available help, you have to tell the shell where to look for online help pages. This information is specified using the MANPATH. A common setting is: MANPATH=/usr/man:/usr/share/man When you use the man command to request online help as follows, the man command searches every directory given in the MANPATH for an online help page corresponding to the topic you have requested. $man who In this case it looks for the online help page corresponding to the who command
  • 14. A snapshot of $man who
  • 15. Passwd  To change the password of the user we use passwd command  Which ever password we create Unix stores it in /etc/passwd file.  The password actually stored in Shadow File which is located in etc/shadow.  We can even cat this file on the screen  lets you change your password, which you should do regularly (at least once a year). $cat /etc/passwd
  • 16.
  • 17.
  • 18. cal - Calender Display a conveniently-formatted calendar from the command line. In general, if no options are given, cal displays the current month at the command line.
  • 19.
  • 20.
  • 21. Touch  With this command we will learn how to create files  With this we can create many files without storing anything in the files. The size of the file is ZERO Bytes Q Why do we use touch ? A when we want to create several files quickly we use touch command.  Example: touch dinesh heena siddhi jatin
  • 22.
  • 23. cat- concatenate  If we want to store a few lines in a file while creating it we use cat command. One’s you are through with typing content press the keys : Ctrl + d . In Unix Ctrl + d indicates the EOF(End of File)  To display the content of file under DOS we use type command.  To see content of file we use the following command  Umask 0022 Example : cat >dheeraj - for creating file cat < dheeraj or cat dheeraj - will show you the output
  • 24.
  • 25. cp- copy Copies Files from one Directory or location to another file or directory. Cp command takes the liberty to overwrite the file to the destination it will not even give a warning. Example: $cp abc.c xyz.c mycfile.txt $cp abc.c xyz.c $cp /usr/aa16/chapter1 /usr/aa16/newbook/chap1 The last command when executed it will copy the chapter1 file to /usr/aa16/newbook. When copied to this directory it would have the name chap1 instead of chapter1
  • 26.
  • 27. rm - remove Remove Files from directory. It is wise to use the option rm -i, which will ask you for confirmation before actually deleting anything.
  • 28.
  • 29. Ls-list ls --- lists your files ls -l --- lists your files in 'long format', which contains lots of useful information, e.g. the exact size of the file, who owns the file and who has the right to look at it, and when it was last modified. ls -a --- lists all files, including the ones whose filenames begin in a dot, which you do not always want to see. There are many more options, for example to list files by size, by date, recursively etc.
  • 30.
  • 31.
  • 32. mv - move or rename  moves a file (i.e. gives it a different name, or moves it into a different directory
  • 33.
  • 35.
  • 36. mkdir – make directory
  • 37.
  • 38. cd – change directory
  • 39.
  • 40. Pwd- print working directory
  • 41.
  • 42. rmdir – remove directory
  • 43.
  • 45.
  • 46. uname
  • 47.
  • 48. who
  • 49.
  • 50. tty – tele terminal
  • 52.
  • 53. sort
  • 54.
  • 55. wc
  • 56.
  • 57. Head
  • 58.
  • 59. tail
  • 60.
  • 61. more shows the first part of a file, just as much as will fit on one screen. Just hit the space bar to see more or q to quit. You can use /pattern to search for a pattern.
  • 62.
  • 63. less
  • 64.
  • 65. date Shows the current date and time.
  • 66.
  • 67. References  Unix Shell Programming By Yashavant Kanetkar.  Unix Concept and Application by Sumitabha Das.  http://www.tutorialspoint.com/unix  https://www.youtube.com/watch?v=nVt3Rst- 2H8&list=PL7B7FA4E693D8E790