1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.

Slides:



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

FILE TRANSFER PROTOCOL Short for File Transfer Protocol, the protocol for exchanging files over the Internet. FTP works in the same way as HTTP for transferring.
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.
Universidad del Cauca Red de Datos Module 9 Remote Connections.
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.
ECT 250: Survey of e-commerce technology Publishing pages on a Unix system.
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
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.
Working Environment - - Linux - -.
Vi Editor TA for ITIS3100: Xu Fei
UnixUnix Basic. Convention Italic text indicates text displayed by the computer system. For example, login: indicates a login prompt displayed by the.
1 Using Editors Editors let you create and edit ASCII files UNIX normally includes two editors: vi and Emacs Vi and Emacs are screen editors: they display.
L INUX C OMMAND L INE I NTERFACE G UNAANBAN.G
CS 141 Labs are mandatory. Attendance will be taken in each lab. Make account on moodle. Projects will be submitted via moodle.
SoftwareTools CGS 3460, Lecture 7 Jan 25, 2006 Zhen Yang.
Learning basic Unix command IT 325 operating system.
1 Unix Editors (ee, ed, ex, vi, vim) and Compilers (g77, gcc) Speaker: Li-Wen Chen Date:
1 Day 3 Directories Files Moving & Copying. 2 Case Sensitive First thing to learn about UNIX is that everything is case sensitive. Thus the files: –enda.
1 THE UNIX FILE SYSTEM By Chokechai Chuensukanant ID COSC 513 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.
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.
Linux environment ● Graphical interface – X-window + window manager ● Text interface – terminal + shell.
Cmsc 312 Operating Systems. UNIX? DOS – PC? VAX/VMS - mainframe Unix – PC, workstation, mainframe 1970 bell Lab For computer scientist? Why popular? Free.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
The UNIX development environment CS 400/600 – Data Structures.
Working with Linux Lab 1 1. Login and logout Account – username & password – Note: Linux is case-sensitive Administrator: username = root Logout: exit,
Vim Editor and Unix Command gcc compiler Computer Networks.
1 Editing a C Program 01/16/15. 2 Objective Use Linux to edit, compile and execute a C program.
PROGRAMMING PROJECT POLICIES AND UNIX INTRO Sal LaMarca CSCI 1302, Fall 2009.
BIF713 Basic Unix/Linux Commands Getting Help with Commands.
Introduction to UNIX Geraint Vaughan. What is UNIX? Command-line operating system (not point- and click) Designed for ‘experts’ Lots of different variants.
Unix Session IV.
Text Editing February 2 nd, 2004 Class Meeting 3.
Chapter Three Text Editing1 System Programming Text Editing.
Agenda Basic Unix Commands (Chapters 2 & 3) Miscellaneous Commands: whereis, which, whoami, finger, passwd, cal, date Working with Files: cat, more, less.
Text editing and more basic commands CS 2204 Class meeting 3 *Notes by Doug Bowman and other members of the CS faculty at Virginia Tech. Copyright
More on Using onyx 8/28/13. Program 1 Due a week from today. See website for details.
AN INTRO TO UNIX/LINUX COMMANDS BY: JIAYANG WANG.
Linux Stuff Last Update Copyright 2014 Kenneth M. Chipps Ph.D. 1.
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.
Basic Unix Commands. Listing files and directories ● ls:command is used to list the files and ● directories in present working directory ● ls command.
ICE UNIX TUTORIAL. File System Commands cd – change directory cd – change directory ls – list contents ls – list contents rm – remove/delete rm – remove/delete.
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.
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).
BIF703 FTP (File Transfer Protocol) Utility vi editor Utility.
Linux Tutorial Lesson Two *Getting Help in Linux *Data movement and manipulation *Relative and Absolute path *Processes Note: see chapter 1,2,3 from Linux.
CS 120 Extra: The CS1 Server Tarik Booker CS 120.
Learning Unix/Linux Based on slides from: Eric Bishop.
CS:414 introduction to Unix and Linux
GRID COMPUTING.
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.
Getting started with CentOS Linux
Web Programming Essentials:
Andy Wang Object Oriented Programming in C++ COP 3330
FTP Lecture supp.
Some Linux Commands.
Eric Shook Department of Geography Kent State University
Lecture 3 More on editors: emacs and vi COP 3344 Introduction to UNIX.
Practice #0: Introduction
Tutorial of Unix Command & shell scriptS 5027
Tutorial of Unix Command & shell scriptS 5027
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Operating Systems and Using Linux
Web Programming Essentials:
Tutorial of Unix Command & shell scriptS 5027
Getting started with CentOS Linux
Andy Wang Object Oriented Programming in C++ COP 3330
Chapter 2 Basic vi Editor.
Module 6 Working with Files and Directories
Presentation transcript:

1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi

May 16, Command Line FTP Open connection Open connection Set transfer mode Set transfer mode Transfer single / multiple file(s) Transfer single / multiple file(s) Execute command in remote server Execute command in remote server Execute command in local machine Execute command in local machine Close FTP connection Close FTP connection

3May 16, 2005 $ftp ftp > open matrix.senecac.on.ca $ftp matrix.senecac.on.ca Open the FTP Connection OR: source: Ling Zhu

4May 16, 2005 ftp > asc ftp > bin Set the Transfer Mode source: Ling Zhu Set to ASCII mode: Set to binary mode:

May 16, Commands to transfer file(s) ftp > get ftp > put source: Ling Zhu ftp > mget *.html ftp > mput lecture?? Transfer a single file: Transfer multiple files–Use file name expansion

May 16, Execute Commands on Remote Server ftp > cd dirctoryName ftp > pwd ftp > ls source: Ling Zhu

May 16, Execute Commands on Local Machine ftp > lcd dirctoryName ftp > !cd ftp > !dir source: Ling Zhu ftp > !cd dirctoryName ftp > !pwd ftp > !ls Windows machineUNIX/Linux machine

8May 16, 2005 ftp > close ftp > bye Close the FTP Connection OR: source: Ling Zhu

9May 16, 2005 Commands we have learned cd $HOME cd $HOME cd ~ cd cd – source: Ling Zhu

10May 16, 2005 Commands we have learned ls ls –l ls –a ls –a source: Ling Zhu

11May 16, 2005 Commands we have learned touch filename touch filename mkdir directoryname source: Ling Zhu

12May 16, 2005 passwd passwd pwd Commands we have learned source: Ling Zhu

13May 16, 2005 So far we know how to After Lab1, you should know how to: log in change your password create a file list the files in your working directory create a directory display the name of your working directory change directories log out source: Ling Zhu

14May 16, 2005 How to know a command more man command Press space bar or type f to go forward Type b to go backward Type q to exit source: Ling Zhu

15May 16, current working directory current working directory.... parent directory parent directory../..../.. grandparent directory grandparent directory More Symbols source: Ling Zhu

16May 16, 2005 cp source destination cp source destination Copy file Copy file mv source destination mv source destination Rename file Rename file More Commands to learn source: Ling Zhu

17May 16, 2005 cp policy destination cp policy destination Can you answer them? source: Ling Zhu mv policy destination mv policy destination  What if destination is a directory?  What if there is a policy file under destination?  What if destination is a file that exists?  What if destination is a file that doesn’t exist?  Can you answer the last four questions?

18May 16, 2005 To view a file cat filename cat filename head filename - head filename - display top 10 lines head - n 3 file1- head - n 3 file1- display top 3 lines head -3 file1- head -3 file1- display top 3 lines tail filename - tail filename - display last 10 lines tail –2 file1 - tail –2 file1 - display last 2 lines more filename - more filename - can only scroll down less filename - less filename - can scroll up and down More Commands to learn source: Ling Zhu

19May 16, 2005 rm filename rm filename Delete file Delete file - eg: rm file1 - delete file named file1 rm –r dirctoryname Delete directory - eg: rm – r dir1 - delete directory named dir1 rmdir directoryname rmdir directoryname Delete empty directory Delete empty directory - eg: rmdir dir2 - delete empty directory dir2 More Commands to learn source: Ling Zhu

20May 16, 2005 Three modes of vi Three modes of vi command mode command mode insert mode insert mode last line mode last line mode Introduction of vi source: Ling Zhu

21May 16, 2005 Cursor movement h j k l Delete text x dd dd Undo edit u Introduction of vi – command mode source: Ling Zhu – move to left – move to next line – move to last line – move to right – delete one character – delete one line – undo your last edit

22May 16, 2005 – move back 4 characters – move back 4 characters – move down 5 lines – move down 5 lines – move up 3 lines – move up 3 lines – delete two character from the cursor – delete two character from the cursor – delete three lines – delete three lines Introduction of vi – command mode source: Ling Zhu 4h 5j 3dd 3k 2x

23May 16, 2005 Insert text i I a A o O Introduction of vi – insert mode source: Ling Zhu – insert text at left of the cursor – open a new line under the cursor line – insert text at the beginning of the cursor line – open a new above the cursor line – insert text at the end of the cursor line – insert text at right of the cursor

24May 16, 2005 Start with : and end with hitting Enter – display line number – display line number – hide line number – hide line number – save and exit vi – save and exit vi – save without exit vi – save without exit vi – exit vi when no change – exit vi when no change – exit vi without saving any change – exit vi without saving any change Introduction of vi – last line mode source: Ling Zhu : set nu : set nu : set nonu : wq : w : w : q : q! : q!

25May 16, 2005 ESC – Escape from insert mode Introduction of vi – Switch mode source: Ling Zhu

26May 16, 2005 Warning Unix/Linux commands are If you issue LS rather than ls, you will case sensitive!! lose mark!!