Introduction to UNIX. 2 History of Unix  1960 Software based on Hardware Limits  1969 Ken Thompson Develop a Better Programming Environment  1971 New.

Slides:



Advertisements
Similar presentations
CS 497C – Introduction to UNIX Lecture 5: Understanding the UNIX Command Chin-Chih Chang
Advertisements

A Guide to Unix Using Linux Fourth Edition
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
CIS 118 – Intro to UNIX Shells 1. 2 What is a shell? Bourne shell – Developed by Steve Bourne at AT&T Korn shell – Developed by David Korn at AT&T C-shell.
Chapter One The Essence of UNIX.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Chapter 4 Getting Help. Using CDE Help Help Manager – primary help tool SunSolve Online – Web-based online help from Sun Solaris Support – Web-based Sun.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Guide To UNIX Using Linux Third Edition
CS 497C – Introduction to UNIX Lecture 1: Getting Started Chin-Chih Chang
UNIX Utilities Learning Objectives: 1. To understand the some basic utilities of UNIX File 2. To compare UNIX shell and popular shell 3. To learn Input/Output.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
Engineering H192 - Computer Programming The Ohio State University Gateway Engineering Education Coalition Lect 4P. 1Winter Quarter Introduction to UNIX.
What is Unix Prepared by Dr. Bahjat Qazzaz. What is Unix UNIX is a computer operating system. An operating system is the program that – controls all the.
2 $ command Command Line Options ls –a –l hello hi Command Arguments.
7/17/2009 rwjBROOKDALE COMMUNITY COLLEGE1 Unix Comp-145 C HAPTER 2.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
1 The Shell and some useful administrative Unix Commands How Unix works along with some additional, useful administrative Unix commands you might need.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Chapter 9 Part II Linux Command Line Access to Linux Authenticated login using a Linux account is required to access a Linux system. The Linux prompt will.
Using Interact!. OPENING THE NECESSARY SOFTWARE To access the Interact service, you need to use software entitled “FirstClass.” Click and hold the Apple.
Introduction to Unix/Linux Chapter One The Essence of UNIX.
UNIX Unbounded 5th Edition Amir Afzal Chapter 3 Getting Started
Module 1 Introduction to UNIX/Linux
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
Agenda Chapter 1: Linux (Unix) Features Commands (Chapters 2 & 3) Command Structure / Command line editing man, passwd, cal, date, whereis, which Working.
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
June 1, 1999Pine Facility1 Introduction to UNIX B. With Pine.
UNIX and Shell Programming (06CS36) Unit 1 Continued… Shrinivas R. Mangalwede Department of Computer Science and Engineering K.L.S. Gogte Institute of.
Natawut NupairojAssembly Language1 Unix Survival Guide.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
Before we start…Getting Started. UST Outline History Getting Started Basic commands (command line) Operations on Files and Directories Input and Output.
Introduction to Unix (CA263) Getting Started By Tariq Ibn Aziz.
De Anza College Instructor: Clare Nguyen
Agenda Getting Started: Using Unix Unix Structure / Features Elements of the Unix Philosophy Unix Command Structure Command Line Editing Online Unix Command.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
History of UNIX a short version CSCI 333 August 31, 2011.
Creating Programs on UNIX This term you can create programs on UNIX or you can create programs using a C++ compiler on your PC. This set of slides steps.
Lab 3 + Using the Terminal 1. "Under Linux there are GUIs (graphical user interfaces). where you can point and click and drag, and hopefully get work.
Introduction to Programming Using C An Introduction to Operating Systems.
Unix – Linux CS3353 Ssystem Administration. OS The Operating System – Acts as the interface to all software, hardware, and users of a computer. – Requires.
Lab 3 + Using the Terminal 1. "Under Linux there are GUIs (graphical user interfaces). where you can point and click and drag, and hopefully get work.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: which, passwd, date, ps / kill Working with Files: file, touch, cat, more, less, grep,
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
The Kernel At a high level, the kernel in an operating system serves as the bridge between applications and the actual data processing of the hardware.
BIF713 Introduction to Linux. Agenda Getting Started: Using Linux Unix and Linux - Structure / Features Elements of the Linux Philosophy Linux Command.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
Learning Unix/Linux Based on slides from: Eric Bishop.
A LECTURE NOTE.
A “Quick-Start” into the UNIX Operating System
UNIX I Unix Fundamentals 8/31/
Basic Network (the Internet) Applications
Unix Shells.
Some Linux Commands.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands:
Welcome to CSCI 230! Problem Solving using C
Creating Programs on UNIX
Chapter 1 The Essence of UNIX and Linux
Unix : Introduction and Commands
Linux Professor Sabol.
Presentation transcript:

Introduction to UNIX

2 History of Unix  1960 Software based on Hardware Limits  1969 Ken Thompson Develop a Better Programming Environment  1971 New Operating System - Unix Dennis Richie

3 History of Unix  Digital’s Role in Expanding Unix Introduced new PDP Computers 80% of all Colleges used DEC PDPs Included Unix  Unix Continues to Evolve Colleges & Universities AT&T Bell Labs

4 History of Unix  Problem Need to Port Unix to Other Platforms Unix written in Assembly Language  Solution Rewrite Unix Using `B` `B` Limitations `B` Required Modifications to Write Unix

5 History of Unix  `B` Programming Language Extensive Changes Made For Unix  Renamed to `C` High & Low Level Programming Language Increased Portability Easier to Improve & Enhance Unix

6 History of Unix  1983 AT&T Announces Unix System V 1st Commercial version of Unix Unix Improvements Continue…  Unix System V Interface Definition (USVID) Clearly Defines Unix Interface Opens Unix Development

7 Using Unix  Graphical Interface Xwindows  Command Line Command Prompt

8 Unix Philosophy  Simple and Easy to Use  Make Each Program Do One Thing Well  Expect the Output of One Program To Be The Input Into Another  Build New Programs to do the Job  Small is Beautiful

9 Accessing Unix  Connect to Unix  Login  Password  Perform Necessary Work  Logout

10 Important Usage Notes  Return Key  ESC (Escape Key)  Ctrl (Control Key)  Unix Is Case Sensitive Upper Case and Lower Case Are Different! Use Lower Case

11 Unix Login  `$` Unix Command Prompt  Ready For Next Command Red Hat Linux release 4.2 (Biltmore) Kernel on an i586 login: rdefe Password: $ Red Hat Linux release 4.2 (Biltmore) Kernel on an i586 login: rdefe Password: $

12 Unix Login  Login incorrect Incorrect Login name? Incorrect Password? Red Hat Linux release 4.2 (Biltmore) Kernel on an i586 login: rdefe Password: Login incorrect login: rdefe Password: $ Red Hat Linux release 4.2 (Biltmore) Kernel on an i586 login: rdefe Password: Login incorrect login: rdefe Password: $

13 Unix Login  `$` = Command Prompt = Unix Shell Bourne Shell C Shell Korn Shell Bash Shell Red Hat Linux release 4.2 (Biltmore) Kernel on an i586 login: rdefe Password: $ Red Hat Linux release 4.2 (Biltmore) Kernel on an i586 login: rdefe Password: $

14 Changing Your Password  Select a ‘Good` Password 7 Characters, Include Non-Alphas $ passwd Password: New password: New password (again): Password changed passwd: all authentication tokens updated successfully $ exit Login: $ passwd Password: New password: New password (again): Password changed passwd: all authentication tokens updated successfully $ exit Login: Cntrl-D can also be used to logout

15 Changing Your Password  When The Command Doesn’t Work Too Short or Too Simple $ passwd Password: New password: it's WAY too short New password: Password change aborted passwd: Authentication token manipulation error $ $ passwd Password: New password: it's WAY too short New password: Password change aborted passwd: Authentication token manipulation error $

16 Correcting Typing Errors  Backspace Key Cntrl-h is also backspace  Cntrl-c Ignore current line, return to $ Stop Currently Running Command

17 Unix Commands  Making a Mistake The Command Interpreter `bash` Responds `Command not found` $ x bash: x: command not found $ $ x bash: x: command not found $

18 Unix Commands  date Current System Date & Time Note: No Arguments & No Options  Argument Extra Information Passed along to the command  Option Causes the command to do something different $ date Mon May 25 12:44:04 EDT 1998 $ $ date Mon May 25 12:44:04 EDT 1998 $

19 Unix Commands  cal Displays Current Month $ cal January 1996 S M Tu W Th F S $ $ cal January 1996 S M Tu W Th F S $

20 Unix Commands  cal [month] [year] Use Arguments to Display a specific Month & Year $ cal October 1996 S M Tu W Th F S $ $ cal October 1996 S M Tu W Th F S $ Arguments

21 Unix Commands  cal [year] Display An Entire Year Use Cntrl-S/Cntrl-Q to Pause/Unpause Screen $ cal Jan Feb Mar S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S …more... $ cal Jan Feb Mar S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S …more...

22 Unix Commands  who Display Current Users Note: No Options & No Arguments $ who rdefe pts/2 Aug 23 20:25 jsmith pts/5 Aug 23 22:30 rdefe pts/1 Aug 23 13:53 $ $ who rdefe pts/2 Aug 23 20:25 jsmith pts/5 Aug 23 22:30 rdefe pts/1 Aug 23 13:53 $

23 Unix Commands  who -q option  Display a Quick List of Current Users $ who -q rdefe jsmit sbrow users=3 $ $ who -q rdefe jsmit sbrow users=3 $ Option

24 Unix Commands  mail [login id] Sending Unix Mail $ mail johnd Subject: Test Hello there This is a test of my first unix $ $ mail johnd Subject: Test Hello there This is a test of my first unix $ Add additional logins here To send, hit Cntrl-D on a Blank Line Can only correct the line your currently on

25 Unix Commands  mail Reading Unix Mail $ mail Mail version 5.5-kw 5/30/95. Type ? for help. "/var/spool/mail/rdefe": 1 message 1 unread >N 1 Sat Aug 23 22:54 12/402 job info U 2 Tue Apr 12 19:51 60/1000 Re:passwd 3 Sat Mar 12 14:59 15/348 mail 4 Wed Feb 16 16:41 9/261 trouble & $ mail Mail version 5.5-kw 5/30/95. Type ? for help. "/var/spool/mail/rdefe": 1 message 1 unread >N 1 Sat Aug 23 22:54 12/402 job info U 2 Tue Apr 12 19:51 60/1000 Re:passwd 3 Sat Mar 12 14:59 15/348 mail 4 Wed Feb 16 16:41 9/261 trouble & Mail Prompt - Enter Mail Commands

26 Unix Commands  Reading Mail + (Enter Key) - Display Next Message - Display Previous Message 3 To Display Message 3 $ mail Mail version 5.5-kw 5/30/95. Type ? for help. "/var/spool/mail/rdefe": 1 message 1 unread >N 1 Sat Aug 23 22:54 12/402 job info U 2 Tue Apr 12 19:51 60/1000 Re:passwd 3 Sat Mar 12 14:59 15/348 mail 4 Wed Feb 16 16:41 9/261 trouble & $ mail Mail version 5.5-kw 5/30/95. Type ? for help. "/var/spool/mail/rdefe": 1 message 1 unread >N 1 Sat Aug 23 22:54 12/402 job info U 2 Tue Apr 12 19:51 60/1000 Re:passwd 3 Sat Mar 12 14:59 15/348 mail 4 Wed Feb 16 16:41 9/261 trouble &

27 Unix Commands  mail commands h - Display Mail Header Information s [message list] filename - Save message to a file d [message list] - Delete message u [message list] - Undelete message R - Reply to Author r - Reply to All mail [login] - Send

28 Unix Commands  mail commands x - Exit without saving changes  No messages deleted q - Exit save changes  Deleted messages are deleted  Read moved to a file named mbox $ mail Mail version 5.5-kw 5/30/95. Type ? for help. "/var/spool/mail/rdefe": 1 message 1 unread >N 1 Sat Aug 23 22:54 12/402 job info U 2 Tue Apr 12 19:51 60/1000 Re: asswd 3 Sat Mar 12 14:59 15/348 mail 4 Wed Feb 16 16:41 9/261 trouble & $ mail Mail version 5.5-kw 5/30/95. Type ? for help. "/var/spool/mail/rdefe": 1 message 1 unread >N 1 Sat Aug 23 22:54 12/402 job info U 2 Tue Apr 12 19:51 60/1000 Re: asswd 3 Sat Mar 12 14:59 15/348 mail 4 Wed Feb 16 16:41 9/261 trouble &

29 Unix Commands  Using mail to read saved mail files $ mail -f letters Mail version 5.5-kw 5/30/95. Type ? for help. "letters": 1 message 1 unread > 1 Sat Aug 23 22:54 12/402 job 2 Tue Apr 12 19:51 60/1000 lunch & $ mail -f letters Mail version 5.5-kw 5/30/95. Type ? for help. "letters": 1 message 1 unread > 1 Sat Aug 23 22:54 12/402 job 2 Tue Apr 12 19:51 60/1000 lunch & -f followed by the file name $ mail -f Reads the file mbox when the file argument is left out

30 Unix Commands  write [login] Send a message to the screen someone’s screen $ write jsmith This is a test of the write command $ $ write jsmith This is a test of the write command $ Press Cntrl-D to return to a $ prompt $ Message from on ttyp0 at 22:59... This is a test of the write command $ Message from on ttyp0 at 22:59... This is a test of the write command jsmith’s terminal

31 Unix Commands  mesg Turn online messages on/off $ mesg is y $ mesg n $ mesg is n $ mesg is y $ mesg n $ mesg is n Display current message status Turn messages off

32 Unix Commands  man [unix command] On-line Reference Manual Spacebar - Display Next Pageb - Previous Page q - Quit $ man who WHO(1) NAME who - show who is logged on SYNOPSIS who [-imqsuwHT] [--count] [--idle] [--heading] [--help] [--message] [--mesg] [--version] [--writable] [file] [ami] DESCRIPTION This documentation is no longer being maintained and may be inaccurate or incomplete. The Texinfo documentation is : $ man who WHO(1) NAME who - show who is logged on SYNOPSIS who [-imqsuwHT] [--count] [--idle] [--heading] [--help] [--message] [--mesg] [--version] [--writable] [file] [ami] DESCRIPTION This documentation is no longer being maintained and may be inaccurate or incomplete. The Texinfo documentation is :