Introduction.

Slides:



Advertisements
Similar presentations
Some history PDP versions BSD/Version 7 split VAX virtual memory implementations End of line 4.4 BSD System V merges Modern versions OSF/1, Solaris, HPUX.
Advertisements

UNIX Introduction. Computer Center, CS, NCTU 2 UNIX History (1)  Before Multics there was chaos, and afterwards, too Multics:  Multiplexed information.
COMP5102/5122 Lecture 1 Operating Systems (OS) Introduction phones off (please)
Operating Systems - Introduction S H Srinivasan
Introduction to Course Content. Computer Center, CS, NCTU 2 Outline  What SA Should do.  What You can expect to learn from this course.  What attitude.
CMPE 151: Network Administration Spring Class Description Focus: system and network administration. Sequence of exercises. E.g., installing/configuring.
UNIX/Linux System Programming Jordan University of Science and Technology History.
A crash course in njit’s Afs
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
Chapter 10 – UNIX. History In late 1960s, two employees of Bell Labs (Ken Thompson & Dennis Ritchie) designed a new operating system to overcome the constraints.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
System Administration. Computer Center, CS, NCTU 2 What System Administrator Should do? (1)  Ordinary list Install new system, programs and OS updates.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
Introduction to Unix Administration Objectives –to identify the basic concepts of Unix administration Contents –history of Unix –unix vendors and standards.
System Administration. Computer Center, CS, NCTU 2 What System Administrator Should do? (1)  Ordinary list Install new system, programs and OS updates.
Unix Basics Chapter 4.
Operating systém GNU Linux. History First computers –WW II The Bomb (Alan Turing) Colosus (Thomas Flowers)
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
Natawut NupairojAssembly Language1 Unix Survival Guide.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
CS 390 Unix Programming Environment Summer Suchindra Rengan - CS3902 Course Details Instructors Suchindra Rengan – ‘sachin’ ( Section 001)
Agenda Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Review next lab assignments Break Out Problems.
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Operating System Part II: Introduction to the Unix Operating System (The Evolution of Unix)
Guide To UNIX Using Linux Third Edition Chapter 8: Exploring the UNIX/Linux Utilities.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
UNIX Introduction. Computer Center, CS, NCTU 2 UNIX History  Before Multics there was chaos, and afterwards, too Multics:  Multiplexed information and.
History of UNIX a short version CSCI 333 August 31, 2011.
Just Enough Unix, Chapter 1
 Before Multics there was chaos, and afterwards, too › Multics:  Multiplexed information and Computing Service  1965 ~ 1969  Bell labs, GE, MIT 
CSCI 330 UNIX and Network Programming Unit I Introduction.
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
Linux Commands C151 Multi-User Operating Systems.
Chapter 9: Networking with Unix and Linux. Objectives: Describe the origins and history of the UNIX operating system Identify similarities and differences.
Introduction to UNIX CS 2204 Class meeting 1 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
1 Introduction to Unix. 2 What is UNIX?  UNIX is an Operating System (OS).  An operating system is a control program that helps the user communicate.
Chapter Eight Exploring the UNIX Utilities. 2 Lesson A Using the UNIX Utilities.
WHY AN OPERATING SYSTEM (OS) OS interacts with hardware and manages programs. Programs not expected to know which hardware they will run on. Must be possible.
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.
OPS224 Operating Systems - Unix Instructor: MURRAY SAUL.
Laboratory 1.2a1 First steps with Unix - Lab Boris Steipe Department of Biochemistry Department.
UNIX and SOFTWARE TOOLS Dr. Tran, Van Hoai Faculty of Computer Science and Engineering HCMC Uni. of Technology
UDel CISC361 Study Operating System principles - processes, threads - scheduling - mutual exclusion - synchronization - deadlocks - memory management -
Operating Systems Introduction Moti Geva
Getting Started with Linux
Overview of Linux Fall 2016 Dr. Donghyun Kim
A LECTURE NOTE.
Class Projects and Environment
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Chapter 11 Command-Line Master Class
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
UNIX Introduction History Main Features UNIX Operating System
System Administration Practice
COSC 350 System Programming
The Linux Operating System
1171: Computer Network Management Course Introduction
Unix : Introduction and Commands
CSE 303 Lecture 1 introduction to Linux/Unix environment
UNIX System Protection
UNIX Introduction.
Operating Systems Lecture 1.
Computer System Administration
System Administration Practice
Computer Network Administration
Computer System Administration
The UNIX Time Sharing System
Presentation transcript:

Introduction

Outline What SA Should do. What You can expect to learn from this course. What attitude you should take. Syllabus Course Info. Content Grade Policy Am I OK to take this course? UNIX Introduction

What System Administrator Should do? (1) Ordinary list Install new system, programs and OS updates Monitoring system and trying to tune performance Adding and removing users Adding and removing hardware Backup and Restore Security SA 要做的事情並沒有因為 PC 進步而減少

What System Administrator Should do? (2) Non-technique list Helping users Maintaining documentation Moving furniture Burning your lung Good communication and memorization

What System Administrator Should do? (3) The best words to describe the job Thankless job. System administration is like keeping the trains on time; no one notices except when they’re late.

Philosophy of system administration Know how things really work. Plan it before you do it. Make it reversible Make changes incrementally. Test before you unleash it .

Flow of Change

What you can learn in this course? Mostly, the skill to be a candidate of system administrator Secondary, information about csie computer center

Attitude Attend every class Do every exercise As early as possible On your own Read book at least 6 hours every week Collect information on the internet

Syllabus http://www.csie.nctu.edu.tw/~tytsai/course/sysadm/ Instructor: 蔡宗易 tytsai@csie.nctu.edu.tw Time: Mon IJK (PM 6:30 ~ 9:20) Textbook: UNIX System Administration Handbook," 3rd ed.

Syllabus - Content We will cover the following chapters in this semester: Chapter 1 ~ 12 Chapter 13, 17, 18, 22, 23, 26 Shell Programming The following chapters is covered in the next semester: Chapter 14, 15, 16, 19, 20 News Server SNMP Perl Programming

Syllabus – Grade Policy Mid 30 ~ 35% 2004/11/15 Final 2005/01/03 Exercise 35 ~ 45% No Delay Work We will have probably 9 exercises We may have some bonus exercises Grade will not be normalize. Why? Do exercise gets points. Study book gets points. This might be discussed again in class when the list is ascertained.

Finally, Am I OK to take this course? Are you willing to devote yourself to exercise? Yes! Please come Are you newbie in this area? Yes!? It’s ok, Please come Do you take more than 3 major courses? Yes!??? It is quite dangerous, but I can not stop u

UNIX History (1) Before Multics there was chaos, and afterwards, too Multiplexed information and Computing Service 1965 ~ 1969 Bell labs, GE, MIT Ken Thompson, Dennis Ritchie

UNIX History (2) From Multics to something else Ken Thompson first written a game called “Space Travel” on Multics on GE machine in 1969. Implement “Space Travel” on PDP-7 again. Thompson began to design the shell, the editor and the assembler on PDP-7. In 1970, Brian Kernighan suggested the name “UNIX”.

UNIX genealogy AT&T UCB IBM、DEC、HP Version 7~10 System III ~ V BSD OSF/1

UNIX versions

man pages (manual) Contain descriptions of Individual command. % man cp File format. % man rc.local Library routines. % man strcpy

man command Command Man pages organization % man [-s section] title (AT&T) % man [section] title (BSD) % man printf (bash printf command) % man 3 printf (C Standard printf func.) % man –k exit (keyword search) Man pages organization AT&T BSD Contents 1 User-Level commands and applications 2 System calls and kernel error code 3 Library calls 4 5 Standard file format 7 Miscellaneous files and documents 6 Games and demonstrations Device Drivers and network protocols 1m 8 System administration commands 9 Obscure kernel specs and interfaces

UNIX Concepts - ID User ID, Group ID Super user Other Important Users % id tytsai uid=11896(tytsai) gid=200(dcp) groups=200(dcp) Super user root uid=0(root) gid=0(wheel) groups=0(wheel), … Other Important Users daemon: owner of unprivileged software bin: owner of system commands sys: owner of the kernel and memory images nobody: owner of nothing

Unix Concept - Files % ls –l d rwxr-xr-x 22 tytsai dcp 512 Sep 1 18:17 public_html/ File type File access mode # of inodes File user owner File group owner File size File last modify time File name

File types File types file command determine file type % file .tcshrc  .tcshrc: ASCII text /usr/share/misc/magic symbol File types b Block device file c Character device file d Directory l symbolic Link s Socket p named Pipe - Regular file

File Access Mode rwx r-x r-x chmod command User, group, other privileges chmod command % chmod access-string file % chmod u+x test.sh % chmod go-w .tcshrc % chmod u+w,r-w hehe haha % chmod –R 755 public_html/

File Protection Command Minimum Access Needed cd /home/test x On file itself On directory file is in cd /home/test x ls /home/test/*.c r ls –s /home/test/*.c rx cat runme cat >> runme w run-binary run-script rm rumme wx

UNIX Concept - Process Process Life Cycle A working program fork, exec foreground remain attached to the terminal background can not communicate with terminal Process Life Cycle fork, exec

Watching Process ps command ps –aux, ps –auxww USER, PID, %CPU, %MEM, VSZ RSS, TTY, STAT, START, TIME, COMMAND D: in Disk I: Idle R: Running S: Sleeping T: sTopped Z: Zombie man ps…

Kill Process kill command % kill –[signal_name] pid % kill –[signal_number] pid % kill –HUP 88192 (hang up, reset) % kill -1 88192 % kill –TERM 12345 (software termination) % kill –15 12345 % kill –KILL 3456 (kill program at OS level) % kill -9 3456

CSIE workstation group FreeBSD ccbsd1 ~ ccbsd12, ccbsd18 Linux linux1 ~ linux20 Solaris ccsun1 ~ ccsun7 SunOS ccsun30, ccsun31, ccsun32

Thank you! Q & A