Lab 1: Getting Started with Linux The Extremely Illustrated Version. Graham Northup

Size: px
Start display at page:

Download "Lab 1: Getting Started with Linux The Extremely Illustrated Version. Graham Northup"

Transcription

1 Lab 1: Getting Started with Linux The Extremely Illustrated Version Graham Northup In today s lab, we ll be getting started with Linux and, perhaps more importantly, it s terminal. As we will be using systems running Linux for many of our assignments in this class, it s important to get a fair grasp of this early.

2 Objectives Be familiar with the use of the terminal on Linux systems. Know what Linux resources on campus are available for your use. Understand how to submit assignments for this course. I hope that you ll be able to leave with three things today: an understanding of how to use the terminal and issue commands within it, knowledge about the resources you have on campus for both use and help with the Linux systems you will be dealing with, and, of course, an understanding of how to submit assignments for this course.

3 Getting a Terminal Without further ado, then, let s get started! You re probably sitting in front of a Linux machine (in the ITL), so long as no one booted into Windows. (If someone did, just restart it.) These machines have a nice, fancy graphical user interface that you re probably quite familiar with; however, that s mostly because they have the benefit of monitors. When we re dealing with servers later, which don t, dealing with a terminal will be far more useful. To start, let s find a terminal on the machine in front of you; what I ve found to be the most robust way to start one is with this terminal emulator entry in the application launcher menu down in the bottom left of your display where the Start Menu would be on Windows...

4 Getting a Terminal...for the impatient, there s a quick-launch for the terminal emulator next to the launcher, too, but it s been known to disappear...

5 Getting a Terminal...as has the desktop icon, which tends to get moved around by bored students :)

6 Getting a Terminal If all went well, you should be looking at a window that appears like this; this is your terminal! Many of them will have green on black (though some hapless students also like to change the colorscheme, font size, etc.), but the important part is the text that you should see in the top-left; this is your prompt, the system s way of asking you what you would like to do. It contains three parts, separated by an at-sign (@) and a colon (:), and ended with a dollar sign ($), whose meaning we will go over later. Be familiar with entering text into this line; it works just like a normal text editor; you can insert characters, backspace, move left and right with the arrow keys, and so forth. You ll note that the cursor is a block; if you re more familiar with the cursor that goes between characters, just pretend it s on the left edge of that block.

7 Seeing Stuff It s time to run our first command! Type ls and press enter. (ls is short for list ; programmers like to abbreviate everything :) If all went well, you should see something like this, at least in the ITL. The text represents objects files and directories (or folders )--that are in your working directory. In general, all of the commands I m going to give you that work with files do so in your working directory, which is indicated by the last part of the prompt after the colon (:). Right now, it reads tilde (~), which means your home directory. Whenever you start a session, you usually start there. Not all terminals have color, and not all commands support it, but in this case, both do and ls has colored the directories blue for you. All of these are directories, so what does a file look like?

8 Making Files The easiest way to create a file is probably the touch command. This is the first one we ll be using which takes an argument something that tells touch about what it should do. In this case, it takes one argument: the name of the file it should create. Separate the command and argument with one or more spaces; the argument (a file name) should not contain spaces. Press Enter when you ve satisfactorily named your new file; I called it filename in these examples, but you can use your imagination. Now we can see what color a regular file is on this terminal: plain! It shows up as green because that is the default text color.

9 Moving Around When working (creating files, editing files, etc.), it is convenient to change your working directory so that you can separate your work into different places. Conceptually, this is like creating many folders to group your files into, and your terminal (really, shell) is in only one of these folders at a time. To change working directories, use the command cd ( change directory ); it takes just one argument, the name of an existing directory to change into. I chose the itl_chorus directory in these examples because I knew it contained a lot of files. Here, you can see the output of ls in that directory; many Unix veterans will almost compulsively ls whenever they change directories, make directories, make files, etc.; just to see what happened.

10 Moving Back We know that we can move into a subdirectory by naming it, but suppose that we want to move back out Linux provides for us a very special directory name for this purpose, called.. (two dots). Wherever you are, it always means the parent directory or one directory up. By cd ing into that directory, you can move back up again. You can do this indefinitely, and even explore the whole filesystem this way; if you ever get lost, just run cd without arguments, and it will return you back home ( ~ ).

11 Editing Files Linux systems are usually replete with a number of text editors. Various users tend to have their own preferences (Google editor war ) I will be teaching Vim, the vi-improved editor, but you are free to edit your assignments with whatever you feel comfortable with, including, e.g., CodeBlocks, Notepad++, etc. We learned how to create files in the terminal, but it s also arguably important to know how to edit them. For this course, I don t expect you to create files in exactly this way you are free to use whatever editor(s) you are comfortable with but, in keeping with the theme of learning how to use the terminal, I will be teaching how to use an old, venerable text editor: Vim. There are a few other text editors that are easily used from the terminal, too (including Emacs, Jeanna s favorite :), but I m covering this one just because I think it is more streamlined and I m much more familiar with it.

12 Starting Vim Vim s proper name is in Title Case, but, like most Linux commands, the command is given in all lowercase. Vim takes one argument the name of the file you would like to edit (it need not exist, and, indeed, Vim will create it for you if it doesn t).

13 Vim Once you re in Vim, you ll notice your prompt is gone! Vim has essentially taken over your terminal in order to display the file to you and let you edit it. Right now, of course, this file is empty, so there s nothing to display. Nonetheless, you will see some information along the bottom, and some tildes (~) along the side (blank lines past the end of the file), and the number 1 before your cursor that s the line number of the file you re in, the very first. A big caveat about Vim is that it is modal; what your keypresses do vary between what mode it is in. We re in normal mode right now, which, unlike many other text editors, is not for typing (it is used for very powerful editing, though). To actually type in this file, we want to get into insert mode...

14 Entering Insert Mode...which can be done by tapping I or i on your keyboard (without shift I will always indicate whether or not you need to hold shift!). If you did this right, Vim will tell you, in the bottom right part of your terminal, that you are in insert mode (with the word INSERT ).

15 Typing Text Now that you re in insert mode, you can type text mostly normally; the arrow keys will move your cursor around, enter creates a new line, etc.. This should feel at least passingly familiar.

16 Exiting Insert Mode Now, once we re done typing text, we d like to exit Vim and save our file. Naturally, since this has nothing to do with inserting text, we don t do this from insert mode. Instead, tap Esc on your keyboard to escape insert mode and enter normal mode again. (Tapping Esc at least a couple times will guarantee that you always end up back in normal mode.) You will note that the word INSERT disappears from the bottom left.

17 Exiting Vim From normal mode, we can now exit Vim! Press both Shift and ; (in other words, type a colon : ), and you should see a colon appear in the bottom right, along with your cursor. This is command mode, where we can issue a number of other powerful commands to Vim. The one we want right now is wq, short for write (save) and quit. There is also q! (quit without saving changes) and just w (save now, but keep editing). When you ve entered the command you want, press Enter, and Vim should exit...

18 Back to the Terminal...which should bring you back to the terminal (shell) you re used to, complete with a prompt asking you what to do next.

19 Displaying File Contents In this case, we want to make sure we actually wrote something to the file; we ll be using the command cat ( concatenate, because it can actually display multiple files) for that. Give it as an argument the name of a file, and it will write its contents out to your terminal. If all went well during your Vim session, you should see exactly what you typed into it (without, e.g., line numbers).

20 Copying Files Finally, we ll cover operations that are not unlike using the clipboard in other file managers. This command is cp, or copy, and is the first we ve covered so far that takes two arguments; the first is an existing file, and the second is a name to copy it to (or directory to copy it into; more on that later). After the copy performed in this example, you can see that the second name now exists, is a regular file, and (via cat) has the same contents as the original file. You can copy a file as many times as you want (up to how much disk space you have :).

21 Moving Files The equivalent to the cut and paste is a command called mv ( move ), which also takes two arguments. Unlike cp, mv will not retain the original file, but otherwise behaves exactly the same. (Due to implementation details, it s also much faster than cp for moving large files within the same disk.) When given a new filename, mv acts just like the rename function of some other file managers; in this example, though, I take advantage of specifying a target directory for the second argument, and you can see afterward that the file is moved (with the same base name) into the directory that I specified, and is no longer in home (~).

22 Removing Files I urge you to exercise great caution before using this next command, but it is nonetheless sometimes useful; this is rm ( remove ), which takes just one argument the file or directory you would like to remove. Unlike some other file managers that have a Trash or Recycle Bin, there is no option to change your mind and unremove a file later, so please make sure that you actually want to destroy the file before you do it! Chances are, if you re not absolutely certain you don t need a file anymore, you re better off just moving it somewhere else instead.

23 Where you are For now, you have been working on the local host, which is probably one of the ITL machines. Work saved on these machines is accessible by anyone else who might sit there! For assignments, the University has dedicated servers which also provide a Linux environment, one of which is Odin. For now, we ve been working on the local host, the ITL machine in front of us (which may be re-imaged or taken down for maintenance at any time you have been warned), but one of the beautiful things about the terminal is that it was made for connecting to other machines. In the good-ol days, this was frequently done by manually plugging serial cables into things, but now that we have the Internet...

24 Accessing Servers Your Clarkson username Full name of the server...we tend to use it to connect to remote hosts instead. This will be the second to last command, and I apologize that it s a little more complex than the previous ones, but you do need to make sure you get all the details right. ssh takes just one argument, but it consists of both a username and a host name or IP address (for those of you familiar with networking), separated by an at-sign (@). For this example, I use Odin (actually, Odin s full name, which is valid everywhere on the Internet). You should replace everything to the left of the at-sign (@), which reads student in this example, with your Clarkson username. In the lab itself, we set passwords during this day. If you didn t get the opportunity to do that yet, please contact Jeanna!

25 Accessing Servers The very first time you connect to something, the two hosts exchange cryptographic secrets (ssh is the secure shell ), and you have to indicate whether or not you ll trust this host. If you do trust it (the entire ITL does right now), ssh will later warn you if its identity changes later, so you know whether or not you are being attacked (which is unlikely to boot :).

26 Accessing Servers Either after asking you to trust the server, or if it didn t ask you, it will now ask you for a password. The characters you type won t appear, this is a security feature.

27 Accessing Servers If you managed to get your password correct (again, ask Jeanna if this doesn t work!), you should be greeted with a rather colorful prompt! You ll see that some of the parts of this prompt have changed; indeed, the first part before the at-sign (@) is the username, and the part between the at-sign and colon (:) is the (abbreviated) host name. These parts of the prompt are there to explicitly tell you who you re working as and what machine you re on. As expected, since we just started a session, you re in your home directory (~).

28 Where you are Servers Local host (e.g., ITL machine) Network / Internet It s important to note that your terminal emulator is still running on the local host, but ssh is now running in it, and like Vim it is intercepting your keystrokes and sending them to the remote host for processing. Essentially, you are working on the server by sending the keystrokes to it, and the server sends you back what it would like your terminal to display and ssh is mediating the connection. Neat, right? You can nest these sessions as deep as you d like, and even tunnel data through them I won t cover that in class, but ssh is a very, very powerful tool to know how to use well much like Vim.

29 Accessing Servers Done on server Driving home the point, when we work on Odin (in this case), you ll note that the contents of your home (~) are completely different from the ITL machine you were on. The nice thing about this is that Odin is going to remain Odin, so wherever you connect to it from, all the files on it will remain there. For this reason alone, some students like to just do their work on Odin by ssh ing in and using, say, Vim. Others, however, like to do their work on their own machines, and copy it in, which I ll cover in just a moment. First, we should learn how to exit our session...

30 Exiting Servers...which is actually just a command called exit, no arguments! Type that, and press Enter...

31 Exiting Servers Done on server Done on local host...and we re back to where we started. Note that nothing on the ITL machine changed while we were working on Odin all it was doing was forwarding keystrokes and displaying text. Aside from the ssh command in the history, there s practically no record that our communication even happened.

32 Copying Files to Servers Your Clarkson username Server s full name Location to copy to...now, to copy a file to Odin, we ll need to learn about our last command: scp ( secure copy ). Like cp, it takes two arguments; unlike cp, one or both of the arguments can be a username@host combination like what you d pass to ssh followed by a colon (:) and where you d like to copy it to, relative to your home directory (~). Putting just one colon at the end of the hostname will copy to your home directory, but I like putting the tilde-slash (~/) there just to be pedantic. (Recall that specifying a directory like home will copy the file into that directory.)

33 Copying Files to Servers If all goes well (and there is a host to connect to), it will ask you for your password, just like ssh. (It actually uses ssh internally, so it will do all sorts of other things, including bothering you about host identity :)

34 Copying Files to Servers If all went well, you ll see little file copy progress one file per line. Now, in this example, I copied a 46 byte file, which happened almost instantly, but larger files will take correspondingly longer. Once scp is done, it will return you to a prompt on the local host it does not start a session for you...

35 Copying Files to Servers...but you can do that, as usual, by using ssh right afterward. As you can see, the file I asked to be copied in the example was indeed copied, and its contents are the same.

36 Accessing Servers in Windows putty I would be remiss if I didn t note that many of you are Windows users; for the Mac users out there, note that all of the commands I covered today should work without modification in your Terminal app. Windows remains to be the only popular operating system that I know of (even amongst obscure operating systems) that doesn t have support for this kind of terminal emulator or environment. Luckily some determined volunteers got together and wrote software that will let you do ssh from a Windows machine; the most popular by far is this imposing but powerful application called PuTTY, which shows you all the bells and whistles that ssh has. Nonetheless, the only thing you usually need to fill in is the Host Name (or IP address) bar on the top; the rest of the fields have sensible defaults. It will then ask for a username and password, and hopefully will just work after that :)

37 Copying Files to Servers in Windows WinSCP winscp.net Now, for the textually-challenged, there s also a Windows application for copying files, called WinSCP, that presents a nice little dialog with local and remote filesystems displayed, allowing you to upload and download at your discretion. Again, all of this can be done with scp and sftp as well, but not without some command-line massaging :) Applications exist for this kind of graphical file management for other platforms, too; check your usual software sources to get them.

38 Task 1 Create three files in your home directory (~) on Odin (odin.cslabs.clarkson.edu): touch one file; Create one file by editing it (e.g., with vim); Copy one file with scp. (Filenames nor contents are important.) Existence of these files will be checked and graded by the morning of Tuesday, September 6. And now we have gotten to our first task of the year! Spend some time getting familiar with using the command line and manipulating files, because at the very least, you will probably at least be copying files to Odin and moving them around, if not editing them directly there. Another benefit to using Odin for developing is that we will ultimately be using it to grade things, too, so you have access to the same tools we will use to grade your assignments (this will be a good thing shortly when we talk about compilers). I will just be basing a grade in this course on whether or not there are three (or more :) regular files (ignore the cs141 ) in your home directory when one does ls. When I get a website up, that will have more details. Thanks for coming, and good luck!

Physics REU Unix Tutorial

Physics REU Unix Tutorial Physics REU Unix Tutorial What is unix? Unix is an operating system. In simple terms, its the set of programs that makes a computer work. It can be broken down into three parts. (1) kernel: The component

More information

Using the Zoo Workstations

Using the Zoo Workstations Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions

More information

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX

CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX CS 215 Fundamentals of Programming II Spring 2019 Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the EECS labs that dual boot

More information

CS Fundamentals of Programming II Fall Very Basic UNIX

CS Fundamentals of Programming II Fall Very Basic UNIX CS 215 - Fundamentals of Programming II Fall 2012 - Very Basic UNIX This handout very briefly describes how to use Unix and how to use the Linux server and client machines in the CS (Project) Lab (KC-265)

More information

Introduction to the Linux Command Line

Introduction to the Linux Command Line Introduction to the Linux Command Line May, 2015 How to Connect (securely) ssh sftp scp Basic Unix or Linux Commands Files & directories Environment variables Not necessarily in this order.? Getting Connected

More information

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Contents 1 An Introduction to C++, Unix, SSH and Komodo Edit 1.1 Introduction 1.2 The C++ Language 1.2.1 A Brief Introduction 1.2.1.1 Recommended

More information

Session 1: Accessing MUGrid and Command Line Basics

Session 1: Accessing MUGrid and Command Line Basics Session 1: Accessing MUGrid and Command Line Basics Craig A. Struble, Ph.D. July 14, 2010 1 Introduction The Marquette University Grid (MUGrid) is a collection of dedicated and opportunistic resources

More information

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

CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C CpSc 1111 Lab 1 Introduction to Unix Systems, Editors, and C Welcome! Welcome to your CpSc 111 lab! For each lab this semester, you will be provided a document like this to guide you. This material, as

More information

CMSC 201 Spring 2017 Lab 01 Hello World

CMSC 201 Spring 2017 Lab 01 Hello World CMSC 201 Spring 2017 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 5th by 8:59:59 PM Value: 10 points At UMBC, our General Lab (GL) system is designed to grant students the

More information

CSE115 Lab exercises for week 1 of recitations Spring 2011

CSE115 Lab exercises for week 1 of recitations Spring 2011 Introduction In this first lab you will be introduced to the computing environment in the Baldy 21 lab. If you are familiar with Unix or Linux you may know how to do some or all of the following tasks.

More information

CS CS Tutorial 2 2 Winter 2018

CS CS Tutorial 2 2 Winter 2018 CS CS 230 - Tutorial 2 2 Winter 2018 Sections 1. Unix Basics and connecting to CS environment 2. MIPS Introduction & CS230 Interface 3. Connecting Remotely If you haven t set up a CS environment password,

More information

When you first log in, you will be placed in your home directory. To see what this directory is named, type:

When you first log in, you will be placed in your home directory. To see what this directory is named, type: Chem 7520 Unix Crash Course Throughout this page, the command prompt will be signified by > at the beginning of a line (you do not type this symbol, just everything after it). Navigation When you first

More information

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

Introduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical

More information

Lab: Supplying Inputs to Programs

Lab: Supplying Inputs to Programs Steven Zeil May 25, 2013 Contents 1 Running the Program 2 2 Supplying Standard Input 4 3 Command Line Parameters 4 1 In this lab, we will look at some of the different ways that basic I/O information can

More information

CMSC 201 Spring 2018 Lab 01 Hello World

CMSC 201 Spring 2018 Lab 01 Hello World CMSC 201 Spring 2018 Lab 01 Hello World Assignment: Lab 01 Hello World Due Date: Sunday, February 4th by 8:59:59 PM Value: 10 points At UMBC, the GL system is designed to grant students the privileges

More information

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

ENCM 339 Fall 2017: Editing and Running Programs in the Lab page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a

More information

Introduction to Linux

Introduction to Linux Introduction to Linux The command-line interface A command-line interface (CLI) is a type of interface, that is, a way to interact with a computer. Window systems, punched cards or a bunch of dials, buttons

More information

Setting up my Dev Environment ECS 030

Setting up my Dev Environment ECS 030 Setting up my Dev Environment ECS 030 1 Command for SSHing into a CSIF Machine If you already have a terminal and already have a working ssh program (That is, you type ssh into the terminal and it doesn

More information

STA 303 / 1002 Using SAS on CQUEST

STA 303 / 1002 Using SAS on CQUEST STA 303 / 1002 Using SAS on CQUEST A review of the nuts and bolts A.L. Gibbs January 2012 Some Basics of CQUEST If you don t already have a CQUEST account, go to www.cquest.utoronto.ca and request one.

More information

Lab 1 Introduction to UNIX and C

Lab 1 Introduction to UNIX and C Name: Lab 1 Introduction to UNIX and C This first lab is meant to be an introduction to computer environments we will be using this term. You must have a Pitt username to complete this lab. NOTE: Text

More information

Introduction to the Emacs Editor

Introduction to the Emacs Editor Introduction to the Emacs Editor Scott D. Anderson Wellesley College Scott.Anderson@acm.org c Fall 2004 1 What is Emacs? Emacs is an editor: a program that allows you to modify files. Many of you have

More information

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide

Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Overview Welcome to this refresher workshop! This document will serve as a self-guided explanation to

More information

1 Installation (briefly)

1 Installation (briefly) Jumpstart Linux Bo Waggoner Updated: 2014-09-15 Abstract A basic, rapid tutorial on Linux and its command line for the absolute beginner. Prerequisites: a computer on which to install, a DVD and/or USB

More information

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used:

When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: Linux Tutorial How to read the examples When talking about how to launch commands and other things that is to be typed into the terminal, the following syntax is used: $ application file.txt

More information

Introduction to Unix - Lab Exercise 0

Introduction to Unix - Lab Exercise 0 Introduction to Unix - Lab Exercise 0 Along with this document you should also receive a printout entitled First Year Survival Guide which is a (very) basic introduction to Unix and your life in the CSE

More information

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12)

Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12) Using LINUX a BCMB/CHEM 8190 Tutorial Updated (1/17/12) Objective: Learn some basic aspects of the UNIX operating system and how to use it. What is UNIX? UNIX is the operating system used by most computers

More information

CSC111 Computer Science II

CSC111 Computer Science II CSC111 Computer Science II Lab 1 Getting to know Linux Introduction The purpose of this lab is to introduce you to the command line interface in Linux. Getting started In our labs If you are in one of

More information

FILE MAINTENANCE COMMANDS

FILE MAINTENANCE COMMANDS Birla Institute of Technology & Science, Pilani Computer Programming (CS F111) Lab-2 ----------------------------------------------------------------------------------------------------------------------

More information

Running Wordstar 6 on Windows 7 Using vdos

Running Wordstar 6 on Windows 7 Using vdos Running Wordstar 6 on Windows 7 Using vdos Thanks to Dennis McCunney for helping me learn how to set vdos up. DISCLAIMER #1: As explained below, I am running Wordstar 6 for DOS on a Windows 7 (64- bit)

More information

CHE3935. Lecture 1. Introduction to Linux

CHE3935. Lecture 1. Introduction to Linux CHE3935 Lecture 1 Introduction to Linux 1 Logging In PuTTY is a free telnet/ssh client that can be run without installing it within Windows. It will only give you a terminal interface, but used with a

More information

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

Oregon State University School of Electrical Engineering and Computer Science. CS 261 Recitation 1. Spring 2011 Oregon State University School of Electrical Engineering and Computer Science CS 261 Recitation 1 Spring 2011 Outline Using Secure Shell Clients GCC Some Examples Intro to C * * Windows File transfer client:

More information

LAB #5 Intro to Linux and Python on ENGR

LAB #5 Intro to Linux and Python on ENGR LAB #5 Intro to Linux and Python on ENGR 1. Pre-Lab: In this lab, we are going to download some useful tools needed throughout your CS career. First, you need to download a secure shell (ssh) client for

More information

Unix basics exercise MBV-INFX410

Unix basics exercise MBV-INFX410 Unix basics exercise MBV-INFX410 In order to start this exercise, you need to be logged in on a UNIX computer with a terminal window open on your computer. It is best if you are logged in on freebee.abel.uio.no.

More information

UoW HPC Quick Start. Information Technology Services University of Wollongong. ( Last updated on October 10, 2011)

UoW HPC Quick Start. Information Technology Services University of Wollongong. ( Last updated on October 10, 2011) UoW HPC Quick Start Information Technology Services University of Wollongong ( Last updated on October 10, 2011) 1 Contents 1 Logging into the HPC Cluster 3 1.1 From within the UoW campus.......................

More information

Lab 1 Introduction to UNIX and C

Lab 1 Introduction to UNIX and C Name: Lab 1 Introduction to UNIX and C This first lab is meant to be an introduction to computer environments we will be using this term. You must have a Pitt username to complete this lab. The doc is

More information

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0

Helsinki 19 Jan Practical course in genome bioinformatics DAY 0 Helsinki 19 Jan 2017 529028 Practical course in genome bioinformatics DAY 0 This document can be downloaded at: http://ekhidna.biocenter.helsinki.fi/downloads/teaching/spring2017/exercises_day0.pdf The

More information

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit

Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit Chapter 1 An Introduction to C++, Unix, SSH and Komodo Edit A portion of this lab is to be done during the scheduled lab time. The take-home programming assignment is to be turned in before the next lab;

More information

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller Table of Contents Introduction!... 1 Part 1: Entering Data!... 2 1.a: Typing!... 2 1.b: Editing

More information

Tutorial 1: Unix Basics

Tutorial 1: Unix Basics Tutorial 1: Unix Basics To log in to your ece account, enter your ece username and password in the space provided in the login screen. Note that when you type your password, nothing will show up in the

More information

Using Ruby and irb in CSE 341 Winter 2015

Using Ruby and irb in CSE 341 Winter 2015 Using Ruby and irb in CSE 341 Winter 2015 Overview This is a long version of the directions for installing Ruby. The last two homeworks will be using the Ruby language. We recommend editing your files

More information

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version...

Contents. Note: pay attention to where you are. Note: Plaintext version. Note: pay attention to where you are... 1 Note: Plaintext version... Contents Note: pay attention to where you are........................................... 1 Note: Plaintext version................................................... 1 Hello World of the Bash shell 2 Accessing

More information

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory

Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory Tiny Instruction Manual for the Undergraduate Mathematics Unix Laboratory 1 Logging In When you sit down at a terminal and jiggle the mouse to turn off the screen saver, you will be confronted with a window

More information

Linux File System and Basic Commands

Linux File System and Basic Commands Linux File System and Basic Commands 0.1 Files, directories, and pwd The GNU/Linux operating system is much different from your typical Microsoft Windows PC, and probably looks different from Apple OS

More information

Basic Survival UNIX.

Basic Survival UNIX. Basic Survival UNIX Many Unix based operating systems make available a Graphical User Interface for the sake of providing an easy way for less experienced users to work with the system. Some examples are

More information

Intermediate Programming, Spring Misha Kazhdan

Intermediate Programming, Spring Misha Kazhdan 600.120 Intermediate Programming, Spring 2017 Misha Kazhdan Outline Unix/Linux command line Basics of the Emacs editor Compiling and running a simple C program Cloning a repository Connecting to ugrad

More information

Lab 2 Building on Linux

Lab 2 Building on Linux Lab 2 Building on Linux Assignment Details Assigned: January 28 th, 2013. Due: January 30 th, 2013 at midnight. Background This assignment should introduce the basic development tools on Linux. This assumes

More information

Chapter-3. Introduction to Unix: Fundamental Commands

Chapter-3. Introduction to Unix: Fundamental Commands Chapter-3 Introduction to Unix: Fundamental Commands What You Will Learn The fundamental commands of the Unix operating system. Everything told for Unix here is applicable to the Linux operating system

More information

EECS 211 Lab 2. Getting Started. Getting the code. Windows. Mac/Linux

EECS 211 Lab 2. Getting Started. Getting the code. Windows. Mac/Linux EECS 211 Lab 2 Control Statements, Functions and Structures Winter 2017 Today we are going to practice navigating in the shell and writing basic C++ code. Getting Started Let s get started by logging into

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 2: SEP. 8TH INSTRUCTOR: JIAYIN WANG 1 Notice Class Website http://www.cs.umb.edu/~jane/cs114/ Reading Assignment Chapter 1: Introduction to Java Programming

More information

Lab 3a Using the vi editor

Lab 3a Using the vi editor Lab 3a Using the vi editor Objectives: Become familiar with the vi Editor Review the three vi Modes Review keystrokes to move between vi modes Create a new file with vi Editor Invoke vi with show mode

More information

Due: February 26, 2014, 7.30 PM

Due: February 26, 2014, 7.30 PM Jackson State University Department of Computer Science CSC 438-01/539-01 Systems and Software Security, Spring 2014 Instructor: Dr. Natarajan Meghanathan Project 1: Exploring UNIX Access Control in a

More information

15-122: Principles of Imperative Computation

15-122: Principles of Imperative Computation 15-122: Principles of Imperative Computation Lab 0 Navigating your account in Linux Tom Cortina, Rob Simmons Unlike typical graphical interfaces for operating systems, here you are entering commands directly

More information

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications Hello World! Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande Chapter 1 Copyright 2009 Manning Publications brief contents Preface xiii Acknowledgments xix About this

More information

CS 246 Winter Tutorial 1

CS 246 Winter Tutorial 1 CS 246 Winter 2015 - Tutorial 1 January 11, 2016 1 Summary General Administration Stuff CS Undergraduate Environment Useful Software Basic Commands.profile Text Editors 2 General Administration Stuff Course

More information

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

Temple University Computer Science Programming Under the Linux Operating System January 2017 Temple University Computer Science Programming Under the Linux Operating System January 2017 Here are the Linux commands you need to know to get started with Lab 1, and all subsequent labs as well. These

More information

CS 1301 Fall 2008 Lab 2 Introduction to UNIX

CS 1301 Fall 2008 Lab 2 Introduction to UNIX CS 1301 Fall 2008 Lab 2 Introduction to UNIX Due: Friday, September 19 th, at 6 PM (Monday, September 22 nd for 10% off) Notes: Do not wait until the last minute to do this assignment in case you run into

More information

Using GitHub to Share with SparkFun a

Using GitHub to Share with SparkFun a Using GitHub to Share with SparkFun a learn.sparkfun.com tutorial Available online at: http://sfe.io/t52 Contents Introduction Gitting Started Forking a Repository Committing, Pushing and Pulling Syncing

More information

PART 7. Getting Started with Excel

PART 7. Getting Started with Excel PART 7 Getting ed with Excel When you start the application, Excel displays a blank workbook. A workbook is a file in which you store your data, similar to a three-ring binder. Within a workbook are worksheets,

More information

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

CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) 1 Introduction 1 CS 2400 Laboratory Assignment #1: Exercises in Compilation and the UNIX Programming Environment (100 pts.) This laboratory is intended to give you some brief experience using the editing/compiling/file

More information

Touring the Mac S e s s i o n 4 : S A V E, P R I N T, C L O S E & Q U I T

Touring the Mac S e s s i o n 4 : S A V E, P R I N T, C L O S E & Q U I T Touring the Mac S e s s i o n 4 : S A V E, P R I N T, C L O S E & Q U I T Touring_the_Mac_Session-4_Feb-22-2011 1 To store your document for later retrieval, you must save an electronic file in your computer.

More information

Preparing and Running C Programs for CS 136 (W08)

Preparing and Running C Programs for CS 136 (W08) Preparing and Running C Programs for CS 136 (W08) There are a number of options available to you for developing C code. The choice is up to you. The main thing to keep in mind is that, as in CS 135, the

More information

Clean & Speed Up Windows with AWO

Clean & Speed Up Windows with AWO Clean & Speed Up Windows with AWO C 400 / 1 Manage Windows with this Powerful Collection of System Tools Every version of Windows comes with at least a few programs for managing different aspects of your

More information

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are:

One of the hardest things you have to do is to keep track of three kinds of commands when writing and running computer programs. Those commands are: INTRODUCTION Your first daily assignment is to modify the program test.py to make it more friendly. But first, you need to learn how to edit programs quickly and efficiently. That means using the keyboard

More information

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

Carnegie Mellon. Linux Boot Camp. Jack, Matthew, Nishad, Stanley 6 Sep 2016 Linux Boot Camp Jack, Matthew, Nishad, Stanley 6 Sep 2016 1 Connecting SSH Windows users: MobaXterm, PuTTY, SSH Tectia Mac & Linux users: Terminal (Just type ssh) andrewid@shark.ics.cs.cmu.edu 2 Let s

More information

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one]

This lab exercise is to be submitted at the end of the lab session! passwd [That is the command to change your current password to a new one] Data and Computer Security (CMPD414) Lab II Topics: secure login, moving into HOME-directory, navigation on Unix, basic commands for vi, Message Digest This lab exercise is to be submitted at the end of

More information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

NCMail: Microsoft Outlook User s Guide

NCMail: Microsoft Outlook User s Guide NCMail: Microsoft Outlook 2003 Email User s Guide Revision 1.0 11/10/2007 This document covers how to use Microsoft Outlook 2003 for accessing your email with the NCMail Exchange email system. The syntax

More information

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

213/513/613 Linux/Git Bootcamp. Cyrus, Eugene, Minji, Niko 213/513/613 Linux/Git Bootcamp Cyrus, Eugene, Minji, Niko Outline 1. SSH, bash, and navigating Linux 2. Using VIM 3. Setting up VS Code 4. Git SSH 1. On macos/linux: $ ssh ANDREW-ID@shark.ics.cs.cmu.edu

More information

Outlook Web Access. In the next step, enter your address and password to gain access to your Outlook Web Access account.

Outlook Web Access. In the next step, enter your  address and password to gain access to your Outlook Web Access account. Outlook Web Access To access your mail, open Internet Explorer and type in the address http://www.scs.sk.ca/exchange as seen below. (Other browsers will work but there is some loss of functionality) In

More information

Intro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab

Intro to Linux. this will open up a new terminal window for you is super convenient on the computers in the lab Basic Terminal Intro to Linux ssh short for s ecure sh ell usage: ssh [host]@[computer].[otheripstuff] for lab computers: ssh [CSID]@[comp].cs.utexas.edu can get a list of active computers from the UTCS

More information

How to Rescue a Deleted File Using the Free Undelete 360 Program

How to Rescue a Deleted File Using the Free Undelete 360 Program R 095/1 How to Rescue a Deleted File Using the Free Program This article shows you how to: Maximise your chances of recovering the lost file View a list of all your deleted files in the free Restore a

More information

sftp - secure file transfer program - how to transfer files to and from nrs-labs

sftp - secure file transfer program - how to transfer files to and from nrs-labs last modified: 2017-01-20 p. 1 CS 111 - useful details: ssh, sftp, and ~st10/111submit You write Racket BSL code in the Definitions window in DrRacket, and save that Definitions window's contents to a

More information

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

You can use the WinSCP program to load or copy (FTP) files from your computer onto the Codd server. CODD SERVER ACCESS INSTRUCTIONS OVERVIEW Codd (codd.franklin.edu) is a server that is used for many Computer Science (COMP) courses. To access the Franklin University Linux Server called Codd, an SSH connection

More information

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 3: SEP. 13TH INSTRUCTOR: JIAYIN WANG 1 Notice Reading Assignment Chapter 1: Introduction to Java Programming Homework 1 It is due this coming Sunday

More information

Operating System Interaction via bash

Operating System Interaction via bash Operating System Interaction via bash bash, or the Bourne-Again Shell, is a popular operating system shell that is used by many platforms bash uses the command line interaction style generally accepted

More information

Text Editing in UNIX. A short introduction to vi, pico, and gedit

Text Editing in UNIX. A short introduction to vi, pico, and gedit Text Editing in UNIX A short introduction to vi, pico, and gedit Copyright 2006 2009 Stewart Weiss About UNIX editors There are two types of text editors in UNIX: those that run in terminal windows, called

More information

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209 CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System

More information

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum

Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum Introduction to Git and GitHub for Writers Workbook February 23, 2019 Peter Gruenbaum Table of Contents Preparation... 3 Exercise 1: Create a repository. Use the command line.... 4 Create a repository...

More information

Exploring UNIX: Session 3

Exploring UNIX: Session 3 Exploring UNIX: Session 3 UNIX file system permissions UNIX is a multi user operating system. This means several users can be logged in simultaneously. For obvious reasons UNIX makes sure users cannot

More information

Helpful Tips for Labs. CS140, Spring 2015

Helpful Tips for Labs. CS140, Spring 2015 Helpful Tips for Labs CS140, Spring 2015 Linux/Unix Commands Creating, Entering, Changing Directories to Create a Directory (a Folder) on the command line type mkdir folder_name to Enter that Folder cd

More information

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs

Linux Tutorial #1. Introduction. Login to a remote Linux machine. Using vim to create and edit C++ programs Linux Tutorial #1 Introduction The Linux operating system is now over 20 years old, and is widely used in industry and universities because it is fast, flexible and free. Because Linux is open source,

More information

Welcome Back! Without further delay, let s get started! First Things First. If you haven t done it already, download Turbo Lister from ebay.

Welcome Back! Without further delay, let s get started! First Things First. If you haven t done it already, download Turbo Lister from ebay. Welcome Back! Now that we ve covered the basics on how to use templates and how to customise them, it s time to learn some more advanced techniques that will help you create outstanding ebay listings!

More information

A Brief Introduction to the Linux Shell for Data Science

A Brief Introduction to the Linux Shell for Data Science A Brief Introduction to the Linux Shell for Data Science Aris Anagnostopoulos 1 Introduction Here we will see a brief introduction of the Linux command line or shell as it is called. Linux is a Unix-like

More information

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso

CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso CMSC 104 Lecture 2 by S Lupoli adapted by C Grasso A layer of software that runs between the hardware and the user. Controls how the CPU, memory and I/O devices work together to execute programs Keeps

More information

Part I. Introduction to Linux

Part I. Introduction to Linux Part I Introduction to Linux 7 Chapter 1 Linux operating system Goal-of-the-Day Familiarisation with basic Linux commands and creation of data plots. 1.1 What is Linux? All astronomical data processing

More information

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners

Getting Started. Excerpted from Hello World! Computer Programming for Kids and Other Beginners Getting Started Excerpted from Hello World! Computer Programming for Kids and Other Beginners EARLY ACCESS EDITION Warren D. Sande and Carter Sande MEAP Release: May 2008 Softbound print: November 2008

More information

Chapter 4. Unix Tutorial. Unix Shell

Chapter 4. Unix Tutorial. Unix Shell Chapter 4 Unix Tutorial Users and applications interact with hardware through an operating system (OS). Unix is a very basic operating system in that it has just the essentials. Many operating systems,

More information

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

History. Terminology. Opening a Terminal. Introduction to the Unix command line GNOME Introduction to the Unix command line History Many contemporary computer operating systems, like Microsoft Windows and Mac OS X, offer primarily (but not exclusively) graphical user interfaces. The user

More information

Introduction to Scientific Computing

Introduction to Scientific Computing Introduction to Scientific Computing Dr Hanno Rein Last updated: September 8, 2014 Contents 1 Linux 2 1.1 Shell............................................... 2 1.2 Text editor vi..........................................

More information

Windows XP. A Quick Tour of Windows XP Features

Windows XP. A Quick Tour of Windows XP Features Windows XP A Quick Tour of Windows XP Features Windows XP Windows XP is an operating system, which comes in several versions: Home, Media, Professional. The Windows XP computer uses a graphics-based operating

More information

Getting started with UNIX/Linux for G51PRG and G51CSA

Getting started with UNIX/Linux for G51PRG and G51CSA Getting started with UNIX/Linux for G51PRG and G51CSA David F. Brailsford Steven R. Bagley 1. Introduction These first exercises are very simple and are primarily to get you used to the systems we shall

More information

Introduction to Linux for BlueBEAR. January

Introduction to Linux for BlueBEAR. January Introduction to Linux for BlueBEAR January 2019 http://intranet.birmingham.ac.uk/bear Overview Understanding of the BlueBEAR workflow Logging in to BlueBEAR Introduction to basic Linux commands Basic file

More information

Table Of Contents. 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands

Table Of Contents. 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands Table Of Contents 1. Zoo Information a. Logging in b. Transferring files 2. Unix Basics 3. Homework Commands Getting onto the Zoo Type ssh @node.zoo.cs.yale.edu, and enter your netid pass when prompted.

More information

Using WestGrid from the desktop Oct on Access Grid

Using WestGrid from the desktop Oct on Access Grid Using WestGrid from the desktop Oct 11 2007 on Access Grid Introduction Simon Sharpe, UCIT Client Services The best way to contact WestGrid support is to email support@westgrid.ca This seminar gives you

More information

College of Pharmacy Windows 10

College of Pharmacy Windows 10 College of Pharmacy Windows 10 Windows 10 is the version of Microsoft s flagship operating system that follows Windows 8; the OS was released in July 2015. Windows 10 is designed to address common criticisms

More information

Midterm Exam, October 24th, 2000 Tuesday, October 24th, Human-Computer Interaction IT 113, 2 credits First trimester, both modules 2000/2001

Midterm Exam, October 24th, 2000 Tuesday, October 24th, Human-Computer Interaction IT 113, 2 credits First trimester, both modules 2000/2001 257 Midterm Exam, October 24th, 2000 258 257 Midterm Exam, October 24th, 2000 Tuesday, October 24th, 2000 Course Web page: http://www.cs.uni sb.de/users/jameson/hci Human-Computer Interaction IT 113, 2

More information

Short Read Sequencing Analysis Workshop

Short Read Sequencing Analysis Workshop Short Read Sequencing Analysis Workshop Day 2 Learning the Linux Compute Environment In-class Slides Matt Hynes-Grace Manager of IT Operations, BioFrontiers Institute Review of Day 2 Videos Video 1 Introduction

More information

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering

THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering THE HONG KONG POLYTECHNIC UNIVERSITY Department of Electronic and Information Engineering ENG224 Information Technology Part I: Computers and the Internet Laboratory 2 Linux Shell Commands and vi Editor

More information

Chapter 2 The SAS Environment

Chapter 2 The SAS Environment Chapter 2 The SAS Environment Abstract In this chapter, we begin to become familiar with the basic SAS working environment. We introduce the basic 3-screen layout, how to navigate the SAS Explorer window,

More information