1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Josh Goodwin

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

Chapter One The Essence of UNIX.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Introducing the Command Line CMSC 121 Introduction to UNIX Much of the material in these slides was taken from Dan Hood’s CMSC 121 Lecture Notes.
1 CSE 390a Lecture 2 Exploring Shell Commands, Streams, and Redirection slides created by Marty Stepp, modified by Josh Goodwin
CSE 303 Lecture 2 Introduction to bash shell
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.
Basic Unix Dr Tim Cutts Team Leader Systems Support Group Infrastructure Management Team.
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.
Fundamentals of Networking Discovery 1, Chapter 2 Operating Systems.
Overview of Linux CS3530 Spring 2014 Dr. José M. Garrido Department of Computer Science.
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.
POS/420 Introduction to Unix Philip Robbins – March 12, 2013 (Week 1)
Introduction to Unix/Linux Chapter One The Essence of UNIX.
Module 1 Introduction to UNIX/Linux
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
CENT 305 Information Systems Security Linux Introduction.
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.
CIT 140: Introduction to ITSlide #1 CSC 140: Introduction to IT Operating Systems.
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.
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.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
Introduction To UNIX. FAQReferencesSummaryInfo Resources Introduction Learning Objectives Log on User Interface Commands List of Commands Useful Info.
Unix/Linux for beginners:
1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson
1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Jessica Miller & Ruth Anderson
Introduction to Programming Using C An Introduction to Operating Systems.
CSE 374 Programming Concepts & Tools Hal Perkins Fall 2015 Lecture 2a – A Unix Command Sampler (Courtesy of David Notkin, CSE 303)
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.
COP3502: Introduction to Computer Science Yashas Shankar Lecture #2.
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.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Learning basic Unix command It 325 operating system.
Gorman, Stubbs, & CEP Inc. 1 Introduction to Operating Systems Lesson 8 Linux.
2: Operating Systems Networking for Home & Small Business.
introduction to Linux/Unix environment
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.
Overview of Linux Fall 2016 Dr. Donghyun Kim
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
Andy Wang Object Oriented Programming in C++ COP 3330
introduction to Linux/Unix environment
introduction to Linux/Unix environment
The Linux Operating System
CSE 374 Programming Concepts & Tools
introduction to Linux/Unix environment
Introduction to Linux Week 0 - Thursday.
CSE 390a Lecture 1 introduction to Linux/Unix environment
CSE 303 Lecture 1 introduction to Linux/Unix environment
CSE 390a Lecture 1 introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
Command line.
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
introduction to Linux/Unix environment
Presentation transcript:

1 CSE 390a Lecture 1 introduction to Linux/Unix environment slides created by Marty Stepp, modified by Josh Goodwin

2 Lecture summary Course introduction and syllabus Unix and Linux operating system introduction to Bash shell

3 Course Introduction Me:  Josh Goodwin,  Office hours: Thursdays 1:30-2:30 CSE212 CSE390a  Replaces what used to be CSE303  Collection of tools and topics not specifically addressed in other courses that CSE majors should know *nix CLI, Shell scripting, compilation tools (makefiles), version control…  Credit / No Credit course, determined by short weekly assignments and a “final” assignment

4 Operating systems What is an OS? Why have one? What is a Kernel?

5 Operating systems operating system: Manages activities and resources of a computer.  software that acts as an interface between hardware and user  provides a layer of abstraction for application developers features provided by an operating system:  ability to execute programs (and multi-tasking)  memory management(and virtual memory)  file systems, disk and network access  an interface to communicate with hardware  a user interface(often graphical) kernel: The lowest-level core of an operating system.

6 Unix brief history:  Multics (1964) for mainframes  Unix (1969)  K&R  Linus Torvalds and Linux (1992) key Unix ideas:  written in a high-level language (C)  virtual memory  hierarchical file system; "everything" is a file  lots of small programs that work together to solve larger problems  security, users, access, and groups  human-readable documentation included

7 On to Linux Courtesy XKCD.com

8 Linux Linux: A kernel for a Unix-like operating system.  commonly seen/used today in servers, mobile/embedded devices,... GNU: A "free software" implement of many useful Unix-like tools.  many GNU tools are distributed with the Linux kernel distribution: A pre-packaged set of Linux software.  examples: Ubuntu, Fedora key features of Linux:  open source software: source can be downloaded  free to use  constantly being improved/updated by the community

9 Features of Linux X-windows window managers desktop environments  Gnome  KDE How can I try out Linux?  CSE basement labs  attu shared server  at home (Live CD, VirtualBox, etc.) The Linux help philosophy: "RTFM" (Read the F***ing Manual)

10 Exercises Install Linux and boot it up successfully. Load the course web site in Linux. Install a new game on Linux and play it. Get Linux to play an MP3.

11 Shell shell: An interactive program that uses user input to manage the execution of other programs.  bash : the default shell program on most Linux/Unix systems Why should I learn to use a shell when GUIs exist?

12 Shell shell: An interactive program that uses user input to manage the execution of other programs.  bash : the default shell program on most Linux/Unix systems Why should I learn to use a shell when GUIs exist?  faster  work remotely  programmable  customizable  repeatable input, output, and errors directories: working/current directory, home directory

13 Shell commands $ pwd /homes/iws/dravir $ cd CSE390 $ ls file1.txt file2.txt $ ls –l -rw-r--r-- 1 dravir vgrad_cs :45 file1.txt -rw-r--r-- 1 dravir vgrad_cs :45 file2.txt $ cd.. $ man ls $ exit commanddescription exit logs out of the shell ls lists files in a directory pwd outputs the current working directory cd changes the working directory man brings up the manual for a command

14 Relative directories directorydescription. the directory you are in ("working directory").. the parent of the working directory (../.. is grandparent, etc.) ~ your home directory (on many systems, this is /home/username ) ~username username 's home directory ~/Desktop your desktop

15 Shell commands many accept arguments or parameters  example: cp (copy) accepts a source and destination file path a program uses 3 streams of information:  stdin, stdout, stderr (standard in, out, error) input: comes from user's keyboard output: goes to console errors can also be printed (by default, sent to console like output) parameters vs. input  parameters:before Enter is pressed; sent in by shell  input:after Enter is pressed; sent in by user

16 Directory commands some commands ( cd, exit ) are part of the shell ("builtins") others ( ls, mkdir ) are separate programs the shell runs commanddescription ls list files in a directory pwd output the current working directory cd change the working directory mkdir create a new directory rmdir delete a directory (must be empty)

17 Command-line arguments most options are a - followed by a letter such as -c  some are longer words preceded by two - signs, such as --count parameters can be combined: ls -l -a -r can be ls -lar many programs accept a --help or -help parameter to give more information about that command (in addition to man pages)  or if you run the program with no arguments, it may print help info for many commands that accept a file name parameter, if you omit the parameter, it will read from standard input (your keyboard)  note that this can conflict with the previous tip

18 Shell/system commands "man pages" are a very important way to learn new commands man ls man commanddescription man or info get help on a command clear clears out the output from the console exit exits and logs out of the shell commanddescription date output the system date cal output a text calendar uname print information about the current system

19 File commands caution: the above commands do not prompt for confirmation  easy to overwrite/delete a file; this setting can be overridden (how?) Exercise : Given several albums of.mp3 files all in one folder, move them into separate folders by artist. Exercise : Modify a.java file to make it seem as though you finished writing it on March 15 at 4:56am. commanddescription cp copy a file mv move or rename a file rm delete a file touch create a new empty file, or update its last-modified time stamp