UNIX Introduction Peter Wad Sackett. 2DTU Systems Biology, Technical University of Denmark How a computer works ? Who cares ! You just need to use it.

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.
Introduction of Unix/Linux Compiled by Anant Vishnoi.
Introduction to UNIX CSE 2031 Fall May 2015.
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.
Introduction to Linux Alan Orth April 17, 2010 ILRI, Nairobi.
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.
Guide To UNIX Using Linux Third Edition
T UTORIAL OF U NIX C OMMAND & SHELL SCRIPT S 5027 Professor: Dr. Shu-Ching Chen TA: Samira Pouyanfar Spring 2015.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
Introduction to Linux/UNIX. History UNIX beginnings in 1969 (Linus Torvalds is born!) AT & T Bell Laboratories (Ken Thompson & Dennis Richie) Working.
“Linux at the Command Line” Don Johnson of BU IS&T.
Introduction to Linux and Shell Scripting Jacob Chan.
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.
Introduction A computer system consists of hardware system programs application programs.
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.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Chapter Four UNIX File Processing. 2 Lesson A Extracting Information from Files.
Guide To UNIX Using Linux Fourth Edition
– Introduction to the Shell 10/1/2015 Introduction to the Shell – Session Introduction to the Shell – Session 2 · Permissions · Users.
Dedan Githae, BecA-ILRI Hub Introduction to Linux / UNIX OS MARI eBioKit Workshop; Nov , 2014.
CS 6560 Operating System Design Lecture 3:Tour of GNU/Linux.
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
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.
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.
Next Unix Topics Tuesday, 2/11 & 18/2014. Change Password (by 2/14/14) ssh to account on – faclinux.cse.ohio-state.edu – stdlinux.cse.ohio-state.edu passwd.
1 CSE 303 Lecture 3 bash shell continued: processes; multi-user systems; combining commands read Linux Pocket Guide pp , , , 118, 122,
Chapter Four I/O Redirection1 System Programming Shell Operators.
Linux and Java Basics. What is Linux? Operating system by Linus Torvalds that was a clone of Unix (thus Linux) Free and open source – this is the reason.
Basic of UNIX For fresh members of SPARCS
Week Two Agenda Announcements Link of the week Use of Virtual Machine Review week one lab assignment This week’s expected outcomes Next lab assignments.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
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.
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.
Tutorial 1.21
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
Intro to GNU/Linux See, Stallman? I said GNU. Are you happy now?
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.
Tutorial of Unix Command & shell scriptS 5027
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
Introduction to Linux Dr Karina Kubiak - Ossowska
CSE 303 Concepts and Tools for Software Development
Tutorial of Unix Command & shell scriptS 5027
UNIX Introduction Peter Wad Sackett.
Tutorial of Unix Command & shell scriptS 5027
Introduction to Linux Week 0 - Thursday.
Tutorial of Unix Command & shell scriptS 5027
Introduction to Linux/UNIX
Introduction to Computer Organization & Systems
Chapter Four UNIX File Processing.
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX Introduction Peter Wad Sackett.
Tutorial Unix Command & Makefile CIS 5027
Yung-Hsiang Lu Purdue University
Introduction to Linux Commands
LPI Linux Certification
Presentation transcript:

UNIX Introduction Peter Wad Sackett

2DTU Systems Biology, Technical University of Denmark How a computer works ? Who cares ! You just need to use it

3DTU Systems Biology, Technical University of Denmark History of UNIX Emerged in 1971 from a more complex system (which failed). Lead designers: Ken Thompson & Dennis Ritchie Generally used in the public and private sector. Linux emerged in 1991 by effort of Linus Torvalds. Many different UNIX versions exists. By now, Linux is the main UNIX platform. Reason; free and good. But does the history of UNIX matter ! Not really, except from the effect it has had on Open Source. A set of enabling technologies first developed at AT&T that have been incorporated into several legally distinct but closely related operating systems, each of which can be considered to be a "UNIX system." If it looks like UNIX, operates like UNIX, runs common UNIX utilities and programs, and is developed with UNIX as a model, it's UNIX. Seth T. Ross

4DTU Systems Biology, Technical University of Denmark Reasons to learn UNIX

5DTU Systems Biology, Technical University of Denmark Better reasons Automation Stability Development Large tool set Free(dom) Mastery of UNIX, like mastery of language, offers real freedom. The price of freedom is always dear, but there’s no substitute. Personally, I’d rather pay for my freedom than live in a bitmapped, pop-up-happy dungeon like Windows. I’m hoping that as IT folks become more seasoned and less impressed by superficial convenience at the expense of real freedom, they will yearn for the kind of freedom and responsibility UNIX allows. When they do, UNIX will be there to fill the need.Thomas Scoville

6DTU Systems Biology, Technical University of Denmark Get to it; The Shell Command line interface Everything has to be typed File system navigation Many simple tools available Tab completion Repeating commands Copy/Paste

7DTU Systems Biology, Technical University of Denmark File system navigation Listing files ls ls –l The path Changing directories cd Creating directories mkdir Deleting directories rmdir Where are you? pwd Why are you here? Sorry, no answer to that one

8DTU Systems Biology, Technical University of Denmark File handling Coping files cp Moving/renaming files mv Deleting files rm Changing file permissions. chmod

9DTU Systems Biology, Technical University of Denmark File inspection Seeing the top of the file head Seeing the end of the file tail Seeing all of the file cat Inspecting the file less You can browse up and down in the file with PgUp/b and PgDn/space, search with /, but most importantly exit the application with q. G goes to the top and g to the bottom.

10DTU Systems Biology, Technical University of Denmark Editors Grahpical editors (using X) nedit gedit Pro: easy to use. Con: requires good bandwidth on the network Also jEdit, Kwrite, TextWrangler (mac). Text based editors vim emacs Also vi, Elvis, jove, ed. Pro: works fine on poor network. Con: hard to learn

11DTU Systems Biology, Technical University of Denmark Working with the file Counting the lines/words/bytes in the file wc Merging files paste Extracting columns from a file cut Usually used as ’cut –f2,4 myfile.txt’ on tab files Sorting files Sort Extracting lines from a file grep This is an incredibly useful command, very versatile.

12DTU Systems Biology, Technical University of Denmark A closer look at grep and patterns Many versions of grep – different capabilities grep HUMAN Lines containing HUMAN, like POSTHUMAN grep –v HUMANLines without HUMAN grep –c HUMANCount lines with HUMAN grep ”^HUMAN”Lines starting with HUMAN grep ”HUMAN$”Lines ending with HUMAN grep –e/E Regular expressions.any single char +one or more of preceeding char *zero or more of preceeding char grep –e ”H.+MAN”Matches HEMAN, HUMAN, HITMAN, etc

13DTU Systems Biology, Technical University of Denmark IO redirection and pipes Every program has STDIN, STDOUT and STDERR They are file streams – streams/lines of data. Defaults; STDIN = keyboard, STDOUT, STDERR = screen Save output of a command in a file; > grep HUMAN orphans.sp > humanproteins.txt Append to the file with >> Feed a file to a command; < wc < humanproteins.txt Pipe (stream) the output of one command to the next; | grep HUMAN orphans.sp | wc

14DTU Systems Biology, Technical University of Denmark Miscellaneous Downloading files from the internet wget An URL is the link you see in the browser. Printing text to the screen echo Getting time and date information date Seeing what programs are running ps Stopping them kill

15DTU Systems Biology, Technical University of Denmark Remote computers Logging in to remote computers. ssh This will start a shell on the remote computer if you have an account on the machine. Transferring files to and from other computers. ftp Give your username and password to the remote computer. You use the keywords "put” and "get" for file transfer. An encrypted and therefore secure alternative is sftp. You will be prompted for password, but the functionality of ftp and sftp is the same.

16DTU Systems Biology, Technical University of Denmark More information and help The UNIX manual man The manual is shown with less. Also try google: man whatis Single line description of the command Plenty of UNIX guides on the net. Here are some of the best. Google is your friend.

17DTU Systems Biology, Technical University of Denmark Last jokes