Overview of Linux Fall 2016 Dr. Donghyun Kim

Slides:



Advertisements
Similar presentations
Linux, it's not Windows A short introduction to the sub-department's computer systems Gareth Thomas.
Advertisements

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Chapter One The Essence of UNIX.
Guide To UNIX Using Linux Third Edition
CMPE 151: Network Administration Spring Class Description Focus: system and network administration. Sequence of exercises. E.g., installing/configuring.
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.
ENGINEERING COMPUTING CENTER LINUX workshop
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.
Unix Background / History CSE 4251, Sp 2014, Bolz 422 Dr. Bob Mathis,
CST334 Unix & X Window System
File Systems Sources and Resources: 1. A Students Guide to UNIX, by Hahn 2. Paula Davidson’s Handout on UNIXHandout on UNIX.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
Help session: Unix basics Keith 9/9/2011. Login in Unix lab  User name: ug0xx Password: ece321 (initial)  The password will not be displayed on the.
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”
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.
Introduction to Unix/Linux Chapter One The Essence of UNIX.
Lesson 1. PC vs. Multi-user System  Personal Computer – each user gets his/her own processor (or multicore processor).  Multi-user system – The processor,
Module 1 Introduction to UNIX/Linux
CENT 305 Information Systems Security Linux Introduction.
Linux overview. Architecture Kernel File system Shell: Korn, Bourne, C, Bash X Windows: Motif, Open Look, X.OrgX.Org Desktop: Gnome, KDE,etc.
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.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Appendix A Introduction to Using Linux. Objectives Linux introduction Commands-Line Interface Files and Directories Basic Commands The password Command.
Natawut NupairojAssembly Language1 Unix Survival Guide.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Lesson 2-Touring Essential Programs. Overview Development of UNIX and Linux. Commands to execute utilities. Communicating instructions to the shell. Navigating.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
CS 6502 Operating Systems Dr. J.. Garrido OS Concepts Using Linux Class Will Start Momentarily… (Lecture 2) CS5002 Operating Systems Dr. Jose M. Garrido.
Unix/Linux for beginners:
Introduction to Programming Using C An Introduction to Operating Systems.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
Basic UNIX Concepts. Why We Need an Operating System (OS) OS interacts with hardware and manages programs. A safe environment for programs to run is required.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
Learning Unix/Linux Based on slides from: Eric Bishop.
UNIX  Portable (common to many computer architectures), multitasking, multi-user operating system  Introduced by Bell labs in mid-1960’s  Thus, much.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Introduction to unix. The UNIX Operating System An operating system "OS” is a set of programs that controls a computer. It controls both the hardware.
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.
Web Programming Essentials:
Welcome to CIS 52 WELCOME WELCOME WELCOME W E L C O M E.
Andy Wang Object Oriented Programming in C++ COP 3330
Software Tools Recitation 1
9 Linux on the Desktop.
introduction to Linux/Unix environment
Chapter 1 The Essence of UNIX and Linux
Introduction to UNIX.
CSE 390a Lecture 1 introduction to Linux/Unix environment
Unix : Introduction and Commands
Operating Systems and Using Linux
CSE 303 Lecture 1 introduction to Linux/Unix environment
Web Programming Essentials:
CSE 390a Lecture 1 introduction to Linux/Unix environment
Operating Systems and Using Linux
introduction to Linux/Unix environment
Andy Wang Object Oriented Programming in C++ COP 3330
introduction to Linux/Unix environment
Operating Systems and Using Linux
Operating Systems and Using Linux
Linux Professor Sabol.
Operating Systems and Using Linux
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
Presentation transcript:

Overview of Linux Fall 2016 Dr. Donghyun Kim Department of Computer Science College of Computing and Software Engineering

Introducing Linux (and Unix) See Appendix A, page 375 of textbook A multi-user OS Users log on by typing their user names and their passwords A Multitasking OS Users can have more than one program executing A portable OS Unix runs on a wider variety of different systems than any other OS

Brief History of Unix In the 1960s, a joint venture with GE, MIT, AT&T Bell Labs, and other entities were engaged in a project to develop Multics. Multics was to be an advanced, multiuser, interactive, large operating system. Ken Thompson and Dennis Ritchie (of Bell Labs) wrote Unix in the early 70s with ideas from Multics. The machine was a PDP-8 then a PDP-11 built by DEC.

Linux History In 1991, Linus Torvalds of Finland, developed a kernel for a Unix-like operating system. From that time on, hundreds of volunteer programmers worldwide maintain and enhance the system, called Linux. The Free Software Foundation provides Linux free of charge. There are many distributions (packaging) of Linux

Unix Standards The Portable Operating System Interface (POSIX) standards Most Unix systems are POSIX compliant The Open Group also promotes Unix standards and currently owns the Unix trademark

User Interfaces Most users and developers use the text-oriented command mode from a terminal emulator. More recent Unix systems provide some type of Graphical User Interface (GUI) with several windows on the screen. The most important user interface is based on the X Window System, developed at MIT.

Window Manager on Linux A window manager is a program that determines the “look and feel” of the GUI The desktop environments are based on a window manager GNOME CDE KDE Others

Terminal Emulator Programs Simple terminal emulator programs are character oriented (text-based) More recent terminal emulator programs emulate an X terminal X terminals are graphical and are intended to access a Unix server via a GUI using a desktop environment like KDE.

Download and Install SSH Search the university Web page: www.kennesaw.edu Select/click “Computing Resources” Select “Student Technology Services” Click on “Software Downloads” Login Click on: “Secure shell File Transfer” to download After downloading, execute the install program on your PC

Using SSH Two modes of operation are provided by this utility: Secure File Transfer Client Secure Shell Client

The CS3 Server A Computer Science Department server All assignments are to be developed on the CS3 server Access to CS3 is via a command-level interface using a ‘terminal’ utility, such as SSH on Windows

Connecting to CS3 Server Make sure you are connected to Internet Start SSH (Secure Shell Client) to connect to a remote Unix server Type cs3.kennesaw.edu Logon to Linux on the CS3 server Start using the appropriate Linux shell

Logon to Linux Type your NETID account info user name your password

Window for SSH Shell Client

Dialog Box Logon

Unix Shells A shell is a Unix program that interprets the commands that users type on their terminal keyboards Different Unix shells: Bourne Korn C shell Bash (default on Linux) Tcsh Similar to command window on Windows

Basic Unix Commands In addition to Appendix A, for a more complete set of Unix commands visit: http://www/unixguide.net/linux Important commands: ls, mkdir, cd, cp, more, rm, pwd, exit, man, chmod Change password: passwd Text editor: nano Start nano and read the help screens

Printing Normally, every printer connected to a network has a symbolic name In this course, you will carry out file tranfer to copy the file you want to print, from CS3 to your local computer (PC) Print the file from your computer.

Linux Graphical Interface Most popular on Linux GNOME (GNU Network Object Model Environment) KDE (K Desktop Environment) Based on the X Window system developed by MIT for Unix

Running Simulation Models on CS3 Create a working directory for running simulations with the OS models $ mkdir myos Copy two files from the /home/jgarrido/psim3 directory to your working directory: the corresponding simulation model (batch.cpp) the psim3c script file $ cp /home/jgarrido/psim3/batch.cpp myos $ cp /home/jgarrido/psim3/psim3c myos

Steps to Run a Simulation Model on cs3 (Cont.) Change to the new directory: $ cd myos Compile and link the simulation model: $ ./psim3c batch.cpp Run the model (output on the screen): $ ./a.out Run the model, redirect the output to a file $ ./a.out |tee res1.txt View the output file $ more res1.txt

Steps to Run a Simulation Model on cs3 (Cont.) Run the program again to change one or more parameters in the model Compile and link again (if necessary) Run the program again Get the results in another file After the third simulation run, exit Unix. Use SSH File Transfer from your PC to get the output files

‘ls’ Command List files and subdirectories in current directory or specified directory $ ls The long listing is produced with the -l option: $ ls -l $ ls -lt | more

‘man’ Command To get a short online manual or documentation on the specified command $ man ls (help with ‘ls’) $ man cd (help with ‘cd’) The space key shows the next page

Make and Change Directory To make a new directory under your current directory: $ mkdir mydir To change to a directory: $ cd mydir (change to mydir) $ cd myos (change to myos)

Directories The system root directory is denoted as a slash (/) An absolute path denotes the position of a file in the file structure /home/jgarrido/psim3/batch.cpp The current working directory is denoted as dot (.), The parent of the current directory as dotdot (..)

Show Current Working To display the current working directory: $ pwd To return to your home directory: $ cd

The ‘script’ Command Open a new record session (log session) to a text file: $ script mysession.txt To terminate the session, type the ‘exit’ command

Copying Files The copy (cp) command copies one or more files from a source directory to a destination directory. $ cp /home/jgarrido/psim3/batch.cpp . The previous command copied file ‘batch.cpp’ located in /home/jgarrido/psim3 to your current directory (dot)

Moving Files The move (mv) command is used to move files from a source directory to a destination directory. The command is also used to change the name of a file, in the same directory: $ mv lll batch.txt

File Protection -- Access Permissions Types of users for file access: Owner of the file or directory (user) Group, users in the same group as the owner Others, all other users Types of access permissions Read (r) Write (w) Execute (x)

Change File Access Mode To change the read access permission to all users for batch.cpp $ chmod a+r batch.cpp $ chmod o-w batch.cpp (this removes write permission to others) When writing a shell script, it is necessary the change to execute permission $ chmod u+x psim3c

Unix File Concept A file is a sequence of bytes All input/output devices are treated as files Types of files simple/ordinary directory symbolic link special (device) named pipe

CS3 Accounts Username: NETID Password: new123 Change the password using the ‘passwd’ command