UNIX Workshop Freshmen Orientation 2007. UNIX workshop 20072 Before we begin…  Does everybody have a computer?  Does everybody have your account slips?

Slides:



Advertisements
Similar presentations
How to Use Stowe School District
Advertisements

Linux Orientation Computer Systems Lab Computer Sciences Department Room 2350.
Pre-Assessment Questions
Learning Unix/Linux Bioinformatics Orientation 2008 Eric Bishop.
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.
1 Introduction to UNIX Ke Liu
ECT 250: Survey of e-commerce technology Publishing pages on a Unix system.
Using Pine to send your ICS111 homework First Log in into UNIX using SSH either from home (If you have previously installed SSH or from the Lab. Once in.
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.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
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.
CIS392 Sp 03Assign#11 CIS392 Text Processing, Retrieval, and Mining Spring 03 Instructor: Dr. Y. F. Brook Wu BOW toolkit:
UNIX Chapter 00 A “ Quick Start ” into UNIX Operating System Mr. Mohammad Smirat.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Unix Workshop Aug What is Unix Multitasking, multiuser operating system Often the OS of choice for large servers, large clusters.
Basic UNIX © McGraw Hill All rights reserved.
Outlook Web Access (OWA) is a web mail service of Microsoft Exchange; allow users to connect remotely via a Web browser OWA is used to access ,
1 Some basic Unix commands u Understand the concept of loggin into and out of a Unix shell u Interact with the system in a basic way through keyboard and.
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
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
COMP1070/2002/lec4/H.Melikian COMP1070 Lecture #5  Files and directories in UNIX  Various types of files  File attributes  Notion of pathname  Commands.
Notes Assignment #1 is due next Friday by 11:59 pm via Test #1 will be held Thursday February 18 at the start of class (one period long) Format:
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.
The file structure and related utilities CS240 Computer Science II.
Lesson 7-Creating and Changing Directories. Overview Using directories to create order. Managing files in directories. Using pathnames to manage files.
Introducing UNIX EMBnet slide 1 Introducing the UNIX Operating System.
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.
Nick Geoghegan1 Introduction to Linux Workshop. Nick Geoghegan2 Getting Started Download the following files:
Linux Directory Navigation. File & Directory Commands This is a minimal list of Unix commands that you must know for file management: ls (list) mkdir.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
NMU Voic Welcome to. This presentation will walk you through the setup and use of the NMU Voic system. Follow the step by step instructions.
1 Unix and the Internet Pine System and Netscape.
Working with Linux Lab 1 1. Login and logout Account – username & password – Note: Linux is case-sensitive Administrator: username = root Logout: exit,
ECT 250: Survey of E-Commerce Technology FrontPage Publishing pages Unix.
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
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.
E-module for UNIX Author: Jon Kleppe NTNU Assistant producer: Joachim Tro.
Log-in to the Unix Server A successful log-in allows access to the server through the Secure Shell. SSH, also known as Secure Shocket Shell, is a Unix.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
Introduction To UNIX. FAQReferencesSummaryInfo Resources Introduction Learning Objectives Log on User Interface Commands List of Commands Useful Info.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Linux+ Guide to Linux Certification, Third Edition
Introduction to Programming Using C An Introduction to Operating Systems.
Λειτουργικά Συστήματα – Lab2 Γιάννης Πετράκης. Directory Navigation and Control  The Unix file system is set up like a tree branching out from the root.
Linux Commands C151 Multi-User Operating Systems.
Outlook Web Access (OWA) is a web mail service of Microsoft Exchange; allow users to connect remotely via a Web browser OWA is used to access ,
2 Manual & Filestore Mauro Jaskelioff. Introduction Using the manual The UNIX filestore File permissions.
CS 245 – Part 1 Using Operating Systems and Networks for Programmers Jiang Guo Dept. of Computer Science California State University Los Angeles.
1 Lecture 2 Working with Files and Directories COP 3353 Introduction to UNIX.
1 Day 2 Logging in, Passwords, Man, talk, write. 2 Logging in Unix is a multi user system –Many people can be using it at the same time. –Connections.
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.
Learning basic Unix command It 325 operating system.
File Management commands cat Cat command cat cal.txt cat command displays the contents of a file here cal.txt on screen (or standard out).
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Using UNIX Charles Duan FAS Computer Services June 12, 2016.
UNIX Basics Matt Hayward October 18, 2016 LS560 – Information Technology for information professionals.
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.
CS1010: Intro Workshop.
Introducing the UNIX Operating System.
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
UNIX Basics Internet Technology.
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Web Programming Essentials:
UNIX/LINUX Commands Using BASH Copyright © 2017 – Curt Hill.
Presentation transcript:

UNIX Workshop Freshmen Orientation 2007

UNIX workshop Before we begin…  Does everybody have a computer?  Does everybody have your account slips?

UNIX workshop Let’s start! to School of Computing (SoC)!

UNIX workshop Introduction Objectives:  Logging in and out of UNIX.  Understanding UNIX file structure.  Using basic UNIX commands.  Using an editor to edit text.  Using an software to read and send s.  Creating a web page.  Other utilities, such as file transfer between your UNIX account and the local disk.

UNIX workshop NUSNET and SoC accounts  Every NUS student is given an NUSNET account (accout slip given at matriculation). Username (example): u address: Note: You belong to the NUSSTU (NUS students) domain.  In addition to the above, every SoC student has an SoC UNIX account. Username (example): johnlee (5 - 8 characters) address:  Use only these official addresses when you NUS staff.

UNIX workshop Login to NUSNET 1.Press CTRL-ALT-DEL 2.Type your username (example: u ) 3.Type your password (note: password is case-sensitive) 4.Select NUSSTU domain Note: Make sure the NUSSTU domain is selected.

UNIX workshop What is UNIX?  Developed in 1960s.  A multi-user multi-tasking operating system (OS).  UNIX OS comprises 4 parts: the kernel, the shell, commands and utilities and file structures (files and directories).

UNIX workshop Creating your SoC UNIX account  (Skip this if you have already created your SoC UNIX account earlier.)  Refer to this website for instructions: ix/socaccount.html  Disk quote in your SoC account: 500Mbytes.

UNIX workshop Connecting to UNIX server (1/4)  Double click on the “SSH Client” shortcut.  Click on “Quick Connect”.  Type sf3.comp.nus.edu.sg (or sunfire.comp.nus.edu.sg) in the “Host name” box.  Type your username in the “User Name” box.  Click “Connect”.  Key in your password and enter. (Note: Password is case-sensitive.)

UNIX workshop Connecting to UNIX server (2/4)

UNIX workshop Connecting to UNIX server (3/4)  Upon successful login, you will see:

UNIX workshop Connecting to UNIX server (4/4)  In campus, use sf3.comp.nus.edu.sg or sunfire.comp.nus.edu.sg  From home through Singapore ISPs without activating VPN, use sunfire-r.comp.nus.edu.sg  Remember to log out from your UNIX session after use, by typing logout or exit.

UNIX workshop Files and directories in UNIX (1/2)  The directory system supports a multilevel hierarchy. Files and directories have access protection. Files and directories are accessed through pathnames. Removable file systems are also supported.  All data in UNIX are organised into files. All files are organised into directories.  These directories are organised into a tree-like structure called the file system.

UNIX workshop Files and directories in UNIX (2/2)  Top-level organisation of the UNIX file system:  These directories are in turn organised hierarchically. For example, the usr directory may have its own subdirectories:

UNIX workshop Files in UNIX  Every file has a name. A filename is composed of 1 to 14 characters, and is case-sensitive. To avoid confusion, choose only characters from the following list for your filenames: letters [A-Z, a- z], digits [0-9], underscore [_], period [.], comma [,].  The root directory uses the symbol /. No other directory or file may use this symbol.  Like children of one parent, no two files in the same directory may have the same name. Files in different directories, like children of different parents, may have the same name.

UNIX workshop Some Useful UNIX Commands The following is a list of commands that provide information. Note that all UNIX commands are case-sensitive.  whoamiShow your username.  dateShow the server date/time.  calShow the calendar of current month.  pusageShow your print quota available.  pwdShow the current working directory you are in.  whoShow a list of logged on users.  man command Show manual page about the command (example: man who)

UNIX workshop Special characters & their meanings The following is a list of special characters.  (.) dotcurrent directory  (..) dot dotparent of current directory  (/) slashroot directory (when appears as the first character; separator when appears between directory names)  (~) tildeshort-hand for your home directory

UNIX workshop Command format  Most UNIX commands has this format command [options] [arguments]  Example: ls –l folder1 “ls” is a UNIX command “-l” is one of the many options available for the “ls” command. An option is usually preceded by a dash symbol (-). There can be many options for a command. (Eg: man ls) “folder1” is the argument to the “ls” command. Depending on the command, it may expect zero, one or more arguments. There should be at least one space between a command and its option, between an option and argument, and between arguments.

UNIX workshop Commands for Files and Directories  cd Change working directory  ls [options…] List the content of a directory  mkdir Create a new directory  rmdir [options] directory…Delete directory(ies)  cp [options] Copy file(s)  mv [options] Move file(s)  rm [options] file…Delete file(s)  chmod [options] [mode] fileChange access permission of a file/directory.

UNIX workshop Commands to display file contents  cat [options] file…Concatenate and display file  less [options] file…Display content of a file one screen at a time.  head [-n] fileDisplay the first n lines (default: 10 lines) of the file  tail [-n] fileDisplay the last n lines of the file

UNIX workshop Task 1 (Work in pair) (1/3) 1.Make sure you are in your home directory. (Type “cd” to get to your home directory. Use “pwd” to check.) 2.Change directory to /home/l/lujunche/workshop (or ~lujunche/workshop) 3.Copy sample1 and sample2 to your home directory. 4.Create a new directory called workshop under your home directory. 5.Create 3 sub-directories called folder1, folder2 and folder3 respectively in your newly created workshop directory. 6.Move sample1 to folder1, and sample2 to folder2.

UNIX workshop Task 1 (Work in pair) (2/3) 7.Use a display commands (cat and less) to view sample1 and note the differences. 8.Change directory to workshop. 9.Delete the directory folder2. (Note: you need to delete all files in a directory before you can delete the directory.) 10.Use chmod to allow your partner to access your sample1. Example: chmod go+r sample1 would allow students in the same group as well as others to read your sample1. 11.Try accessing your partner’s sample1 by copying it to your folder3. 12.Rename (use the mv command) sample1 to mytext.

UNIX workshop Task 1 (Work in pair) (3/3) The final product is shown below.

UNIX workshop Task 2: Using pico editor (1/2) 1.Change directory to your folder3 directory (cd ~/workshop/folder3) 2.To use the pico editor, type pico followed by the name of the file. Example: pico index.htm 3.You will see a blank editor screen, with a menu of pico commands at the bottom. Refer to the notes on the list of pico commands. For example, ^X (to exit) means pressing CTRL-X. 4.Type in the text according to the screen in the next slide. This is an HTML file which will be your web page. 5.Type CTRL-X to save the file and exit from pico. 6.You may use pico to modify the content of the file whenever you like.

UNIX workshop Task 2: Using pico editor (2/2)

UNIX workshop Using pine to read/send s (1/4) 1.pine = Program for Internet News and 2.To use pine, just type pine (this can be done in any directory; it doesn’t depend on which directory you are in) and the following screen will be shown (see next slide).

UNIX workshop Using pine to read/send s (2/4)

UNIX workshop Using pine to read/send s (3/4) 3.To check your messages, go to Folder List (just press enter since you are already at Folder List), then choose INBOX. 4.To send an , go to Compose Message (use the arrow key, or type “C”). a.To send to someone at comp.nus.edu.sg, you may just enter his/her username (eg: wengheng) and it will fill the full address (eg: by itself. b.To send to someone elsewhere, you need to provide the complete address (eg: c.Remember to send to staff using only your official addresses

UNIX workshop Using pine to read/send s (4/4) 5.If you wish to automatically direct incoming s sent to your comp.nus.edu.sg address to another mailbox, you may do this: a.Go to your home directory (type cd) b.Create a special file called.forward (note the dot in front of the filename; it must be present). How to create it? You may use the pico editor (pico.forward). c.Type the target address into your.forward file. For example: d.Exit from the editor to complete the process. From now on, any that is sent to your SoC UNIX account will be automatically forwarded to the above target address.

UNIX workshop Task 3: Send an 1.Send a greeting message to the SoC address of your partner. 2.Check to make sure that you have received your partner’s . 3.Create an with attachment and send it to your partner. 4.Check that you have received your partner’s with attachment.

UNIX workshop Task 4: Creating your web page 1.Create a directory public_html in your home directory. (Type cd to go to your home directory, then mkdir public_html) 2.Copy the file index.htm in your folder3 directory (created in Task 2) to this public_html directory: cp folder3/index.htm public_html 3.In your home directory, set the permission settings: a.chmod 711. b.chmod 711 public_html c.Chmod 744 public_html/index.htm 4.Use a web browser (example: Internet Explorer) to check whether your web page works. Your URL is

UNIX workshop Task 5: Using SSH File Transfer (1/2) 1.You can transfer files from your local harddisk to your UNIX account, and vice-versa. 2.Use SSH Secure File Transfer Client: click on the SSH window. 3.A window (see next slide) will show up.

UNIX workshop Task 5: Using SSH File Transfer (2/2)

UNIX workshop The End THANK YOU! (Do read the notes to find out more.)