BIF703 FTP (File Transfer Protocol) Utility vi editor Utility.

Slides:



Advertisements
Similar presentations
In the last Session… ls -l command seven fields nine permissions of a file ls -ld file ownership file permissions (three-tiered file protection system)
Advertisements

CS 497C – Introduction to UNIX Lecture 8: The vi/vim Editor Chin-Chih Chang
 Use the Left and Right arrow keys or the Page Up and Page Down keys to move between the pages. You can also click on the pages to move forward.  To.
A Guide to Unix Using Linux Fourth Edition
Introduction to the gedit editor. gedit: the Gnome editor Gnome: Gnome is a freely available (i.e., no cost) desktop environment for the UNIX system The.
Editing with vi Or more fun than you thought you’d have without a mouse Prof. Chris GauthierDickey.
Program Development Tools IDE vs point tools Two tool flavors exist for developing embedded software: -IDEs: (Integrated Development Environments) i.e.,
CIS 240 Introduction to UNIX Instructor: Sue Sampson.
Chapter 5 Editing Text Files
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.
Guide to Linux Installation and Administration, 2e1 Chapter 6 Using the Shell and Text Files.
Starting Vi Opening an existing file vi filename Creating a new file vi filename In your workshop directory, create a new file called mysong vi mysong.
CS465 - UNIX The vi Editor. Creating Files Most human-readable files on Unix are created with a text editor Unix has many, many different editors ed a.
2440: 141 Web Site Administration Remote Web Server Access Tools Instructor: Enoch E. Damson.
CSCI 330 T HE UNIX S YSTEM Editing files. E DITOR C ONCEPTS Editing a file is to modify the content of a file Text editor: Enter and modify text in a.
BIF713 Operating Systems & Project Management Instructor: Murray Saul
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 3 Mastering Editors
Chapter Three The UNIX Editors. 2 Lesson A The vi Editor.
CPSC 203 Introduction to Computers Lab 23 By Jie Gao.
Agenda Using vi Editor Starting vi Session Command / Input Modes Entering Text Editing Text Saving vi Session Aborting Editing Session.
FTP Server and FTP Commands By Nanda Ganesan, Ph.D. © Nanda Ganesan, All Rights Reserved.
1 Working with MS SQL Server Textbook Chapter 14.
1 The EDIT Program The Edit program is a full screen text editor that allows you to: Create text files Create text files Edit an existing text files Edit.
1 INFO 321 Server Technologies II FTP Material adapted from Dr. Randy Kaplan.
Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator
UNIX Intro vi  vi is the standard UNIX text editor v Contents 1.Why use vi ? 2. vi Basics 3.Moving Around 4.Inserting Text.
Text editors Why should I use an editor ? It is very important to able to use at least one text mode editor a text mode editor is so useful on remote machines.
Unix Session IV.
1 Remote Access Telnet Telnet FTP FTP. 2 Applications and Communications Telnet Telnet  Program for accessing systems remotely.  Available on Windows.
Text Editing February 2 nd, 2004 Class Meeting 3.
1 of 47 Chapter 4: The vi Editor – First Look Copyright ©2008 by Pearson Education, Inc. Upper Saddle River, New Jersey All rights reserved.
Chapter Three Text Editing1 System Programming Text Editing.
VI EDITOR University of Mississippi. Vi Editor What is Vi ? ▫Vi is a screen based editor. ▫The screen of your terminal will act as a window into the file.
Chapter 9 Using Text Editors. vi Editor visual Editor, ASCII text editor, no formatting capabilities almost as powerful as MS Word, has 26 clipboards.
ICT 111 – PART 2 APPLICATIONS SOFTWARE /11: APPLICATIONS SOFTWARE Remember: Computer hardware VS human body Computer operating systems VS human.
1 © 2012 John Urrutia. All rights reserved. Chapter 6 The vi Editor.
1May 16, 2005 Week 2 Lab Agenda Command Line FTP Commands Review More UNIX commands to learn File name expansion - * Introduction of vi.
Introduction to Unix (CA263) File Editing By Tariq Ibn Aziz.
Lesson 4-Mastering the Visual Editor. Overview Introducing the visual editor. Working in an existing file with vi. Understanding the visual editor. Navigating.
Chapter Three The UNIX Editors.
Linux Class #03. File Access Permissions Types of users in Linux: Local User (u) Group User (g) Other User (o) Each User can have 3 types of permissions:
Isecur1ty training center Presented by : Eng. Mohammad Khreesha.
Lesson 3-Touring Utilities and System Features. Overview Employing fundamental utilities. Linux terminal sessions. Managing input and output. Using special.
How to use WS_FTP A Step by Step Guide to File Transfer.
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
Agenda Using vi Editor Starting vi Session Command / Input Modes Entering Text Editing Text Saving Edited File Aborting Editing Session.
Agenda Using vi Editor Starting vi Session Command / Input Modes
Vi editor Pronounced: `vee eye‘’. Agenda Describe the background of vi Editor Use vi editor to: create text files edit text files Our Goal is to create.
Introducing Dreamweaver. Dreamweaver The web development application used to create web pages Part of the Adobe creative suite.
Agenda Using FTP What is FTP? How to Use the FTP Program How to transfer files Using FTP.
FTP COMMANDS OBJECTIVES. General overview. Introduction to FTP server. Types of FTP users. FTP commands examples. FTP commands in action (example of use).
File Transfer Protocol (FTP) CIS 130. File Transfer Protocol (FTP) Copy files from one internet host (server) to your account on another host –Need domain.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 14 – UNIX vi text editor.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
ULI101 Week 02. Week Overview ● Unix file system ● Types of files ● File naming rules ● Hidden files ● Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm.
CS:414 introduction to Unix and Linux
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
Vim basics Vi IMproved.
Guide To UNIX Using Linux Third Edition
Vi Editor.
Unix Fundamentals - Part iii vi Editor
Operating Microcomputer
FTP and UNIX TOPICS Exploring your Web Hosting Site FTP UNIX
Text Editors Vim (Chapter 6) Emacs (Chapter 7)
Multi-host Internet Access Portal (MIAP) Enhancement Guide
Web Programming Essentials:
Linux Operations and Administration
CSCI The UNIX System Editing files
Day 5 Emacs Editor David A. Gaitros Department of Computer Science
Presentation transcript:

BIF703 FTP (File Transfer Protocol) Utility vi editor Utility

File Transfer Protocol (FTP) What is FTP? FTP is an application that can transfer files among various computer systems FTP is useful for: transferring programming files to diskette for printing, backup or installation on home PC transferring files from Phobos to computer terminal for editing (and vice versa) uploading HTML files to web server

File Transfer Protocol There are many ftp applications that are available in both Windows and Linux platforms. Windows: - Graphical (WS-FTP, MS-Explorer) - Command line (ftp command) Linux: - Graphical (Konqueror, gftp) - Command line (ftp command) Basically, identical to MS-Windows command-line ftp command!

ftp Command Very useful command since it is available in both MS-Windows 95 (upwards), Unix and Linux. Useful to learn if you want to transfer file(s) and no other ftp software is currently installed on computer (eg. If you are working on a client’s site)

ftp Command To connect to a remote server for file transfer, either open a Windows Run command dialog box, or in Unix/Linux access a shell and issue the following command: ftp servername  Eg.ftp phobos.senecac.on.ca

ftp Command After entering your username and password, you will be brought to a prompt. If you will be transferring ascii files such as C programming code, or html webpages, issue the command ascii. If you will be transferring files other than ascii files (pictures, MS-Word documents, executable programs), issue the command binary. If you do not enter these correct “modes” to correctly transfer these files, you may damage the files, and they will not work properly!

ftp Command When you are connected to a server the following terms apply: Local Server – Your current machine (i.e. your PC or your Matrix account) Remote Server – Server that you are connected (eg. your Phobos account) Note: If your local machine has access to a floppy disk drive, you can transfer files for backup purposes!

ftp Command Commands to navigate throughout your remote server: lsList files pwdDisplay current directory cdChange remote directory Note: when using ftp program in MS- Windows, you can use dir command as well.

ftp Command Commands to navigate throughout your local server: !lsList files (if local is Unix/Linux) !pwdDisplay current directory lcdChange local directory Note: When using ftp from MS- Windows, use !dir to view local contents

ftp Command Commands to transfer files between local and remote server: remote -> local Server: get filename local -> remote Server: put filename Note: It is advised to set your local and remote directories before you transfer. The commands mget and mput can be used to copy multiple files using wildcard characters like *

ftp Command After transferring a file between servers, always verify that the transfer has been successfully completed (refer to commands to navigate throughout local and remote servers). To exit the ftp command, you can enter the commands: bye exit

Graphical ftp Application Many find it easier to use a graphical application. The next slide demonstrates the use of WS-FTP, which is a graphical FTP application available on computers at Seneca’s labs. After launching the application, you can click the CONNECT button, type the hostname/address and click OK (refer to sessions properties dialog box on the next slide. At some point, you will be prompted for your username and password.

Graphical ftp Application Here is how the application appears. After logging into the remote server, you can select, and then redirect files between the remote server and local PC.

vi (Visual) Editor vi is a powerful, interactive, visually-oriented text editor Features: Efficient editing by using keystrokes instead of mouse. Use of regular expressions possible to recover files after accidental loss of connect or “system crashs”. Features for programmers (eg. line numbering, auto- indent, etc…)

Starting vi Session There are two ways to start an editing session with vi: Enter vi filename (recommended since filename has already been assigned and changes will be saved to filename by enter ZZ while in vi). Enter vi (filename is not assigned, therefore user has to type :w filename in order to save file.

Modes There are three operational modes while using the vi editor: Command Mode (default mode when starting) User presses letter for a command – for example, input text, delete text, append text, etc. Input Mode Input Mode allows user to enter or edit text. Press ESC to return to command mode. Last-line Mode Pressing colon “:” opens a prompt to enter letter or word commands. More complex operations such as search and replace can be performed.

Moving in Command Mode You can move around to text in the screen by using the following keys: h (left), j (down), k (up), and l (right). w (right one word to special character), W (right one word including special characters) b (left one word to special character), B (left one word including special characters) 0 (zero) (beginning of line), $ (end of line) You may be able to move around by using the arrow keys (depends on version of vi). For more advanced editing, you can return to Command Mode and use appropriate editing commands.

Getting into Input Mode While in command mode, you can issue the following commands to input text: i – insert to left of cursor I – insert at beginning of line o – insert line below current line 0 – insert line above current line a - append to right of cursor A - append at end of current line r - replace character R – overwrite text NOTE: 1.To enter command mode while in input mode, press the key. 2. While in input mode, the input mode indicator should appear as INPUT on the bottom of the vi screen.If this indicator does not appear when you press i then type: :set showmode

Input Mode Error Correction (As you type): CTRL-hDelete a letter CTRL-wDelete a word CTRL-uDelete a line

Editing Commands (Within Command Mode) The major Text Editing Commands are: x – Delete single character d – Delete c – Change y – Yank (copy) p – paste below cursor, P – paste above cursor When combined with movement keys, the vi editor becomes an effective editing tool. eg. d4W(Delete the next four space-delimited words) c$(Change from the cursor to the end of the line) y$(Copy from cursor to the end of the line) d34d(Delete current line and following 33 lines) Pressing the period “.” in command mode will repeat the most recent edit!

Searching Search for text (in command mode) /patternSearch forward for pattern ?patternSearch backwards for pattern

Saving Edited File When you create a file using vi, all work performed during vi session is stored in a Work Buffer (temporary storage) until the user saves their work. When saving, changes in the work buffer are placed in a new file if creating a new file, or changes in work buffer modify existing (previously created) file.

Saving Edited File To save your vi session, you must make sure you are in command mode by pressing To save your changes and exit, enter ZZ (i.e. two capital z’s). You could perform the same operation in last line mode by :wx You can also save without exiting by entering :w

Aborting Editing Session If you make a huge mistake in your editing session (that undo cannot solve), you can abort your session without modifying the contents of your file (dump the work buffer) To abort the current editing session, press :q!