Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.

Slides:



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

Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
NETW-240 Shells Last Update Copyright Kenneth M. Chipps Ph.D. 1.
Cosc 4750 Getting Started in UNIX Don’t be afraid of the prompt, in linux it can be your best friend. In some cases, the only way to do certain things.
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Lecture 01CS311 – Operating Systems 1 1 CS311 – Lecture 01 Outline Course introduction Setting up your system Logging onto the servers at OSU with ssh.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
1 UNIX essentials (hands-on) the directory tree running programs the shell (using the T-shell) → command line processing → special characters → command.
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
Linux Commands LINUX COMMANDS.
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
Introduction to Linux Workshop February Introduction Rob Lane & The HPC Support Team Research Computing Services CUIT.
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”
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
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.
Agenda User Profile File (.profile) –Keyword Shell Variables Linux (Unix) filters –Purpose –Commands: grep, sort, awk cut, tr, wc, spell.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
1 UNIX essentials (hands-on) the directory tree running programs the shell → command line processing → special characters → command types → shell variables.
System Administration Introduction to Unix Session 2 – Fri 02 Nov 2007 Reference:  chapter 1, The Unix Programming Environment, Kernighan & Pike, ISBN.
UNIX Commands. Why UNIX Commands Are Noninteractive Command may take input from the output of another command (filters). May be scheduled to run at specific.
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.
Welcome to CS323 Operating System lab 1 TA: Nouf Al-Harbi NoufNaief.net.
UNIX Commands COMP 1090 Introduction to Unix Fall
(Re)introduction to Unix Sarah Medland. So Unix…  Long and venerable history  
Getting the most out of the workshop Ask questions!!! Don’t sit next to someone you already know Work with someone with a different skillset and different.
Unix/Linux for beginners:
40 Years and Still Rocking the Terminal!
Intro to UNIX Presented by: Student Ambassadors: Lauren Lewis Martin Sung.
Introduction to Programming Using C An Introduction to Operating Systems.
CS252: Systems Programming Ninghui Li Slides by Prof. Gustavo Rodriguez-Rivera Topic 7: Unix Tools and Shell Scripts.
Basic of UNIX For fresh members of SPARCS
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
1 CS3695/M6-109 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Linux A practical introduction. 1)Background and Getting Started Linux is an operating system with multiple providers Red Hat/CentOS (our version) Ubuntu.
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.
1 CS3695 – Network Vulnerability Assessment & Risk Mitigation – Introduction to Unix & Linux.
Lecture 1: Introduction, Basic UNIX Advanced Programming Techniques.
Introduction to Linux Workshop February 15, 2016.
Learning Unix/Linux Based on slides from: Eric Bishop.
INTRODUCTION TO SHELL SCRIPTING By Byamukama Frank
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
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.
Tutorial of Unix Command & shell scriptS 5027
CS3695/M6-109 – Network Vulnerability Assessment & Risk Mitigation –
Linux Commands Help HANDS ON TRAINING Author: Muhammad Laique
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
The Command Prompt Commands are the way to “do things” in Unix
Software Tools Recitation 1
Tutorial of Unix Command & shell scriptS 5027
Basic UNIX OLC Training.
Introduction to UNIX.
Tutorial of Unix Command & shell scriptS 5027
Introduction to Linux Week 0 - Thursday.
Unix : Introduction and Commands
Tutorial of Unix Command & shell scriptS 5027
Andy Wang Object Oriented Programming in C++ COP 3330
Tutorial Unix Command & Makefile CIS 5027
Linux Shell Script Programming
Yung-Hsiang Lu Purdue University
Linux Commands LINUX COMMANDS.
Presentation transcript:

Session 2 Wharton Summer Tech Camp Basic Unix

Agenda Cover basic UNIX commands and useful functions

UNIX Operating System AT&T – Bell Lab 1969 Ken Thompson, Dennis Ritchie, Brian Kernighan, etc (picture: Ken Thompson and Dennis Ritchie standing) Linux, Mac OSX descended from Unix For Windows, Unix-like environment can be achieved by – Just Logging into Unix.wharton.upenn.edu OR – Install cygwin

Wharton Grid

Unix Prompt ~]$ user name network node hostname Current Directory name (~ means home) Current Directory name (~ means home)

Unix Shell Unix Shell: A Unix shell is a command-line interpreter or shell that provides a traditional user interface for the Unix operating system and for Unix-like systems. (WIKI) Basically, a translator between unix OS (kernel) and user, delivering commands. There are many varieties: bash, tcsh, csh, ksh Bash is the most popular

Information look up Manual page: “man [command]” “man man” Google everything! Stackoverflow.com

Command Structure [Command] [Options] [Argument] ls –l directory Directory structure separated by “/” /home/opim/leedok Important Startup File: ~/.bash_profile Command for listing directory contents Directory name. By default, if you don’t specify, it’s current working directory “.”

Control-key commands ctrl-c – interrupts a running program ctrl-z – suspends a running program – (use the fg command to continue the program)

Directory Navigation ls - list content of a directory pwd – print working directory cd – change directory mv – move file or rename cp - create a copy of a file rm – remove a file mkdir – create a new directory rmdir – remove a directory

Some other commands who - list who is on system echo, printf – display a message script - log all interaction in a file clear - clear the screen cat, more, less – file perusal du – file info chmod – change permission find: –By Name: find. –name \*.ado –By Type: find. –type d (directory) –Etc

Pipes and Redirects > - Redirect output from a command to a file on disk. >> - Append output from a command to an existing file on disk. < - Read a command's input from a disk file, rather than the user. | - Pass the output of one command to another for further processing. Date > date.txt Date >> date.txt who | cut -f1 -d" " | sort -u

Bit more advanced commands grep – match string patterns (search) sed, awk – find and replace (text manipulation)

Lab session 1.Do some exercise posted “practice.sh” 2.Do Unix tutorial if you are new to it 1: Log into unix account if you have one Ssh 2: If you have Mac OS, just open up the “Terminal” 3: If you have Linux, you probably know this 4: if you have Windows, download terminal applications (e.g., putty, secureCRT etc)

For the next session Download and install Canopy – packaged python emic/ People with EDU gets it for free