2INC0 Operating Systems Introduction to Linux

Slides:



Advertisements
Similar presentations
Introduction to Linux command line for bioinformatics Wenjun Kang, MS Jorge Andrade, PhD 6/28/2013 Bioinformatics Core, Center.
Advertisements

Introduction of Unix/Linux Compiled by Anant Vishnoi.
1 Introduction to UNIX Ke Liu
Linux+ Guide to Linux Certification, Second Edition
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
Unix Presentation. What is an Operating System An operating system (OS) is a program that allows you to interact with the computer -- all of the software.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
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.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Computational physics PY2050 Course Details:
Introduction to Linux Operating System Tutorial 1
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
Lesson 1. PC vs. Multi-user System  Personal Computer – each user gets his/her own processor (or multicore processor).  Multi-user system – The processor,
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
COSC513 Project Linux Features Instructor: Prof. Mort Anvari Student: Yingfeng Luo ID: #
Unix Basics Chapter 4.
CENT 305 Information Systems Security Linux Introduction.
Introduction to Computer Organization & Systems Topics: Intro to UNIX COMP John Barr.
Introduction to Interactive Media Interactive Media Tools: Software.
File Permissions. What are the three categories of users that apply to file permissions? Owner (or user) Group All others (public, world, others)
Linux+ Guide to Linux Certification, Second Edition
Linux overview. Architecture Kernel File system Shell: Korn, Bourne, C, Bash X Windows: Motif, Open Look, X.OrgX.Org Desktop: Gnome, KDE,etc.
1 N305 C Programming. 2 Objectives for the Lab ä Learn problem solving strategies ä Achieve intermediate knowledge of C Programming Language ä Gain experience.
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
Chapter Two Exploring the UNIX File System and File Security.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Guide to Linux Installation and Administration, 2e1 Chapter 7 The Role of the System Administrator.
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.
UNIX (Linux) Introduction Module-1. OS Kernel In computing, the kernel is the central component of OS. It is a bridge between applications and the actual.
Unix/Linux cs3353. The Shell The shell is a program that acts as the interface between the user and the kernel. –The shell is fully programmable and will.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
INCS Virtual Data Center Security using Linux.
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
Linux file system "On a UNIX system, everything is a file; if something is not a file, it is a process." Sorts of files (on a Linux system) Directories:
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
Linux+ Guide to Linux Certification, Third Edition
Linux+ Guide to Linux Certification, Third Edition
Introduction to Programming Using C An Introduction to Operating Systems.
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
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.
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.
A Brief Overview of Unix Brandon Bohrer. Topics What is Unix? – Quick introduction Documentation – Where to get it, how to use it Text Editors – Know.
Announcements Assignment 1 due Wednesday at 11:59PM Quiz 1 on Thursday 1.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
 Prepared by: Eng. Maryam Adel Abdel-Hady
Embedded Software Design Week II Linux Intro Linux Kernel.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
August 31, 2010Joris Geurts1 2IN05 Operating Systems Introduction to Linux More information for this course:
UNIX  Portable (common to many computer architectures), multitasking, multi-user operating system  Introduced by Bell labs in mid-1960’s  Thus, much.
1 2INC0 Operating Systems practical (part 1) Joris Geurts.
Using Linux Kaya Oğuz Room: 310.
Bash Scripting CIRC Summer School 2016 Baowei Liu CIRC Summer School 2016 Baowei Liu.
Linux 101: Introduction To Linux Purdue Linux Users Group Speaker: Thor Smith.
By Jonathan Rinfret UNIX/LINUX By Jonathan Rinfret
Overview of Linux Fall 2016 Dr. Donghyun Kim
UNIX To do work for the class, you will be using the Unix operating system. Once connected to the system, you will be presented with a login screen. Once.
CSC227: Operating Systems
Development Environment Basics
CIRC Winter Boot Camp 2017 Baowei Liu
Andy Wang Object Oriented Programming in C++ COP 3330
Linux file system "On a UNIX system, everything is a file;
The Linux Operating System
Introduction to UNIX.
C Programming Lecture Series
Introduction to Linux Week 0 - Thursday.
Introduction to Linux Prof. Ikjun Yeom
Presentation transcript:

2INC0 Operating Systems Introduction to Linux Joris Geurts

practical schedule week 1: introduction Linux introduction C practical next weeks: explanation assignment 1/2/3

What is Linux?

characteristics developed in 1970's by Ritchie and Thomson multi user multi tasking

advantages different hardware: IBM, Mips, Intel, ARM simple structure elaborate software tooling command interpreter: the SHELL principles applied in a consequent way

disadvantages cryptic names, e.g.: cat filename cryptic syntax: \ / * $ " ' ` ~ e.g.: grep "*.$1" `pick *.c` | lpr many members of the family, and they differ (Debian, Red Hat, Ubuntu, OpenSuse, Fedora, etc.)

Unix family tree August 31, 2010 Joris Geurts

Some Unix characteristics ‘Everything is a file’ including screen, mouse, hard disk etc. All (system) commands are just applications including login procedure, file and directory management, large and powerful set of commands The central role of the shell (command interpreter) typing rather than clicking Built-in management of different users multi-tasking and multi-user

Linux take-off August 31, 2010 Joris Geurts

Linux family tree

Linux distributions (600+) kernel + libraries + software applications August 31, 2010 Joris Geurts

Linux desktop environments Unity KDE GNOME

Using Linux: virtualization VMware Linux Ubuntu image

commands in a shell interaction with the OS, e.g.: ls date whoami cal

Command summary Joris Geurts Commands (find out their functionality) ls mkdir, cp, mv, which, chmod, echo, grep, pwd, cat, ps man input/output redirect ls > file command1 | command2 | command3 cat /etc/passwd | sort | less less /etc/passwd editors kate, gedit, vi (to be installed) emacs, joe, nano, eclipse Joris Geurts

Practical assignments (shell) Startup and login to the system Username: student Password: student Create a directory in Your home directory (/home/student/) The temporary directory (/tmp/) The root directory (/) Copy the password file to your home directory Search where the ls binary is located Determine its owner and permissions Record this information in a file Do a tutorial Install Dropbox (via Software Center) Joris Geurts

C programming language Language of the Linux kernel and many of the applications Low-level No memory protection No garbage collection No decent string type Direct memory pointer manipulation High execution performance possible At the cost of a longer development time 17

importance of C source: www.langpop.com

Hello World see http://www.fhict.nl/docent/downloads/2INC0/ compile and run $ gcc -o helloworld helloworld.c $ ./helloworld printf int i = 73; printf ("Hello World\n"); printf ("decimal display: %d\n", i); printf ("hexadecimal display: %04x\n", i); debugger… Joris Geurts

Debugging with nemiver sudo apt-get install nemiver (only once; already done) gcc -g –Wall –o myapp myapp.c nemiver myapp & set breakpoints run, step, etc. inspect variables Joris Geurts 20

Pointers in C roughly said: C pointer = Java reference C struct = Java object with public variables, without methods Practical: see the comments in helloworld.c for extra assignments Joris Geurts 21