Introduction to Linux Week 0 - Thursday.

Slides:



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

NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
January 13, Csci 2111: Data and File Structures Week1, Lecture 2 Basic File Processing Operations.
Guide To UNIX Using Linux Third Edition
“Linux at the Command Line” Don Johnson of BU IS&T.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Systems Programming Concepts
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
1 Lecture 2 Working with Files and Directories COP 3344 Introduction to UNIX.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
File Processing. Introduction More UNIX commands for handling files Regular Expressions and Searching files Redirection and pipes Bash facilities.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
Unix Basics Chapter 4.
A Guide to Unix Using Linux Fourth Edition
Dedan Githae, BecA-ILRI Hub Introduction to Linux / UNIX OS MARI eBioKit Workshop; Nov , 2014.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
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.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Some content in this lecture added.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Lesson 2 1.Commands 2.Filename Substitution 3.I/O Redirection 4.Command Grouping 5.Shell Responisibilites Review of the Basics.
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.
UNIX File System by Tero Toikkanen, CAP02S. UNIX Multi-user system Multi-user system Multi-tasking system Multi-tasking system Wide selection of tools.
L&T Infotech1 UNIX – Getting Started - Aneesh Ramani.
UNIX An Introduction. Brief History UNIX UNIX Created at Bell Labs, 1969 Created at Bell Labs, 1969 BSD during mid 70s BSD during mid 70s AT&T began offering.
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)
Linux Commands C151 Multi-User Operating Systems.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
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.
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.
Lecture 1: Introduction, Basic UNIX Advanced Programming Techniques.
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
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.
Chapter 11 Command-Line Master Class
Commands Basic syntax of shell commands UNIX or shell commands have a basic structure command -options target command comes first (such as cd or ls) any.
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Lecture 2 Working with Files and Directories
Some Linux Commands.
CSE 374 Programming Concepts & Tools
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
Operating Systems and Using Linux
CSE 390a Lecture 1 introduction to Linux/Unix environment
Tutorial of Unix Command & shell scriptS 5027
A Brief Overview of Unix
The Unix File System.
Operating Systems and Using Linux
Chapter Four UNIX File Processing.
CSE 390a Lecture 1 introduction to Linux/Unix environment
Operating Systems and Using Linux
Operating Systems and Using Linux
Operating Systems and Using Linux
Command line.
CSE 303 Concepts and Tools for Software Development
Operating Systems and Using Linux
Module 6 Working with Files and Directories
Operating Systems and Using Linux
Lab 2: Terminal Basics.
January 26th, 2004 Class Meeting 2
Presentation transcript:

Introduction to Linux Week 0 - Thursday

A Brief History of Operating Systems The Dark Ages No OS until 1960s Manually loaded programs Reboot after each program Batch OS Unified application development across systems Output via printer, later via monitor I/O via magnetic tape or disk Written in assembler (e.g., OS/360) Multiprocess

A Brief History of Operating Systems Timesharing OS Multiuser Multics (1964) Segmented memory Paged virtual memory Applications written in many languages Shared multiprocess memory Personal Computer Single machine for single user OS must manage screen and input devices Window, Icon, Menu, Pointing Device (WIMP, e.g., MacOS, 1984) Cutting-Edge OS High performance computer (HPC) clusters (e.g., BlueGene/L at LLNL rated at 280.6 teraFLOPS) Cell phones, video Video games Browsers

CLI vs. GUI CLI Steep learning curve Pure control (e.g., scripting) Cumbersome multitasking Speed: Hack away at keys Convenient remote access GUI Intuitive Limited Control Easy multitasking Limited by pointing Bulky remote access

Unix File System Layout Everything is a file (including devices) Tree structured hierarchy (with some exceptions) Lost? man: get manual or man pages

The Basics: Moving Around pwd: print working directory cd: change working directory ~: home directory .: current directory /: root directory, or directory separator ..: parent directory

The Basics: Dealing with Files The basics continued… mv: move a file (no undos!) cp: copy a file rm: remove a file mkdir: make a directory rmdir: remove a directory ls: list contents of a directory -d: list only directories -a: list all files including hidden ones -l: show long listing including permission info -s: show size of each file, in blocks

The Basics: File Name Matching ?: matches any single character in a filename *: matches one or more characters in a filename []: matches any one of the characters between the brackets. Use ‘-’ to separate a range of consecutive characters.

The Basics: History <up arrow>: previous command <tab>: auto-complete !!: replace with previous command ![str]: refer to previous command with str ^[str]: replace with command referred to as str

The Basics: Look These Up cat head tail du ps kill diff cmp wc sort

The Basics: Redirection > file: write stdout to a file >> file: append stdout to a file < file: use contents of a file as stdin

The Basics: Changing File Attributes ln: create a link Hard links: points to physical data Soft links aka symbolic links (-s): points to a file touch: update access & modification time to current time chmod read (r), write (w), executable (x) User, group, others

The Basics: find -type: type of a file (e.g,, directory, symbolic link) -perm: permission of a file -name: name of a file -prune: don’t descend into a directory -o: or -ls: list current file

Emacs Almost like a Windows text editor, but much more powerful