Unix Workshop 2014 5 Aug 2014. What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.

Slides:



Advertisements
Similar presentations
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
Advertisements

1 Introduction to UNIX Ke Liu
CCPR Workshop Lexis Cluster Introduction October 19, 2007 David Ash.
Working with Files How to create, view, copy, rename and print files.
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.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Jan. 27 th, 2009 Essential Unix Commands.
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.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Very Quick & Basic Unix Steven Newhouse Unix is user-friendly. It's just very selective about who its friends are.
“Linux at the Command Line” Don Johnson of BU IS&T.
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction What is Unix? An operation system (OS), similar to Windows, MacOS X Why learn Unix? Greatest Software.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  Currently there.
A crash course in njit’s Afs
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.
UNIT 1 Computing Fundamentals.
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”
Introducing UNIX EMBnet slide 1 Introducing the UNIX Operating System.
1 Intro to Linux - getting around HPC systems Himanshu Chhetri.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Unix Basics Chapter 4.
Introduction to Computer Organization & Systems Topics: Intro to UNIX COMP John Barr.
Basic unix commands that everyone should know (Even if you have a mac) Slightly more advanced:
1 SEEM3460 Tutorial Unix Introduction. 2 Introduction Unix-like system is everywhere Linux Android for smartphones Google Chrome OS for Chromebook Web.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
Natawut NupairojAssembly Language1 Unix Survival Guide.
Session 2 Wharton Summer Tech Camp Basic Unix. Agenda Cover basic UNIX commands and useful functions.
UNIX Workshop Freshmen Orientation UNIX workshop Before we begin…  Does everybody have a computer?  Does everybody have your account slips?
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.
November 5, 2015CIS 118 Intro to UNIX What’s a Unix? Unix is an Operating System Designed for high-traffic usage Many variants –Linux, BSD: free versions.
Introduction to Programming Using C An Introduction to Operating Systems.
Basic of UNIX For fresh members of SPARCS
Introduction to SAS/willow (Unix) Sam Gordji Weir 107.
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
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.
 Last lesson, the Windows Operating System was discussed along with the Windows command shell  Unix is a computer operating system, that similarly manages.
A Mini UNIX Tutorial. What’s UNIX?  An operating system run on many servers/workstations  Invented by AT&T Bell Labs in late 60’s  There are many different.
Learning basic Unix command It 325 operating system.
1 CSE 390a Lecture 3 bash shell continued: processes; multi-user systems; remote login; editors slides created by Marty Stepp, modified by Jessica Miller.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
Using UNIX Charles Duan FAS Computer Services June 12, 2016.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Tutorial Six Linux Basics CompSci Semester Two 2016.
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.
SEEM3460 Tutorial Unix Introduction.
CS1010: Intro Workshop.
Getting started with CentOS Linux
Chapter 11 Command-Line Master Class
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Web Programming Essentials:
CS1010 Programming Methodology
Andy Wang Object Oriented Programming in C++ COP 3330
Some Linux Commands.
Introduction to Linux Dr Karina Kubiak - Ossowska
Assignment Preliminaries
Introduction to UNIX.
Introduction to Linux Week 0 - Thursday.
Web Programming Essentials:
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Yung-Hsiang Lu Purdue University
Presentation transcript:

Unix Workshop Aug 2014

What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters

Unix Around You You’re probably familiar with these:  Linux  Solaris  Mac OS X (roots from FreeBSD and NetBSD) Many websites run on Unix

What is SunFire? 2m In 2001: Full-sized rack Virtual Machine Today: A solaris zone in a blade of a chassis quarter-size of a rack!

Activity: Login to NUSNET 1.Press Ctrl-Alt-Delete 2.Type in your NUSNET user name, password, and select the NUSSTU domain 3.Click the OK button

Activity: Create Your SoC Account Login using your NUSNET user name and password

Activity: Connecting to SunFire 1.From the desktop, launch the SSH Secure Shell Client application 2.Click on Quick Connect Host Name: sunfire.comp.nus.edu.sg User Name: Your SoC user name 3.Click on Connect 4.Click on “Yes” at the Host identification dialog 5.Enter your SoC password in the password dialog

The Shell This is a CLI

Unix Directory Tree / (root)bindevhomeaahkowbtmpusrbinsbin

Activity: Working With Directories

Working With Files CommandDescription cp Copy a file mv Move or rename a file mv ~/ / Move file into a subdirectory rm Remove (delete) a file mkdir Create a subdirectory rmdir Remove (delete) a subdirectory rm –r Recursively remove subdirectory and its contents

Directory Contents -rw-r--r-- 1 sadm sadmg 2478 Jun test drwxr-xr-x 5 sadm sadmg 5 Jan work ^^^^^^^^^^ | | | | | other | | group | user type

Viewing Files CommandDescription cat Print out contents of file more Print out contents of file page at a time less Like above, but can go back and forth head Show first few lines of file tail Show last few lines of file

Editing Files Several editors are available:  pico / nano  vi / vim  Emacs Interactive vi/vim tutorial:

Shell Features Command history Filename completion Wildcards

Spying Around CommandDescription who See who are currently logged in w See what programs users are running w See what program this user is running last Get login history of users last Get login history of this user last -3 Get last 3 login records of this user

Getting Help man and apropos Hel p

Activity: Get Sample Files Run this in your shell: $ mkdir workshop $ cd workshop $ cp /tmp/uw/uw.zip. $ unzip uw.zip Check you got the samples: $ ls –l gcd.c index.html wordlist.txt

Programming Workflow EditCompileRunTest

Activity: Compiling and Running 1.C programs are compiled using the gcc compiler $ gcc gcd.c 2.To run a program, you must add./ in front of its name; the default name used by gcc is a.out 3.Run the GCD program $./a.out 4.Type in a pair of integers followed by the Enter key, for example: Repeat step 4 as many times as you like 6.To quit the program, press Ctrl-D

Activity: Logging Out $ logout Logging out is important! To change your SoC password, go to: To change your SoC password, go to:

Printing SoC printers accessed via network  Usually through client desktop or notebook (Windows, Mac, Linux, etc)  Also central Unix servers Print queue management only possible through central Unix servers CommandDescription lpq –P Check print queue of specified printer lprm –P Remove job id from specified printer pusage Check print quota

Processes and Disk Usage CommandDescription quota Check disk quota du Check disk usage in each subdirectory du –s * Like above, but summarize at specified directories find … Find files chmod … Modify file permissions ps … List processes kill … Kill process

Pipes and Redirection Redirection: $ sort sorted.txt Pipes: $ cat wordlist.txt | sort | less

Shell Initialization FileDescription ~/.profile Executed for login shells ~/.bashrc Executed for interactive non-login shells Used to setup the shell environment Examples:  Setting of $PATH  Setting command aliases

Activity: Setup Your Webpage Create public_html: $ mkdir ~/public_html Set the right permissions: $ chmod 711 ~ ~/public_html Put up a default index.html: $ cp index.html ~/public_html $ chmod 644 ~/public_html/index.html

Learning Unix on Your Own

Unix on a Mac OS X is every bit Unix. Development tools in Xcode.

Useful Websites Secure SSH ShellClient exe ShellClient exe Putty, SSH client: KiTTY, another SSH client for Windows: Cygwin, UNIX-like environment for Windows: Description of computing facilities in SoC: MySoC, intranet portal:

Q&A Download slides:

Challenge Activity Look at the wordlist.txt file. Find:  Determine the most frequently occurring word(s). How many times and what is/are the word(s)?

Thanks for attending Acad Day! Do give us your feedback at: