Linux hep.wisc.edu

Similar documents
User Guide Version 2.0

Lab Working with Linux Command Line

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Unix Tutorial Haverford Astronomy 2014/2015

STA 303 / 1002 Using SAS on CQUEST

Introduction to Cuda Visualization. Graphical Application Tunnelling on Palmetto

CS CS Tutorial 2 2 Winter 2018

Introduction to the Linux Command Line

In this exercise you will practice working with HDFS, the Hadoop. You will use the HDFS command line tool and the Hue File Browser

C++ Programming on Linux

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C

Brief Linux Presentation. July 10th, 2006 Elan Borenstein

Using the Zoo Workstations

Introduction to Linux. Fundamentals of Computer Science

CENG 334 Computer Networks. Laboratory I Linux Tutorial

Introduction to Unix - Lab Exercise 0

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME

Introduction to Linux for BlueBEAR. January

CS Operating Systems, Fall 2018 Project #0 Description

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso

Introduction to Linux Spring 2014, Section 02, Lecture 3 Jason Tang

Getting Started with UNIX

LAB #5 Intro to Linux and Python on ENGR

Introduction to remote command line Linux. Research Computing Team University of Birmingham

AMS 200: Working on Linux/Unix Machines

CSC111 Computer Science II

CS Fundamentals of Programming II Fall Very Basic UNIX

Introduction: What is Unix?

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server.

Part I. Introduction to Linux

Running Sentaurus on the DOE Network

Operating Systems and Using Linux. Topics What is an Operating System? Linux Overview Frequently Used Linux Commands

Chap2: Operating-System Structures

Linux at the Command Line Don Johnson of BU IS&T

UNIX. The Very 10 Short Howto for beginners. Soon-Hyung Yook. March 27, Soon-Hyung Yook UNIX March 27, / 29

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

Physics REU Unix Tutorial

Using.htaccess to Restrict Access to OU Directories

Introduction to Unix The Windows User perspective. Wes Frisby Kyle Horne Todd Johansen

CSE 391 Lecture 1. introduction to Linux/Unix environment

Linux Operating System Environment Computadors Grau en Ciència i Enginyeria de Dades Q2

Using WestGrid from the desktop Oct on Access Grid

CSC 112 Lab 1: Introduction to Unix and C++ Fall 2009

Introduction to Linux Part 1. Anita Orendt and Wim Cardoen Center for High Performance Computing 24 May 2017

Programming and Data Structure Laboratory (CS13002)

1 Getting Started with Linux.

Unit 10. Linux Operating System

CSE 391 Lecture 1. introduction to Linux/Unix environment

Introduction in Unix. Linus Torvalds Ken Thompson & Dennis Ritchie

Session 1: Accessing MUGrid and Command Line Basics

Lab 1 Introduction to UNIX and C

Lecture 01 - Working with Linux Servers and Git

DATA 301 Introduction to Data Analytics Command Line. Dr. Ramon Lawrence University of British Columbia Okanagan

Why learn the Command Line? The command line is the text interface to the computer. DATA 301 Introduction to Data Analytics Command Line

CSE 390a Lecture 1. introduction to Linux/Unix environment

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016

Due: February 26, 2014, 7.30 PM

Using UNIX. -rwxr--r-- 1 root sys Sep 5 14:15 good_program

Getting Started With UNIX Lab Exercises

Tutorial 1: Unix Basics

Software Installation - Accessing Linux and Checking your Environmental Variables

Virtual Machine. Linux flavor : Debian. Everything (except slides) preinstalled for you.

Operating Systems. Copyleft 2005, Binnur Kurt

Warmup. A programmer s wife tells him, Would you mind going to the store and picking up a loaf of bread? Also, if they have eggs, get a dozen.

Operating Systems 3. Operating Systems. Content. What is an Operating System? What is an Operating System? Resource Abstraction and Sharing

CHE3935. Lecture 1. Introduction to Linux

New User Tutorial. OSU High Performance Computing Center

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.)

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory

Intermediate Programming, Spring Misha Kazhdan

Introduction to Linux Environment. Yun-Wen Chen

Linux/Cygwin Practice Computer Architecture

Introduction to Linux

For Dr Landau s PHYS8602 course

CSCI 4152/6509 Natural Language Processing. Lab 1: FCS Computing Environment

Introduction to Unix: Fundamental Commands

Unix Tutorial. Beginner. CS Help Desk: Marc Jarvis (in spirit), Monica Ung, Corey Antoniuk 2015

Linux Survival Guide

Lab 1 Introduction to UNIX and C

ECE112 - Lab 6. Purpose. Parts/tools needed: Make sure we have a properly working environment

Temple University Computer Science Programming Under the Linux Operating System January 2017

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011

Programming Studio #1 ECE 190

Practical Session 0 Introduction to Linux

CMSC 201 Spring 2018 Lab 01 Hello World

Eugene, Niko, Matt, and Oliver

213/513/613 Linux/Git Bootcamp. Cyrus, Eugene, Minji, Niko

Linux/Unix Filesystems

Hitchhiker s Guide to VLSI Design with Cadence & Synopsys

Overview of the UNIX File System

Chapter-3. Introduction to Unix: Fundamental Commands

CMSC 201 Spring 2017 Lab 01 Hello World

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines

OO Fortran Exercises

Introduction to UNIX. SURF Research Boot Camp April Jeroen Engelberts Consultant Supercomputing

Introduction to Linux and Supercomputers

You should see something like this, called the prompt :

Remote Access to Matlab at Mason. CDS-130: Computing for Scientists. Spring Jie Zhang

15-122: Principles of Imperative Computation

CSE Linux VM. For Microsoft Windows. Based on opensuse Leap 42.2

Transcription:

Linux Environment @ hep.wisc.edu 1

Your Account : Login Name and usage You are given a unique login name (e.g. john) A temporary password is given to you Use this to login name and password to enter the desktop The login screen may look something similar to the picture below Type your login name john Type your password Click on the Log in button 2

Desktop Clicking on the login button will take you to a desktop manager That might look something similar to this picture below There are icons for application such as Terminal, Firefox (web browser) etc... Most of the commands are typed on the Terminal (Click to open one) Terminal Firefox 3

A Terminal might look like this : This is called Command Line or Prompt Commands are typed in here followed by a <enter/return> key to execute 4

Basic Linux File System / Command A command is an application name that you type to perform a certain action A file is an instance in the Linux file system that stores information in a certain format File extension defines what kind of format may have been used test.txt : defines a plain ascii text file test.jpg : defines a jpeg image file test.db : defines a database file test.html : defines a html file A directory is a folder that may contain multiple files or directories Your home directory contains your files ~ : abbreviation of your home directory which correspond to the directory (/afs/hep.wisc.edu/home/john) cd : change (go) to a directory cd ~ : Take you to your home directory (same as : cd /afs/hep.wisc.edu/home/john) ls : List all your files and directory ls ~ : List your files and directory inside the home directory rm : remove files or directory (Type after careful consideration) rm test.txt : Remove a file named test.txt in the current directory pwd : prints out the present working directory For each of these commands you can add options. To know about these options, you can type man <command name> (e.g., man rm) cp : copy a file (cp file1.txt file2.txt : copies file1.txt to file2.txt. There are now 2 files with same content) mv : move a file (mv file1.txt file2.txt : moves file1.txt to file2.txt. Only file2.txt exists) less : Show contents of a file mkdir : create a new directory (mkdir testdir : create a directory name testdir) 5

Creating a new File or directory Do not use special characters such as (!,@,#,$...) to create a file or directory letters, numbers, underscrores are best practice Do not start the file or directory name with a dot or dash Meaningful names are best practice Names are CaSe sensitive To create a new file, you need to set an editor An editor is an application that helps edit and organize the content of a file Here, application name emacs is used as an editor First, you can create an empty file by the following command : touch test.txt (This will create an empty file name test.txt) You can type emacs test.txt to open the editor and modify the file content Learn more about the emacs editor in here : http://refcards.com/docs/gildeas/gnu-emacs/emacs-refcard-a4.pdf 6

Creating and Storing your file Every CMS user is given extra chunk of storage space For your login name, the space is available in this directory, cd /afs/hep.wisc.edu/cms/john (e.g. for login name john) Then create new directories or files inside the above directory In addition, some machines provide temporary storage space called scratch located in : /scratch/john The machines that contains these files are (login01.hep.wisc.edu, login02.hep.wisc.edu... through... login06.hep.wisc.edu) Even if you are using your desktop, it is recommended to use these login machines and use your /afs/hep.wisc.edu/cms/john directory to do your CMS work To login to e.g., login05.hep.wisc.edu from your desktop, you can use the command ssh (e.g.) on your command line ssh -Y john@login05.hep.wisc.edu -Y option in ssh forwards the X11 settings After login into one of these machines you can follow the earlier slides to change directories, create, list or modify files 7

Login to the login.hep.wisc.edu (Linux terminal) If you are using a linux desktop to login to one of the login machines, then follow these steps : -) Open a Terminal on your desktop -) Type ssh -Y john@login05.hep.wisc.edu followed by your password -) Red lines highlights the things you need to type 8

Login to the login.hep.wisc.edu (Windows putty) If you are using a Windows OS, then you can use the application name Putty to login into login05.hep.wisc.edu -) Putty is a freeware and can be downloaded and installed from here, http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html -) Once installed, you can double click the application to open and then follow the pictures below to login to login05.hep.wisc.edu with your username and password 9

Login to the login.hep.wisc.edu (Mac Terminal.app) If you are using a Mac-OS-X, then you can use the application name Terminal.app to login into login05.hep.wisc.edu -) Terminal.app comes with the mac operating system -) You can find it in the folder tree : Applications - Utilities - Terminal -) Click to open it and use it in the same way as a linux terminal SSH and X11 forwarding In order to be able to open x-window on the login machines, you need to install XQuartz on your Mac XQuartz is a freeware and can be downloaded and installed from here http://xquartz.macosforge.org/landing/ Use the -Y option in ssh to be able to foward X and open x-terminals on the remote machine ssh -Y john@login05.hep.wisc.edu On the remote machine (login05.hep.wisc.edu), you can type command like xterm or gnome-terminal to open multiple terminals 10

Putty SSH and X11 forwarding In the putty configuration - SSH - X11, Enable X11 forwarding Type in localhost:0.0 in the X display location Once logged into the remote machine, you can type xterm or gnometerminal to open multiple terminals 11

Getting Help Do a web search before asking (someone might have seen the same problem and there might be a solution already) Try the solution, if that doesn t work, send an email to : help@hep.wisc.edu Handy links : http://legacy.cs.wisc.edu/csl/linux-orientation/unix-hands-on.pdf http://www1.cs.ucr.edu/faq/linux.pdf http://computing.fnal.gov/unixatfermilab/html/afs.html http://web.mit.edu/merolish/public/vi-ref.pdf 12