unix environment

41
UNIX ENVIRONMENT DESIGNED BY : MITTINPREET SINGH NAYYAR VIKAS K PRASAD

Upload: er-mittinpreet-singh

Post on 12-Feb-2017

136 views

Category:

Education


4 download

TRANSCRIPT

Page 1: Unix environment

UNIX ENVIRONMENT

DESIGNED BY :MITTINPREET SINGH NAYYARVIKAS K PRASAD

Page 2: Unix environment

Introduction to Unix History of Unix SHELL Distributions Installing VMware Basic Unix Commands Vi and Emacs Q&A References

Roadmap

Page 3: Unix environment

INTRODUCTION TO UNIX

A multi-task 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

Page 4: Unix environment

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.

Page 5: Unix environment

SALIENT FEATURE OF UNIX

Multiuser Capability Multitasking Capability Communication Security Portability

Page 6: Unix environment

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

Page 7: Unix environment

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

Page 8: Unix environment

SHELL Prompt of Ubuntu

To open the terminal in Ubuntu use can use the shortcut : ctrl + Alt + T

Page 9: Unix environment

DISTRIBUTIONS Linux

Minix FreeBSD OpenBSD NetBSD GNU Hurd Solaris SCO Unix

ConclusionThere 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.

Page 10: Unix environment

Ubuntu Distribution

Page 11: Unix environment

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

Page 12: Unix environment
Page 13: Unix environment

Passwd

to change the password of the user we use passwd command Which ever password we create Unix stores it in /etc/passwd We can even cat this file on the screen

Page 14: Unix environment

cal - Calender

Page 15: Unix environment

Banner

Page 16: Unix environment

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

Page 17: Unix environment
Page 18: Unix environment

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 0022Example : cat >dheeraj - for creating filecat < dheeraj or cat dheeraj - will show you the output

Page 19: Unix environment
Page 20: Unix environment

cp- copy

Page 21: Unix environment

rm - remove

Page 22: Unix environment

Ls-list

Page 23: Unix environment

mv - move or rename

Page 24: Unix environment

Chmod- change mode

Page 25: Unix environment

mkdir – make directory

Page 26: Unix environment

cd – change directory

Page 27: Unix environment

Pwd- print working directory

Page 28: Unix environment

rmdir – remove directory

Page 29: Unix environment

logname

Page 30: Unix environment

uname

Page 31: Unix environment

who

Page 32: Unix environment

tty – tele terminal

Page 33: Unix environment

ulimit

Page 34: Unix environment

sort

Page 35: Unix environment

wc

Page 36: Unix environment

Head

Page 37: Unix environment

tail

Page 38: Unix environment

more

Page 39: Unix environment

less

Page 40: Unix environment

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

Page 41: Unix environment

Q&A SESSION