Linux Basics Part 1 OSU Picture © Greg Keene. Introductions Lance Albertson Greg Lund-Chaix source:

Slides:



Advertisements
Similar presentations
Chapter 5 Controlling Processes Xiaoli Jiao 6/8/99.
Advertisements

Using tcpdump. tcpdump is a powerful tool that allows us to sniff network packets and make some statistical analysis out of those dumps. tcpdump operates.
Essential System Administration 3rd Edition Chapter 2 The Unix Way(Cont.) University Of Palestine.
1 Introduction to UNIX Ke Liu
CS 497C – Introduction to UNIX Lecture 26: - The Process Chin-Chih Chang
Controlling Processes & Periodic Processes WeeSan Lee
Linux+ Guide to Linux Certification, Second Edition
Process Process: the UNIX abstraction of a stand-along computer that manages resources (memory, CPU, I/O resources) comprising a running program. Processes.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
UNIX Processes. The UNIX Process A process is an instance of a program in execution. Created by another parent process as its child. One process can be.
UNIX System Administration Handbook Chapter 4. Controlling Processes 3 rd Edition Evi Nemeth et al. Li Song CMSC691X Summer 2002.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 10 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
The Network Management Lab pc pc pc pc pc Virtual Servers Your Laptop.
V Avon High School Tech Crew Agenda Old Business –Delete Files New Business –Week 9 Topics: Coming up: –Yearbook Picture: Feb 7 12:20PM.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
workshop eugene, oregon UNIX ™ /Linux Overview Unix/IP Preparation Course July 19, 2009 Eugene, Oregon, USA
Unix System Administration Rootly Powers Chapter 3.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
CENT 305 Information Systems Security Linux Introduction.
A few Linux basics Network Monitoring & Management.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Working with Ubuntu Linux Track 2 Workshop June 2010 Pago Pago, American Samoa.
Chapter 2: Getting Started Logon to Logout. In this chapter … Logging on The Shell Superuser Getting Help Logging off.
Managing Processes CSCI N321 – System and Network Administration Copyright © 2000, 2011 by Scott Orr and the Trustees of Indiana University.
Introduction to Linux ( I ) Sidney Fong 4 th Feb 2006.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
PacNOG 6: Nadi, Fiji UNIX ™ /Linux Overview Hervey Allen Network Startup Resource Center.
UNIX ™ /Linux Overview Unix/IP Preparation Course May 23, 2010 Kigali, Rwanda.
Linux+ Guide to Linux Certification, Third Edition
UNIX ™ /Linux Overview Unix/Linux Preparation Course June 27, 2010 Pago Pago, American Samoa.
Linux Introduction What is Linux? How do you use it?
Linux+ Guide to Linux Certification, Second Edition Chapter 10 Managing Linux Processes.
The kernel considers each program running on your system to be a process A process lives as it executes, with a lifetime that may be short or long A process.
INCS Virtual Data Center Security using Linux.
Scis.regis.edu ● CS 468: Advanced UNIX Class 4 Dr. Jesús Borrego Regis University 1.
Review Please hand in any homework and practicals Vim Scripting Inter-device communication.
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.
 Linux Mint is a computer operating system designed to work on most modern systems, including typical x86 and x64 PC’s. Linux Mint can be thought of.
Linux Commands C151 Multi-User Operating Systems.
Course materials may not be reproduced in whole or in part without the prior written permission of IBM. 5.1 © Copyright IBM Corporation 2008 Unit 9 Working.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop I Introduction to Linux Professional Training Academy.
ACCESS CONTROL. Components of a Process  Address space  Set of data structures within the kernel - process’s address space map - current status - execution.
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.
CSC414 “Introduction to UNIX/ Linux” Lecture 3
PROCESSES We will learn more about: ¨ Multi-user processing and multi −tasking ¨ Multi-user processing and multi −tasking ¨ Process types ¨ Process types.
Unix System Administration Controlling Processes Chapter 5.
Agenda The Bourne Shell – Part I Redirection ( >, >>,
Linux 101 Mark C. Ballew ACES Program Desert Research Institute.
Course : PGClass : MCA Subject: Operating SystemSub.Code : 3CT11 Staff Name : S.SomasundaramYear & Sem : II nd & III rd.
SYSTEM ADMINISTRATION PART I by İlker Korkmaz and Kaya Oğuz
Chapter 11 Command-Line Master Class
Unix/IP Preparation Course
Welcome to Linux Chap#1 Hanin Abdulrahman.
Rootly Powers and Controlling Processes
Basic Commands ls cp ls –l (in detail format) echo ls –a
Linux Introduction ITIS 2110.
The Linux Operating System
Our chosen platform is:
Structure of Unix OS.
Unix : Introduction and Commands
Understanding Linux and the BASH shell v
Chapter Introduction 3.2 The UNIX Model of Ownership
Linux Shell Script Programming
Controlling Processes
Processes – Part I.
Welcome to Linux Chap#1 Hanin Abdulrahman.
Process Management and System Monitoring
Welcome to Linux Chap#1.
Presentation transcript:

Linux Basics Part 1 OSU Picture © Greg Keene

Introductions Lance Albertson Greg Lund-Chaix source:

Goals for this Talk Linux Overview Linux distributions System overview More detail: permissions, processes, package management, services

Linux Overview Unix-like operating system Free, open source software Runs servers, desktops, phones, tablets, network equipment and more.

Linux Statistics Supercomputers More than 90% of the top 500 Number of distributions More than 350 Number of developers 1,000 developers contributed in 2010 Number of commits to linux kernel last year 195,579 commits in 2010

Linux Distributions Packaging of applications around a Linux kernel Different distributions have different target audiences Distribution lifecycles vary source:

Common Linux Distributions Fedora / RedHat Enterprise / CentOS Debian / Ubuntu / Mint Gentoo / Arch source:

Choosing a Distribution Server/desktop/other Existing infrastructure Admin experience Support contract Release supported lifetime

Linux System Overview source: wikipedia

bash: Bourne Again SHell Default shell on Linux Originally based off of the Bourne Shell (sh) Learn it, live it, love it

Basic bash commands ls *.txt file1.txt file2.txt file3.txt ls *.txt > list for i in `cat list`; do cp "$i" "$i".bak ; done ls *.txt* file2.txt file1.txt.bak file2.txt file2.txt.bak file3.txt file3.txt.bak

Documentation Most packages include man pages for documentation More extensive than the - -help flag on CLI Stored in different 'sections' Picture © Flickr user 'bobeirasa'

Users and Groups Users and groups are stored in /etc/passwd and /etc/group Each user name and group name is linked to a number (UID/GID) UID 0 = root 0-99 typically used for system/service accounts

File Permissions Three roles: user (file owner), group, other (“world”) Three permissions: read, write, execute Picture © Flickr user 'amagil'

root user root user = full access to everything on the system sudo, su – change user Don't use root user unless you have to! Comic:

Components of a process PID: Process ID number PPID: Parent PID UID & EUID: real & effective user ID GID & EGID: real & effective group ID Niceness Control terminal

Signals Sent to procs as communication Sent to terminal driver to kill, interrupt, or suspend Sent by admin to kill Sent by kernel Picture © Flickr user 'atomicshark'

Signals: Types you should know HUP, INT, QUIT, KILL, BUS, SIGV, TERM, STOP, TSTP, CONT, WINCH, USR1, USR2 Can catch, block, or dump core? BUS & SEGV – error signals KILL & STOP – cannot be blocked WINCH – term emulators

ps: monitor processes primary tool for monitoring processes differ between UNIX's show PID, UID, priority, control term, memory, status, etc complex over the years, archaic pstree

top: monitor in real-time “big picture” in real time refreshes every 2-3 seconds kill, renice, sort, memory, etc. htop – even better o color, prettier, more configurable Picture © United Artists from 'Hackers'