Introduction to Linux David E. Douglas University Professor—Information Systems Walton College of Business

Slides:



Advertisements
Similar presentations
POS/420 Philip Robbins – March 19, 2013 (Week 2) University of Phoenix Mililani Campus Introduction to Unix.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Chapter One The Essence of UNIX.
1 Introduction to UNIX Ke Liu
5 Basic utilities When a user logs in to the Linux operating system the directory that they will start in is their home directory. Most users will have.
Introduction to Unix (CA263) File System
Exploring the UNIX File System and File Security
GNU/Linux Filesystem 1 st AUT GNU/Linux Festival Computer Engineering & IT Department Bahador Bakhshi.
The UNIX File System.
Guide To UNIX Using Linux Third Edition
Guide To UNIX Using Linux Third Edition
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.
Guide To UNIX Using Linux Fourth Edition
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 Operating System.
The file structure and related utilities CS240 Computer Science II.
Unix Primer. Unix Shell The shell is a command programming language that provides an interface to the UNIX operating system. The shell is a “regular”
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
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.
Guide to Linux Installation and Administration, 2e1 Chapter 8 Basic Administration Tasks.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
Unix Basics Chapter 4.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
CENT 305 Information Systems Security Linux Introduction.
Linux Un*x Overview Peter Norton’s Guide to Unix Running Linux (O’Reilly)
CS240 Computer Science II Introduction the Unix File System and File Related Utilities Based on “UNIX for Programmers and Users” by G.Class and K. Ables.
Chapter Two Exploring the UNIX File System and File Security.
INTRODUCTION TO LINUX Jacob Chan. GNU/Linux Consists of Linux kernel, GNU utilities, and open source and commercial applications Works like Unix –Multi-user.
Linux Introduction What is Linux? How do you use it?
Operating System What is an Operating System? A program that acts as an intermediary between a user of a computer and the computer hardware. An operating.
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.
Manage Directories and Files in Linux. 2 Objectives Understand the Filesystem Hierarchy Standard (FHS) Identify File Types in the Linux System Change.
Chapter Two Exploring the UNIX File System and File Security.
ITR3 lecture 6: intoduction to UNIX Thomas Krichel
Unix/Linux for beginners:
E X C E E D I N G E X P E C T A T I O N S Basic LINUX Linux System Administration Dr. Hoganson Kennesaw State University Operating Systems Directory structure:
Introduction to Programming Using C An Introduction to Operating Systems.
UNIX History - joint venture between MIT and Bell Labs (originally called Multics) – Ken Thompson (AT&T) created an operating system to run Space.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
Linux Commands C151 Multi-User Operating Systems.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
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.
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.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
Learning Unix/Linux Based on slides from: Eric Bishop.
LINUX Zhengli Zhu, School of Life Sciences. Outline 1. ABC of Linux 2. Basic orers of Linux 3. Bash Programming.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
Linux Administration – Finding You Way on the Command Line The Linux File Directory or Tree.
BILKENT UNIVERSITY DEPARTMENT OF COMPUTER TECHNOLOGY AND INFORMATION SYSTEMS CTIS156 INFORMATION TECHNOLOGIES II FILES AND FILE SYSTEM STRUCTURE.
Overview of Linux Fall 2016 Dr. Donghyun Kim
Linux 101 Training Module Linux Basics.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Welcome to Linux Chap#1 Hanin Abdulrahman.
UBUNTU INSTALLATION
Some Linux Commands.
C151 Multi-User Operating Systems
Structure of Unix OS.
9 Linux on the Desktop.
CSE 374 Programming Concepts & Tools
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
Chapter 7 File and file System structure
Welcome to Linux Chap#1 Hanin Abdulrahman.
Welcome to Linux Chap#1.
Presentation transcript:

Introduction to Linux David E. Douglas University Professor—Information Systems Walton College of Business

Reading assignments Mainframe SOA Cloud, SOA, Integration Sanity Check, Take Heart, Tainted Ones Carico—most cost effective platform Ageless Mainframes Support Multiple Antares Missions Insurance, CICS/DB2, mainframe hosting Examining the Usefulness of zIIP and zAAP z Integrated Information Processor z Application Assist Processor

Linux and Open Source Linux-Who & When Linus Torvalds, graduate Student; Helsinki, Finland Free Software Foundation- Who, What, When Larry Stallman, 1985, source code free Open Source Initiative-Who, What, When Jon Hall and others, 1998; used Open instead of Free GNU General Public License copyleft—requires derived works to be open Linus Torvalds used this License for Linux

Using LINUX: A Beginner’s Guide By David Douglas and Peggy L. Lane

The major operating system services provide mechanisms for… Execution of a program, Input and output operations performed by programs, Communication between processes, Error detection and reporting, and Manipulation of all types of files.

Features of the Linux OS Multiuser capability PortabilityMultitasking Ability to use multiple processors Multiple modes of operation

Multiuser Capability Linux handles multiple requests by a number of users. Many companies run Linux as their main OS for their business for this reason.

Portability Portability means Linux can run on numerous hardware systems. Can run on either CISC or RISC processors: –CISC – Complex instruction set computer –RISC – Reduced instruction set computer (reduced number of instructions because the hardware performs tasks not in the instruction set)

Multitasking When an OS handles multiple jobs at seemingly the same time. Linux uses preemptive multitasking –The OS has the ability to take control of the system from an application –Other method is cooperative multitasking – the application takes control of the system resource. –Which one can crash the whole system if the application crashes???

Ability to Use Multiple Processors Linux can accommodate up to 32 processors. Also uses multithreading –Allows for a program to be split across several processors –with each processor working on a different piece of the program at the same time.

Multiple Modes of Operation Graphical User Interface (GUI) Text – commands are used to navigate the Linux system and write shell scripts. Access text mode in the Linux OS via a shell (must follow its syntax or rules): –sh: the original shell(Bourne Shell by Steven Bourne) –bash: default shell (usually) ba = Bourne again shell –csh: C-shell that uses a C-like syntax. –ksh: Publicly licensed Korn shell by David Korn.

Layered View Users AUI – Application user’s interface –(LINUX shell, commands, and application programs) API – Application Programmer’s Interface –language libraries and system call interface Operating system kernel – core of the OS Computer hardware

October, 1991 Posted on a newsgroup: –“I’m doing a (free) operating system (just a hobby, won’t be big and professional like GNU) for 386 (486) clones.” –Linus Torvalds, 21 year old student at the University of Helsinki, Finland

A few things to remember LINUX was designed to be a command line user interface. Everything in LINUX is a file. –Even devices (hard drives, floppy drives, etc.) LINUX is case sensitive. –The file name “resume” is NOT the same file name as “Resume” or “RESUME”. –Linux commands are all lower case and environment variables are all upper case

LINUX System File Structure Root directory (/) –At the top of the file system hierarchy. –Denoted by / –Can be thought of as the master cabinet that contains all drawers - folders, and files. / binusrhome

LINUX System File Structure /bin (binary) –contains executables for every user /boot –contains the kernel image, system map, bootstrap, etc. /dev –contains special files that represent hardware devices /etc –contains configuration files /home –contains users’ home directories

LINUX System File Structure /lib –contains libraries /media/mnt –contains mount points for other file systems /opt –used to install add-on software packages /proc –virtual file system (in memory) contains kernel & process info /root –home directory for root user. –Protected from normal users. /sbin –contains system admin executables (super user bin)

LINUX System File Structure /srv –Services /subdomain/sys/tmp –temporary storage space /usr –UNIX System Resources - contains all nonessential programs and libraries, which can be either NFS mount or read only. –Contains numerous subdirectories. One of which is bin. /var –contains log & spool files, temp storage space (other than /tmp)

The /bin folder

/bin Contains general-purpose commands such as: cat – concatenates or displays files chmod – changes security mode of a file or directory date – displays the system date. echo – displays a message kill – ends a process mail – read mail or send mail to users more – browse or page through a text file one page at a time (use spacebar to advance by page) ps – shows processes on a system

/bin mkdir – create one or more directories under a parent directory. cp – copies files from one directory to another mv – moves files from one directory to another pwd – displays your current path ls – List contents of a directory. –-l option lists file in long format –-r option lists in reverse alphabetical order. rm – removes a file –-r option deletes a specified directory and its contents. rmdir – removes a directory (must be empty)

What is my “default” directory? /home/userid All of your files should be placed in or under this directory. Looks like this: To get to your “home” no matter where you are, type: –cd ~ (and press the enter key) – be sure to leave a space between cd and ~!

A detailed Command Reference Guide

Other Commands cal – displays calendar passwd – allows you to change your password. cd.. – goes “up” a level in the structure cd / - goes to the root directory (if access is granted) echo $HOME – displays your home directory tree – lists the structure (folders and files)

Editors There are many editors for the Linux environment—some are listed below – vi (visual editor) is the most popular editor –emacs –pico –joe –jpico; the simple editor used for this class

Tree Command tree. |-- china | |-- clothing | | |-- clothing | | `-- clothinginIndia | |-- food | | `-- foodinIndia | `-- sports | `-- sportsinChina `-- india |-- food |-- food | `-- foodinIndia | `-- foodinIndia `-- sports `-- sports 7 directories, 5 files