Transcript pptx

Introduction
IT244 - Introduction to Linux / Unix
Instructor: Bo Sheng
1
General Information
• Location and Time
– S-3-143, Mon & Wed, 4:00 ~ 5:15pm
– Door code: 261359*
• Office Hours
– Science Center, S-3-167, Mon & Wed, 2 ~ 4pm
– TA office hours: TBD
• Course web page
– http://www.cs.umb.edu/~shengbo/teaching/it244.html
2
General Information
• Grading Policy
– 8~10 homework/project assignments
– Mid-term and final exams
– Homework (60%) + Mid-term (15%) + Final (25%)
3
General Information
• Course Content
– Exclude Chapter 7, 9, 16, 17
–
–
–
–
–
Linux/Unix commands and utilities
Shell (Bourne Shell)
File systems
Text editor (vim)
Scripting
• Shell scripting, awk, sed, perl
– Introductory level coverage
4
General Information
• Course Content
– Command-line interface (CLI)
– No graphic user interface (GUI)
5
General Information
• Course Content
–
–
–
–
Hands-on practice (lab / home)
Lecturing style (slides + demo + practice)
Login to a dedicated server from any computer
Unix account and register for this course
• University’s Policies
– Plagiarism, Honor code
– Emergency
– Disability service
6
Overview of Linux/Unix
• Why we learn Linux/Unix?
7
OS Platform Statistics (Web)
http://www.w3schools.com/browsers/browsers_os.asp
8
Web Server Survey
https://secure1.securityspace.com/s_survey/data/201612/index.html
https://secure1.securityspace.com/s_survey/data/man.201612/apacheos.html
4.30% of Apache running on Windows servers
9
Top 500 Supercomputers
http://top500.org/statistics/list/
OPERATING
SYSTEM FAMILY
Linux
Unix
COUNT
SYSTEM SHARE (%)
494
6
98.8
1.2
RMAX (GFLOPS)
RPEAK (GFLOPS)
CORES
419,253,297
1,868,442
640,067,791
2,215,095
29,226,383
76,128
10
Overview of Linux/Unix
• Why we learn Linux/Unix?
– Job prospects
• Proficiency with Linux/Unix
• Basic knowledge of scripting
– Basics for other courses
11
Overview of Linux/Unix
• Why we learn Linux/Unix?
• What is Linux/Unix?
12
Operating Systems
System calls
e.g., open(), read()
o Resource management
o Hardware abstraction
o User interface
13
History of Linux / Unix
• Timeline http://www.levenez.com/unix/
• Milestones
–
–
–
–
–
1969: Unix starts at Bell Labs
1971: First edition of Unix
1977: 1BSD from Berkeley
1983: GNU project (GPL)
1991: Linux is announced
Hello everybody out there using minix I'm doing a (free) operating system (just a hobby, won't be
big and professional like gnu) for 386(486) AT clones. …
PS. Yes – it's free of any minix code, …
—Linus Torvalds
14
Linux / Unix Operating Systems
http://www.kernel.org
15
Some Current Distributions
16
Overview of Linux/Unix
• Why we learn Linux/Unix?
• What is Linux/Unix?
• Features of Linux/Unix
– FREE (no charge, open source)
– Multiuser
– Multitasking
– Multiplatform (portable)
17
Overview of Linux/Unix
•
•
•
•
Why we learn Linux/Unix?
What is Linux/Unix?
Features of Linux/Unix
Shell
– Command interpreter
– ‘Programming language’ with no compilation
– Bash, Tcsh, Dash, Zsh, …
18
Overview of Linux/Unix
•
•
•
•
•
Why we learn Linux/Unix?
What is Linux/Unix?
Features of Linux/Unix
Shell
File System Structure
19
Overview of Linux/Unix
20
Practice
• Login to lab computers
• Download PuTTY client from the course
web page
http://www.cs.umb.edu/~shengbo/teaching/it244.html
21
Unix Account
• If you haven’t got an account
– http://www.cs.umb.edu/sp/resources/other/faqs/#FAQ02
• SSH (Secure Shell)
– Use terminal (Linux/Mac OS clients)
– Use other software tool (Windows client)
• PuTTY
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
22
Unix Account
• If you haven’t got an account
23
Unix Account
• If you haven’t register you account with this class
24
Unix Account
• If you haven’t register you account with this class
25
Login to Server
• Server (hostname):
• it244a.cs.umb.edu
• it244b.cs.umb.edu
• SSH (Secure Shell, no more telnet)
– Use terminal (Linux/Mac OS clients)
– Use other software tool (Windows client)
26
Login to Server
• Server (hostname):
• it244a.cs.umb.edu
• it244b.cs.umb.edu
• SSH (Secure Shell)
– Use terminal (Linux/Mac OS clients)
– Use other software tool (Windows client)
• PuTTY
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
• Instructions on course web page
27
Login to Server (Windows)
• PuTTY
28
Login to Server (Windows)
• PuTTY
29
Login to Server
• SSH (Secure Shell)
– Use a terminal (Linux/Mac OS clients)
– ssh username@hostname
– ssh –l username hostname
e.g.,
– ssh [email protected]
– ssh –l shengbo it244a.cs.umb.edu
30
Login to Server (Linux / Mac)
• Terminal
31
Login to Server (Linux / Mac)
• Terminal
32