Dayu Zhang 9/8/2014 Lab02. Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are.

Slides:



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

1 Introduction to UNIX Ke Liu
CSCI 1411 FUNDAMENTALS OF COMPUTING LAB Lab Introduction 1 Shane Transue MSCS.
CS1020: Intro Workshop. Topics CS1020Intro Workshop Login to UNIX operating system 2. …………………………………… 3. …………………………………… 4. …………………………………… 5. ……………………………………
Dayu Zhang 9/3/2014 Lab01. Lab Instructor: Dayu Zhang Office Hour Mon/Wed 10:40am – 11:10am Room A201 Lab Website
1 Basics of Linux On linux machine: Login at your home directory Open a “shell” or “terminal” or “xterm” workspace (4) On windows machine Intall linux.
A crash course in njit’s Afs
Using Macs and Unix Nancy Griffeth January 6, 2014 Funding for this workshop was provided by the program “Computational Modeling and Analysis of Complex.
The Unix Environment and Compiling. Getting Set Up Your programs will be compiled and tested on the Departmental server ‘linprog’ The linprog servers.
Learning basic Unix command IT 325 operating system.
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.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Essential Unix at ACEnet Joey Bernard, Computational Research Consultant.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
HPC at HCC Jun Wang Outline of Workshop1 Overview of HPC Computing Resources at HCC How to obtain an account at HCC How to login a Linux cluster at HCC.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
The UNIX development environment CS 400/600 – Data Structures.
LINUX Tuesday, 5 July :00 pm. Remote Login l Use Secure Shell (ssh) l Machine name/IP address E.g. ssh hydra.sma.nus.edu.sg Or ssh
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
TAMU CSCE 313 (the basics). Basic Unix/Linux programming Accessing CS systems  PuTTY (putty.exe) – a Telnet and SSH client  Common hosts: unix.cs.tamu.edu.
HKOI 2012 TRAINING INTRO TO LINUX /CUHK/SHB123]$ date Sat Feb 18 13:00:00 HKT 2012.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
1 Lab 2 “Hello world” in Unix/Linux #include "std_lib_facilities_4.h" int main(){ cout
UNIX Introduction CSCE 221H Texas A&M University.
Getting started: Basics Outline: I.Connecting to cluster: ssh II.Connecting outside UCF firewall: VPN client III.Introduction to Linux IV.Intoduction to.
Unix and Samba By: IC Labs (Raj Kidambi). What is Unix?  Unix stands for UNiplexed Information and Computing System. (It was originally spelled "Unics.")
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Intro to Programming Environment 1. Today You Will Learn how to connect to a machine remotely with “nomachine NX client” Learn how to create a new “source.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
City Cluster Quickstart Lien-Chi Lai, COLA Lab, Department of Mathematics, NTU 2010/05/11.
PTA Linux Series Copyright Professional Training Academy, CSIS, University of Limerick, 2006 © Workshop III - Part A Shell Commands Professional Training.
1 Manufacturing Operations Center 16. Demo Data Customization Scripts APAC Training, Feb-Mar, 2010.
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.
1 Getting Started with C++ Part 2 Linux. 2 Getting Started on Linux Now we will look at Linux. See how to copy files between Windows and Linux Compile.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Dayu Zhang 9/10/2014 Lab03. Outline Brief Review of the 4 Steps in Hello.cpp Example Understand endl and \n Understand Comment Programming Exercise -
Introduction to UNIX and Linux.  Written by Dennis Ritchie and Ken Thomsom at Bell Labs in 1969  Initially written in assembly language and a high-level.
Dr. Sajib Datta Jan 16,  The website is up.  Course lectures will be uploaded there ◦ Check regularly for assignments and update.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Assignprelim.1 Assignment Preliminaries © 2012 B. Wilkinson/Clayton Ferner. Modification date: Jan 16a, 2014.
Review Why do we use protection levels? Why do we use constructors?
Tutorial Six Linux Basics CompSci Semester Two 2016.
GRID COMPUTING.
ENEE150 Discussion 01 Section 0101 Adam Wang.
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.
How to Work on your METEO 473 codes from your PC at home
First Day in Lab Making a C++ program
Tutorial of Unix Command & shell scriptS 5027
CS1010: Intro Workshop.
Development Environment Basics
Getting started with CentOS Linux
Tutorial Six Recap & Linux Basics CompSci Semester Two 2016.
Web Programming Essentials:
UNIX The Basics Source:
Andy Wang Object Oriented Programming in C++ COP 3330
Useful Linux Commands.
Assignment Preliminaries
Practice #0: Introduction
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
SEEM3460 Tutorial Unix Introduction Xinshi Lin & Zihao Fu
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Run Java file with Window cmd
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Java Tutotrial for [NLP-AI] 2
DIBBs Brown Dog Tutorial Setup
Presentation transcript:

Dayu Zhang 9/8/2014 Lab02

Example of Commands pwd --- show your current directory This is home of venus, not your home directory Tilde: means you are in your home directory Account dzhang’s home directory

Example of Commands If you move up beyond your home directory, you may not have permission to view the files.

If you see something like this, one reason might be that you are trying to vi a file beyond your home directory To fix this, press q (for Quit)

Example of Commands mkdir dirname --- make a new directory dirname cd dirname --- change directory to dirname ls --- list your files in current directory

cd --- go to your home directory cd move up one directory in the hierarchy This is your home directory Example of Commands

Example of Hello.cpp Create file Hello.cpp using command “touch” Then use command “vi” to edit Hello.cpp

Command Mode To switch from Command Mode to Insert Mode, press i

Insert Mode To switch from Insert Mode to Command Mode, press ESC

Write the program in Insert Mode

Go to Command Mode, then save the program using “:wq” :wq This is

vi Editor in Command Mode: :wq --- save the file and quit vi :q --- quit vi when the file has not been modified :q! --- disregard any modification and quit vi

Compile Hello.cpp Compile Command is “g++” If you get an error here, it means there is something wrong with your code. You should go back to check your code using “vi Hello.cpp” You should see this

Run Program Run Command is “./a.out”

Example of SSH Secure File Transfer Client Desktop Icon

Log in to venus.cs.qc.cuny.edu Left Pane: LocalRight Pane: Venus

Upload and Download Files Log in to venus.cs.qc.cuny.edu To upload a file from your Windows pc to Venus, drag the file from the left pane to the right pane To download a file from Venus to your Windows pc, drag the file from the right pane to the left pane

More Command Examples rm -r dirname --- removes the directory dirname and all files in it rmdir dirname --- removes an empty directory dirname

More Command Examples cp --- copy a file e.g. to copy file Hello.cpp to directory folder1

More Command Examples cp -r --- copy all files in a directory e.g. to copy all the files in directory folder1 to directory folder2 exit --- to exit Venus

If You Use Mac No need to download SSH Secure Shell Client Go to Terminal Login in to Venus using “ssh”

Mac – File Upload and Download Upload a file upload.txt from Mac desktop to Venus account directory CS111 Download a file Hello.cpp from Venus account directory CS111 to Mac desktop