Introduction to UNIX Working in a multi-user environment.

Slides:



Advertisements
Similar presentations
Linux commands exercise 1. What do you need, if you try to these at home? You need to download and install Ubuntu Linux from the Internet – DVD is need.
Advertisements

Jump to first page Unix Commands Monica Stoica Jump to first page Introduction to Unix n Unix was born in 1969 at Bell Laboratories, a research subdivision.
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.
Lesson 22 – Introduction to Linux Systems Administration.
The Internet. Telnet Telnet means using your computer as a terminal. All commands you type are sent to the host computer you are connected to and executed.
Linux & Applications Sean GavinWayne State University multi-user environment -- log in: user name and password -- you never turn the computer on or off.
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
What is Unix? A multi-user networked operating system –“Operating System” Handles files, running other programs, input/output Looks like DOS…but more powerful.
A crash course in njit’s Afs
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Linux Installation and Administration Lesson 2 Tutor: George Papamarkos.
Applied Bioinformatics Introduction to Linux and R Bing Zhang Department of Biomedical Informatics Vanderbilt University
Learning basic Unix command IT 325 operating system.
MCB Lecture #3 Sept 2/14 Intro to UNIX terminal.
Eucalyptus Virtual Machines Running Maven, Tomcat, and Mysql.
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.
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.
Welcome to Linux & Shell Scripting Small Group How to learn how to Code Workshop small-group/
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
The R Language How to find scientific truths buried between the spots.
UNIX command line. In this module you will learn: What is the computer shell What is the command line interface What is the directory tree Some UNIX commands.
1 Unix and the Internet Pine System and Netscape.
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
Unix Tutorial for FreeSurfer Users. Helpful To Know FreeSurfer Tutorial Wiki:
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.
Introduction to SAP.
ENEE150 – 0202 ANDREW GOFFIN Introduction to ENEE150.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
1 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Introduction to Unix – CS 21 Lecture 4. Lecture Overview * cp, mv, and rm Looking into files The file command head and tail cat and more What we’ve seen.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Unix Commands PowerPoint Presentation developed for LS 560 Information Technology online class - University of Alabama by Debey Sklenar TENacious Cohort.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
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.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Introduction to Programming Using C An Introduction to Operating Systems.
The Genome Analysis Centre Building Excellence in Genomics and Computational Bioscience.
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
1 Terminology. 2 Requirements for Network Printing Print server Sufficient RAM to process documents Sufficient disk space on the print server.
Introduction to KE EMu Unit objectives: Introduction to Windows Use the keyboard and mouse Use the desktop Open, move and resize a.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
Unix Fundamentals CS 127. File navigation cd - change directory cd /var/log cd /etc/apache2 cd ~/Desktop ~ is a shortcut for the home directory.
EMT 2390L Lecture 3 Dr. Reyes Reference: The Linux Command Line, W.E. Shotts.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CMSC 104, Version 8/061L03OperatingSystems.ppt Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Login Being logged into a command line prompt allows a user to easily and simply execute multiple commands (one-by-one or at the same time) that would.
Linux CSE 1222 CSE1222: Lecture 1BThe Ohio State University1.
CMSC 104, Version 9/011 Operating Systems and Using Linux Topics What is an Operating System? Linux Overview Frequently Used Linux Commands Reading None.
Review Why do we use protection levels? Why do we use constructors?
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.
Andy Wang Object Oriented Programming in C++ COP 3330
The Command Prompt Commands are the way to “do things” in Unix
Intro to UNIX System and Homework 1
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Operating Systems and Using Linux
Operating Systems and Using Linux
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
The Linux Command Line Chapter 4
The Linux Command Line Chapter 4
Presentation transcript:

Introduction to UNIX Working in a multi-user environment

What do you need to know? This is not a course on computers But you will need some UNIX for the exercises, and for your final project You will also need to know some R to handle the exercises But GenePublisher will handle R for you during the projects

What is UNIX? UNIX is not just one operating system, but a collection of many different systems sharing a common interface It has evolved alongside the internet and is geared toward multi-user environments, and big multi- processors like our servers At it’s heart, UNIX is a text-based operating system – that means a little typing is required UNIX Lives! (Particularly Linux!)

Logging on – Windows users Start the program ssh, it should be on your desktop Click on “Quick Connect” Enter the following: –Host name: genome.cbs.dtu.dk –User Name: mscXX (XX=Your account number) –Port Number: 22 –Authentication Method: You will then be prompted for your password

UNIX comes with a help system It depends on the program in question: –Either as a ‘man-page’ manual page using the command ‘man’ Example: man less –Or through the ‘-h’ option Example: acroread ‘-h’ By the way, the ‘man-pages’ are displayed using the program less, so you scroll with ‘k’ and ‘j’

Navigating Directories Key commands: –ls#lists the files in the current directory –cd dir#changes working directory to ‘dir’ –mkdir dir #makes a new directory called ‘dir’ Nice tricks: –The shorthand ‘ll’ is short for ls –l –The asterisk ‘*’ is a wildcard – ‘ls *.txt’ will list all files ending with ‘.txt’ –‘cd..’ takes you back one directory –plain ‘cd’ (no arguments) takes you to your home

Basic File Handling Key commands: –cp x y#creates a copy of file ‘x’ named ‘y’ –mv x y#moves file ‘x’ to file ‘y’. File ‘x’ is erased –rm x#removes (erases) file ‘x’. (Tip: use ls x first!) –ln –s x y#creates a symbolic link to ‘x’ called ‘y’. Similar to shortcuts in Windows Nice tricks: –A lone period ‘.’ means current directory. This means you can copy a file into current dir like this ‘cp elsewhere/file.’ –The ‘-r’ option to rm removes directories. e.g. ‘rm –r dir’ –Many commands have options accessed using a ‘-’ Read the man-pages to see all options

Short UNIX exercise: Logging on 1.Log onto genome You may be asked if you are sure you want to connect. Type ‘yes’ 2.Start R by typing R 3.In R, type library(affy) If you don’t get any error messages (Warnings are OK!), then this verifies that you can run R and Bioconductor 4.Verify that tunneling works by typing demo(graphics) You should now get see a new graphical window pop up on your screen. (Note: You may need to hit ‘return’ a couple of times for this to happen) Exit R by typing q() and answering ‘n’ Exit ibiology by closing the terminal window

Starting with R Just type ‘ R ’ on the command line How to get help: >help.start()#Opens browser >help()#For more on using help >help(..)#For help on.. >help.search(“..”)#To search for.. How to leave again: >q()#Image can be saved to.RData

Basic R commands Most arithmetic operators work like you would expect in R: >4 + 2 #Prints ‘6’ >3 * 4 #Prints ‘12’ Operators have precedence as known from basic algebra: >1 + 2 * 4 #Prints ‘9’, while >(1 + 2) * 4 #Prints ‘12’

Functions A function call in R looks like this: –function_name(arguments) –Examples: >cos(pi/3) #Prints ‘0.5’ >exp(1) #Prints ‘ ’ A function is identified in R by the parentheses –That’s why it’s: help(), and not: help

Variables (Objects) in R To assign a value to a variable (object): >x <- 4 #Assigns 4 to x >x = 4 #Assigns 4 to x (new) >x #Prints ‘4’ >y <- x + 2 #Assigns 6 to y Functions for managing variables: –ls() or objects() lists all existing objects –str(x) tells the structure (type) of object ‘x’ –rm(x) removes (deletes) the object ‘x’

Vectors in R A vector functions in R like a sequence of elements of the same mode. >x <- 1:10 #Creates a vector >y <- c(“a”,“b”,“c”) #So does this Handy functions for vectors: –c() – Concatenates arguments into a vector –min() – Returns the smallest value in vector –max() – Returns the largest value in vector –mean() – Returns the mean of the vector

More on Vectors Elements in a vector can be accessed individually: >x[1] #Prints first element >x[1:10] #Prints first 10 elements >x[c(1,3)] #Prints element 1 and 3 Most functions expect one vector as argument, rather than individual numbers >mean(1,2,3) #Replies ‘1’ >mean(c(1,2,3)) #Replies ‘2’

Graphics and Visualization Visualization is one of R’s strong points. R has many functions for drawing graphs, including: –plot(x,y) – Draws a basic xy plot of x against y –hist(x) – Draws a histogram of values in x Adding stuff to plots –points(x,y) – Add point (x,y) to existing graph. –lines(x,y) – Connect points with line. –text(x,y,str) – Writes string at (x,y).

Graphical Devices in R A graphical device is what ‘displays’ the graph. It can be a window, it can be the printer. Functions for plotting “Devices”: –X11() – This function allows you to change the size and composition of the plotting window. –par(mfrow=c(x,y)) – Splits a plotting device into x rows and y columns. –dev.print(postscript, file=“???.ps”) – Use this device to save the plot to a file.