Using the Vi Text Editor
|
|
- Elvin Poole
- 5 years ago
- Views:
Transcription
1 Using the Vi Text Editor This document is intended to provide you with the basic information you need to use the vi text editor from your WAM/Glue or OIT cluster UNIX account. This document assumes that you are using your account from some kind of terminal window either by dialing in from home, by using a Mac or PC in a computer lab or office at the University, or by using a terminal window generated by the xterm program on a UNIX workstation. Information on how to connect to the OIT host computers with a terminal program is available on-line at http: // Vi is a full-screen text editor that is almost universally available on UNIX-based computer systems. This editor is available on the UNIX systems and the WAM workstations. Vi is useful for editing program files, entering data, composing mail messages, and plain text editing. There are other text editors that can be used on UNIX systems; one of the most popular of these is pico. Pico is available on all of the UNIX systems maintained by OIT. Another text editor available on UNIX systems is emacs. Documents describing basic pico and emacs commands are available on-line at http: // In this document the word current, when used in reference to some unit of text, identifies the location of the cursor. For example: current character, current word, current line. This document also uses several fonts to help clarify the meaning of the text: fixed Literal commands you type appear in fixed format. italic Variables used with commands will appear in italic format. [ ] Optional variables will appear in square brackets. To edit a file with vi, type any of the following commands at the UNIX system prompt: Introduction Note: Access to WAM labs at the University is limited. You must have a valid University ID to use the labs. Note: For more about using the OIT UNIX cluster, refer to Introduction to the OIT UNIX System. It is available on-line at documentation/unix/cluster.shtml. You may also take the Peer Training Course, Introduction to UNIX. Call Conventions Used in This Document Note: UNIX is case-sensitive. This means it makes a difference whether you type commands or filenames in UPPER or lower case. Thus FILE3 is different from file3. Starting Vi vi vi filename vi -r filename vi -R filename create a new, unnamed file edit an existing file or create a new file named filename recover an edit session that was interrupted by a system crash (this may not recover all of the changes you made to your file in your last editing session) open the file in Read Only mode Office of Information Technology University of Maryland, College Park, MD Updated October 2004
2 Vi Modes Entering Input Mode Using the Vi Text Editor Vi has two modes: input mode and command mode. While in input mode, everything you type is inserted into your document (including command mode commands). While in command mode, everything you type is executed as a command to edit your document. To change from input mode to command mode, press the Esc key. There are several ways to change from command mode to input mode that are listed below. All of the following commands will change your mode from command to input: i I a A o O enter input mode before the cursor enter input mode at the start of the current line enter input mode after the cursor enter input mode at the end of the current line create a new line below the cursor and enter input mode on it create a new line above the cursor and enter input mode on it Moving Around Within the Current Text Window The following commands allow you to move around the current text appearing on your screen. Most of the commands can be preceded by a number, which will move the cursor that number of characters, words, or lines. For example, 4j would move the cursor down four lines. When a number is not specified, one space or line is assumed. Please Note: Be careful when using the arrow keys on your keyboard as they often do not work properly with vi and may cause unpredictable results. [num] h move num spaces to the left [num] Backspace move num spaces to the left [num] l move num spaces to the right [num] Spacebar move num spaces to the right [num] j move down num lines in the same column [num] k move up num lines in the same column [num] Return move to the beginning of the numth line down [num] + move to the beginning of the numth line down [num] move to the beginning of the numth line up [num] w move right to the beginning of the numth word following the current word [num] e move right to the end of the numth word counting the current word [num] b move left to the beginning of the numth previous word ^ or 0 move to the beginning of the current line $ move to the end of the current line H move to the beginning of the first line on the screen M move to the beginning of the middle line on the screen L move to the beginning of the last line on the screen 2 University of Maryland
3 Using the Vi Text Editor These commands allow you to change the portion of your document that appears on your screen and to move around the document quickly. Ctrl-f move forward a screen Ctrl-b move back a screen Ctrl-u move up half a screen Ctrl-d move down half a screen num G move to the specified line (use Ctrl-g to display line number) :num move to the specified line G move to the last line in the file :$ move to the last line in the file Vi has search commands to find a particular section of your document quickly. Moving Around the Entire Document Searching for Text / pattern search forward through the document for the next occurrence of the pattern (or string of text)? pattern search backward through the document for the next occurrence of the pattern (or string of text) n repeat search in the same direction N repeat search in opposite direction f char search forward from the cursor in the current line for a single character (char) F char search backward from the cursor in the current line for a single character (char) ; repeat single character search in either direction (f or F) Below is an example of vi s searching feature. Pressing the ESC key, followed by the slash ( / ) to indicate a search (which will take you down to the command line), followed immediately by a searchstring (where searchstring in this example is EDITOR), vi will position the cursor at the location of the search string. # Run user environment customizations identified in your /.environment # file. This is the place to include your own environment variables, # tap commands, and other system wide setup commands. You can also # cancel default behaviors listed above with unsetenv or setenv. # /.environment is not sourced if NOCALLS is set (i.e., if # the xlogin SYSTEM option is selected). # The below line, if commented out, will cause X windows to automatically # come up if logging in on the console. setenv NO_X_WINDOWS 1 # uncomment the following three lines if your prefer vi #setenv EDITOR /usr/ucb/vi #setenv VISUAL /usr/ubc/vi #setenv TEXEDIT /usr/ucb/vi +%d %s # comment these out if you want vi or emacs setenv EDITOR /usr/local/bin/pico setenv VISUAL /usr/local/bin/pico setenv TEXEDIT /usr/local/bin/pico +%d %s /EDITOR Example Search Note: The cursor was located at the beginning of the document when the search was initiated. /searchstring Office of Information Technology 3
4 Deleting Text Using the Vi Text Editor The following commands allow you to delete single characters, words, or whole lines of text with a single command. Most can be preceded by a number to delete more than one character, word, or line at a time. For example, 3dd would delete three lines at once. When the number is not specified, one character, word, or line is assumed. These commands put the deleted text into the buffer, which can then be placed elsewhere in the document by using the put commands. While in input mode, you can use the Backspace key to correct mistakes on the current line of text. x [num] x X [num] X [num] dw D [num] dd delete character under cursor delete num characters from cursor forward delete character before the cursor delete num characters before the cursor delete num words starting with the current word at the cursor delete text from the cursor to the end of the current line delete num lines starting with the current line Copying ( Yanking ) and Pasting Text Vi allows you to copy or delete blocks of text and place them elsewhere in your document. The put commands below insert any text which has been put into the buffer by the delete commands above or the yank (copy) commands below: [num] yw [num] yy [num] Y p P copy num words into the buffer, starting with the current word at the cursor copy num lines into the buffer, starting with the current line copy num lines into the buffer, starting with the current line put any text in the buffer after or below the cursor put any text in the buffer before or above the cursor position of cursor before 4yy performed position of cursor before p performed Note: The four lines have been duplicated immediately below their original position. 4 Below illustrates the copying feature. In this example, the cursor is positioned before uncomment, typing 4yy yanks 4 lines into the buffer, then the cursor moves to a destination position where the text is placed. Typing p, places the contents in the buffer below the cursor. # Run user environment customizations identified in your /.environment # file. This is the place to include your own environment variables, # tap commands, and other system wide setup commands. You can also # cancel default behaviors listed above with unsetenv or setenv. # /.environment is not sourced if NOCALLS is set (i.e., if # the xlogin SYSTEM option is selected). # The below line, if commented out, will cause X windows to automatically # come up if logging in on the console. setenv NO_X_WINDOWS 1 # uncomment the following three lines if your prefer vi #setenv EDITOR /usr/ucb/vi #setenv VISUAL /usr/ubc/vi #setenv TEXEDIT /usr/ucb/vi +%d %s # uncomment the following three lines if your prefer vi #setenv EDITOR /usr/ucb/vi #setenv VISUAL /usr/ubc/vi #setenv TEXEDIT /usr/ucb/vi +%d %s # comment these out if you want vi or emacs setenv EDITOR /usr/local/bin/pico setenv VISUAL /usr/local/bin/pico setenv TEXEDIT /usr/local/bin/pico +%d %s University of Maryland
5 Using the Vi Text Editor Vi has several commands that allow you to change an existing piece of text without first deleting it; the change commands overtype the current text. Changing Text [num] cw C r R s S change num words, starting at the cursor in the current word the word(s) will be replaced by any text you type until you press Esc change the current line from cursor to end the current line will be replaced by any text you type until you press Esc replace the current character (you do not need to press Esc) edit the current line from cursor to end in typeover mode you will remain in typeover mode until you press Esc (you can press Return to insert more lines before pressing Esc) replace the current character the current character will be replaced by any text you type until you press Esc replace the entire current line the current line will be replaced by any text you type until you press Esc There are several ways to save your document and exit vi. Be sure to use the save command often when editing an important document. :w save changes (i.e., write) to your file :w filename save changes (i.e., write) to the file specified :q quit vi (when you haven t made any changes) :q! quit without saving changes :wq or ZZ save changes to file and then quit :! cmd execute a single command (cmd) and return to vi : sh start up a new UNIX shell to return to vi from the shell, type exit or Ctrl-d Saving Your File and Quitting Vi Note: The :! and :sh commands make it easy to execute UNIX commands without exiting vi. Vi has several options which affect the way vi functions and alter your editing environment. These options can be set by hand from within vi (must be reset every time you use vi), or they can be made permanent (i.e., set automatically) by creating a.exrc file and including the commands there or setting the EXINIT environment variable in your.login or.cshrc file. (Do not alter the.login or.cshrc files.) Use the set all command to get a list of all of the options. :set :set all :set option=value :set option :set no option list the currently set editor options list all of the editor options set an option that takes a numeric or string value turn on a toggled option turn off a toggled option Office of Information Technology 5
6 Miscellaneous Vi Commands More Information? The following commands are helpful when using vi: Using the Vi Text Editor u undo the last change U undo the changes made to the current line. repeat your last command again return to your previous position return to the beginning of the line at your previous position in the document Ctrl-l redraw the screen if it has been altered by output from some other program or a transmission error (such as a talk request) Ctrl-g print the line number of the current line and how many lines are in the document % show matching (), {}, or [] when the current character is one of the characters [num] J join num lines together, starting with the current line (delete the Returns between the lines) :r filename read a file into the document below the current line change the case of the current character For technical assistance with the vi editor, one point of contact is the OIT Help Desk. There are many ways to contact this resource: Walk in: Computer & Space Sciences Building, room 1400, Monday - Friday, 8:00 a.m. - 5:00 p.m. Phone: , Monday - Friday, 8:00 a.m. - 5:00 p.m. Web site: You can also submit a problem report to the OIT Help Desk by typing request at the UNIX command prompt. 6 University of Maryland
Basic vi Commands. What is vi? To Get Into and Out Of vi
Page 1 of 5 Basic vi Commands What is vi? The default editor that comes with the UNIX operating system is called vi (visual editor). [Alternate editors for UNIX environments include pico and emacs, a product
More informationvi filename edit filename starting at line 1
Basic Vi Command 1. What is vi? The default editor that comes with the Linux operating system is called vi (visual editor). [Alternate editors for Linux environments include pico and emacs, a product of
More informationEditors in Unix come in two general flavours:
Review notes #2 1. Unix account 2.Login: with a terminal or using telnet or ssh 3. Change password 4. Must logout! 5. Emails: (a) mutt (b) pine (c).forward file 6.Basic commands: who, ls, cat, more, man
More informationCSCI 211 UNIX Lab. Text Editor - Vi. Dr. Jiang Li. Jiang Li, Ph.D. Department of Computer Science
CSCI 211 UNIX Lab Text Editor - Vi Dr. Jiang Li Basics of vi Editor vi A non-gui text editor in Linux It s designed to be small and simple Like notepad on Windows, vi is a popular software for creating/editing
More informationSoftware I: Utilities and Internals. What is vi?
Software I: Utilities and Internals Lecture 2 The vi Text Editor What is vi? vi is the most widely used full-screen text editor for UNIX and Linux system. vi is short for visual extension (of the lineoriented
More informationvi Primer Adapted from:
Adapted from: http://courses.knox.edu/cs205/205tutorials/viprimer.html vi Primer This document is designed to introduce you to the standard UNIX screen editor, vi (short for "visual"). Vi can be used to
More informationVIP Quick Reference Card
VIP Quick Reference Card Loading VIP (Based on VIP 3.5 in GNU Emacs 18) Just type M-x vip-mode followed by RET VIP Modes VIP has three modes: emacs mode, vi mode and insert mode. Mode line tells you which
More informationComputer Programming Lecture 3 이윤진서울대학교
Computer Programming Lecture 3 이윤진서울대학교 2007.12.27. 27 Slide Credits 엄현상교수님 서울대학교컴퓨터공학부 Computer Programming, g, 2007 봄학기 Editors 순서 Editors vi emacs Q&A Editors Vi (VIsual) Text Editor Interactive Computer
More informationStatistics 202A - vi Tutorial
Statistics 202A - vi Tutorial Ryan Rosario October 16, 2007 vi is by far my favorite editor. The material for this handout came from http://www.eng.hawaii.edu/tutor/vi.html and credit is given to them.
More informationUsing CRISP. I. CRISP Basics To create a new file, at the UNIX prompt type: cr newfilename
Using CRISP Outline I. CRISP Basics II. Moving Around in CRISP III. Inserting and Deleting Text IV. Cutting and Pasting Text V. Search and Replace VI. File and Buffer Manipulation VII. Window Manipulation
More informationText Editing in UNIX. A short introduction to vi, pico, and gedit
Text Editing in UNIX A short introduction to vi, pico, and gedit Copyright 2006 2009 Stewart Weiss About UNIX editors There are two types of text editors in UNIX: those that run in terminal windows, called
More informationBEG 6. 50p. Getting Started with the Emacs Screen Editor. An introduction to the Emacs screen editor, which is available on Unix systems.
Getting Started with the Emacs Screen Editor An introduction to the Emacs screen editor, which is available on Unix systems. AUTHOR Information Systems Services University of Leeds DATE March 2000 EDITION
More informationBok, Jong Soon
Using VI Editor Bok, Jong Soon javaexpert@nate.com www.javaexpert.co.kr Linux Text Editors - Gedit Lab 1 : Installation Gedit Plugins Installation Gedit Plugins (1/3) 1. $ sudo apt-get install y gedit-plugins
More informationProgram Development Tools. Lexical Analyzers. Lexical Analysis Terms. Attributes for Tokens
Program Development Tools lex makefiles vi and gvim ctags source level debugging diff and cmp Lexical Analyzers A lexical analyzer reads in a stream of characters as input and produces a sequence of symbols
More informationUNIX: Using PICO on Central UNIX
Using PICO on Central UNIX SYNOPSIS This chapter provides a summary of the basic pico commands. Basic operations such as cursor movement, inserting and deleting text, and searches are covered to give the
More informationUsing the Command-Line Interface
CHAPTER 1 The command-line interface (CLI) is a line-oriented user interface that has a set of commands for configuring, managing, and monitoring the CSS. To help you use these commands, this chapter provides
More informationAppendix C. Icon and Text Editors
Appendix C Icon and Text Editors Below are a list of icon and full screen text editors. Most icon editors and full screen text editors are dependent on platform, operating system and motif package installed.
More informationVim Habits. Detect inefficiency Find a quicker way Make it a habit
Vim Habits A few years ago I watched a very interesting video about vim which I like to share because I think it s important for all developers, not only for vim users but also for those who spend many
More informationLab 3a Using the vi editor
Lab 3a Using the vi editor Objectives: Become familiar with the vi Editor Review the three vi Modes Review keystrokes to move between vi modes Create a new file with vi Editor Invoke vi with show mode
More informationVIM Tips and Tricks. Search and replace a string in a document : :.,$s/search_string/replacement_string/g
VIM Tips and Tricks This wuold be a simple reminder for the most common tips for VI or VIM. It would not be a deep dive on it, simply a memo for the most common feature used by me. Search and replace a
More informationEssential Unix (and Linux) for the Oracle DBA. Revision no.: PPT/2K403/02
Essential Unix (and Linux) for the Oracle DBA Revision no.: PPT/2K403/02 Architecture of UNIX Systems 2 UNIX System Structure 3 Operating system interacts directly with Hardware Provides common services
More informationVI (and Clone) Introductory Guide
VI (and Clone) Introductory Guide Susan Liebeskind (shl@cc.gatech.edu) Miles O Neal (meo@rru.com) Systems & Software Solutions December 12, 1998 ABSTRACT Vi, the standard screen editor on Unix machines,
More informationIntroduction to Linux (Part II) BUPT/QMUL 2018/03/21
Introduction to Linux (Part II) BUPT/QMUL 2018/03/21 Contents 10. vi 11. Other commands 12. Developing tools 2 10. Editor - vi Text editor Insert mode Override mode Use sub-commands Tradition tools and
More informationIntroduction to Linux Environment. Yun-Wen Chen
Introduction to Linux Environment Yun-Wen Chen 1 The Text (Command) Mode in Linux Environment 2 The Main Operating Systems We May Meet 1. Windows 2. Mac 3. Linux (Unix) 3 Windows Command Mode and DOS Type
More informationText Editors for Programmers. Dr. Prasad Kulkarni Michael Jantz Jamie Robinson
Text Editors for Programmers Dr. Prasad Kulkarni Michael Jantz Jamie Robinson 1 Real Programmers 2 vim Based on vi vi written in 1976 and has become standard on Unix machines Basic design principles: Retains
More informationMastering Linux by Paul S. Wang Appendix: The emacs Editor
Mastering Linux by Paul S. Wang Appendix: The emacs Editor The emacs editor originally was developed at the MIT Laboratory for Computer Science. As emacs gained popularity, it was ported to UNIX and Linux
More informationIntroduction to EMACS. Harriet Borton Academic and Research Computing
Introduction to EMACS Harriet Borton Academic and Research Computing Contents Starting Emacs 2 Parts of the Emacs Screen 3 Basic Editing 4 Entering text 4 Moving around in a file 4 Deleting text 4 Undoing
More informationNETW 110 Lab 3 Post-Installation Configuration Page 1
NETW 110 Lab 3 Post-Installation Configuration Page 1 Objective At the conclusion of this lab, the student will learn some very basic functions of vi, use vi to perform some post-installation configuration
More informationOnce you have installed MobaXterm, open MobaXterm. Go to Sessions -> New Session, and click on the SSH icon.
Lab 1 In order to get credit for the lab, you need to be checked off by the end of lab. For nonzero labs, you can earn a maximum of 3 points for lab work completed outside of lab time, but you must finish
More informationBASIC VI COMMANDS. Move cursor down one line [or down-arrow] 2. k[or up-arrow] Move cursor up one line 3. h or<backspace> Move cursor left one line
BASIC VI COMMANDS To Start vi 1. vi filename Create or Edit filename starting at line 1 2. vi -r filename Recover filename that was being edited when system crashed To Exit vi 1. :x Quit vi, writing
More information<<<<<<<<<<BASIC VI COMMANDS>>>>>>>>>>>>>>>>>>
Linux_VI Page 1 VI COMMANDS Wednesday, July 08, 2015 11:59 AM >>>>>>>> esc(twice) => Enters into the command mode :w => Saves the content :q! :wq (or) ZZ => quit without
More informationOFFICE OF INFORMATION TECHNOLOGY
OFFICE OF INFORMATION TECHNOLOGY Getting Started with Emacs Kenny Burns Scott Cole 1996 BOSTON UNIVERSITY Permission is granted to make verbatim copies of this document provided copyright and attribution
More informationVI Commands Cheat Sheets
VI Commands Cheat Sheets Before doing anything to a document, type the following command followed by a carriage return: :set showmode GOOD PRACTICE NOTE ESPECIALLY FOR BEGINNERS: WHEN USING VI, HIT [ESC]
More informationIntroduction to UNIX. Logging in. Basic System Architecture 10/7/10. most systems have graphical login on Linux machines
Introduction to UNIX Logging in Basic system architecture Getting help Intro to shell (tcsh) Basic UNIX File Maintenance Intro to emacs I/O Redirection Shell scripts Logging in most systems have graphical
More informationWeek Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages
ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find
More informationIntel Edison Tutorial: Introduction to Vim 1
Intel Edison Tutorial: Introduction to Vim Intel Edison Tutorial: Introduction to Vim 1 Table of Contents Introduction... 3 Things Needed... Error! Bookmark not defined. Introduction... 4 What Is Vim?...
More informationIntroduction to the Emacs Editor
Introduction to the Emacs Editor Scott D. Anderson Wellesley College Scott.Anderson@acm.org c Fall 2004 1 What is Emacs? Emacs is an editor: a program that allows you to modify files. Many of you have
More informationVIM Guide. Meher Krishna Patel. Created on : Octorber, 2017 Last updated : May, More documents are freely available at PythonDSP
VIM Guide Meher Krishna Patel Created on : Octorber, 2017 Last updated : May, 2018 More documents are freely available at PythonDSP Table of contents Table of contents i 1 Vim 1 1.1 Starting Vim................................................
More informationLearning the vi text editor
Learning the vi text editor William Totten University of Delaware January 06, 2017 Learning how the vi text editor works for use on research systems. The vi editor is so named because it is a visual interface
More informationIntroduction to UNIX Part II
T H E U N I V E R S I T Y of T E X A S H E A L T H S C I E N C E C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S Introduction to UNIX Part II For students
More informationGetting Started. Running Utilities. Shells. Special Characters. Special Characters. Chapter 2 Unix Utilities for non-programmers
Chapter 2 Unix Utilities for non-programmers Graham Glass and King Ables, UNIX for Programmers and Users, Third Edition, Pearson Prentice Hall, 2003. Original Notes by Raj Sunderraman Converted to presentation
More informationIntroduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p.
Introduction p. 1 Who Should Read This Book? p. 1 What You Need to Know Before Reading This Book p. 2 How This Book Is Organized p. 2 Conventions Used in This Book p. 2 Introduction to UNIX p. 5 An Overview
More informationMastering Linux by Paul S. Wang Appendix: Text Editing with vi
Mastering Linux by Paul S. Wang Appendix: Text Editing with vi A text editor is used to enter programs, data, or text into new files, as well as to modify existing files. There are as many different text
More informationFILE MAINTENANCE COMMANDS
Birla Institute of Technology & Science, Pilani Computer Programming (CS F111) Lab-2 ----------------------------------------------------------------------------------------------------------------------
More informationGetting Started with UNIX
Getting Started with UNIX What is UNIX? Boston University Information Services & Technology Course Number: 4000 Course Instructor: Kenny Burns Operating System Interface between a user and the computer
More informationMICROSOFT EXCEL KEYBOARD SHORCUTS
MICROSOFT EXCEL KEYBOARD SHORCUTS F1 Displays the Office Assistant or (Help > Microsoft Excel Help) F2 Edits the active cell, putting the cursor at the end F3 Displays the (Insert > Name > Paste) dialog
More informationEmacs manual:
Emacs manual: http://www.gnu.org/manual/emacs-20.3/html_mono/emacs.html GNU Emacs Reference Card (for version 19) Starting Emacs To enter GNU Emacs 19, just type its name: emacs or emacs filename Leaving
More informationOutline. Structure of a UNIX command
Outline Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission (owner, group, rwx) File and directory
More informationThe Xemacs Editor. Overview
The Xemacs Editor Editors are used to create and modify simple text files. The public domain editor emacs has achieved great popularity because of its many features and its wide availability. Emacs was
More informationh/w m/c Kernel shell Application s/w user
Structure of Unix h/w m/c Kernel shell Application s/w. user While working with unix, several layers of interaction occur b/w the computer h/w & the user. 1. Kernel : It is the first layer which runs on
More informationBasic File Attributes
Basic File Attributes The UNIX file system allows the user to access other files not belonging to them and without infringing on security. A file has a number of attributes (properties) that are stored
More informationIntroduction to GNU Emacs
Information Technology Rice University Document UNIX 5 July 11, 2002 Introduction to GNU Emacs Abstract This document explains how to use GNU Emacs to create and edit text files, use RMAIL to read mail,
More informationEmacs Tutorial. Creating or Opening a File. Geog 405/605 Computer Programming for Environmental Research Fall 2018
An Emacs tutorial generated by its authors is available online by typing control-h t from within an editing session. It is not good. This tutorial is written for an audience that is assumed to have used
More informationCreating Your Own Student Accounts On Central UNIX and OpenMail
Creating Your Own Student Accounts On Central UNIX and OpenMail SYNOPSIS This section describes how Cal Poly students may create their own account on Cal Poly's Central UNIX. When the UNIX account is created
More informationUsing the Zoo Workstations
Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions
More informationINTRODUCTION TO VIM. John Kerl University of Arizona Department of Mathematics Software Interest Group September 7, 2005
INTRODUCTION TO VIM John Kerl University of Arizona Department of Mathematics Software Interest Group September 7, 2005 1 Overview Why What How 2 Why use a power editor such as vim or emacs? Notepad, gedit,
More information7.1 INTRODUCTION 7.2 STARTING Emacs 7.3 Emacs SCREEN Menu Bar Text Mode Menu Mode Line Echo Line
7 The Emacs Editor This chapter covers the Emacs editor. Emacs is not distributed with all UNIX systems. However, it is available on most Linux systems. The purpose of this chapter is to introduce you
More informationText Editors for Programmers. EECS-678 Staff
Text Editors for Programmers EECS-678 Staff 1 Real Programmers 2 vim Based on vi vi was written in 1976 and has become standardon Unix machines Basic design principles: Retains each permutation of typed
More informationUnix File System. Learning command-line navigation of the file system is essential for efficient system usage
ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find
More informationLinux 下代码查看 编辑 编译与调试 (I) 袁华
Linux 下代码查看 编辑 编译与调试 (I) 袁华 yuanh25@mail.sysu.edu.cn Introduction to VI (VIM) text editor Contents View codes Compile, build and run Debug Why Do Code Works on a Linux Server? Windows/Mac can do the same
More informationHelpful Tips for Labs. CS140, Spring 2015
Helpful Tips for Labs CS140, Spring 2015 Linux/Unix Commands Creating, Entering, Changing Directories to Create a Directory (a Folder) on the command line type mkdir folder_name to Enter that Folder cd
More informationUnix Philosophy, Text Editors, IDEs
Philosophy, Text Editors, IDEs Comp Sci 1585 Data Structures Lab: Tools for Computer Scientists Outline 1 2 3 4 5 Excerpts from the Write programs to handle text streams, because that is a universal interface.
More informationLecture # 2 Introduction to UNIX (Part 2)
CS390 UNIX Programming Spring 2009 Page 1 Lecture # 2 Introduction to UNIX (Part 2) UNIX is case sensitive (lowercase, lowercase, lowercase) Logging in (Terminal Method) Two basic techniques: 1. Network
More informationKEYBOARD SHORTCUTS AND HOT KEYS
KEYBOARD SHORTCUTS AND HOT KEYS Page 1 This document is devoted to using the keyboard instead of the mouse to perform tasks within applications. This list is by no means the "be all and end all". There
More informationMicrosoft Excel > Shortcut Keys > Shortcuts
Microsoft Excel > Shortcut Keys > Shortcuts Function Keys F1 Displays the Office Assistant or (Help > Microsoft Excel Help) F2 Edits the active cell, putting the cursor at the end* F3 Displays the (Insert
More informationStd: XI CHAPTER-3 LINUX
Commands: General format: Command Option Argument Command: ls - Lists the contents of a file. Option: Begins with minus sign (-) ls a Lists including the hidden files. Argument refers to the name of a
More informationThe most important Mac keyboard shortcuts
E-book - Cheat sheet The most important Mac keyboard shortcuts icoursesonline.com Keyboard shortcuts save time, and create a more pleasant and fun user experience «These simple keyboard shortcuts will
More informationComputer Networks Vim and Emacs. Seongjin Lee
2019-01 Computer Networks 407-202 Vim and Emacs Seongjin Lee Vim 2 Contents What is vi Modes of Vi Moving Around and Dele7ng in vi Replacing, Searching, and Subs7tu7ng in vi Undo and Redo in vi Simple
More informationMills HPC Tutorial Series. Linux Basics I
Mills HPC Tutorial Series Linux Basics I Objectives Command Line Window Anatomy Command Structure Command Examples Help Files and Directories Permissions Wildcards and Home (~) Redirection and Pipe Create
More informationSection 2. Opening and Editing Documents
Section 2 Opening and Editing Documents Topics contained within this section: Opening Documents Using Scroll Bars Selecting Text Inserting and Deleting Text Copying and Moving Text Understanding and Using
More informationentity tomove over backward forward character C-b C-f word M-b M-f line C-p C-n go to line beginning (or end) C-a C-e sentence M-a M-e paragraph M- M-
Starting Emacs To enter GNU Emacs 21, just type its name: emacs To read in a file to edit, see Files, below. Leaving Emacs suspend Emacs (or iconify it under X) exit Emacs permanently Files read afileinto
More informationSwitch between open apps Close the active item, or exit the active app
Ctrl + X Ctrl + C (or Ctrl + Insert) Ctrl + V (or Shift + Insert) Ctrl + Z Alt + Tab Alt + F4 L D F2 F3 F4 F5 F6 F10 Alt + F8 Alt + Esc Alt + underlined letter Alt + Enter Alt + Spacebar Alt + Left arrow
More informationMicrosoft Office Word. Part1
Microsoft Office 2010 - Word Part1 1 Table of Contents What is Microsoft Word?... 4 Creating a document... 5 Toolbar... 6 Typing in MS Word Text Area... 7 Cut, Copy and Paste Text... 9 Paste Preview...
More informationCS4350 Unix Programming. Outline
Outline Unix Management Files and file systems Structure of Unix Commands Command help (man) Log on (terminal vs. graphical) System information (utility) File and directory structure (path) Permission
More informationGetting started with UNIX/Linux for G51PRG and G51CSA
Getting started with UNIX/Linux for G51PRG and G51CSA David F. Brailsford Steven R. Bagley 1. Introduction These first exercises are very simple and are primarily to get you used to the systems we shall
More informationCMPT 300. Operating Systems. Brief Intro to UNIX and C
CMPT 300 Operating Systems Brief Intro to UNIX and C Outline Welcome Review Questions UNIX basics and Vi editor Using SSH to remote access Lab2(4214) Compiling a C Program Makefile Basic C/C++ programming
More informationAMS 200: Working on Linux/Unix Machines
AMS 200, Oct 20, 2014 AMS 200: Working on Linux/Unix Machines Profs. Nic Brummell (brummell@soe.ucsc.edu) & Dongwook Lee (dlee79@ucsc.edu) Department of Applied Mathematics and Statistics University of
More informationCommodore Amiga Unix System V Release 4
Commodore Amiga Unix System V Release 4 Learning Amiga-Unix 1 Copyright 1990 Commodore-Amiga Inc. All rights reserved. Commodore and Amiga are registered trademarks of Commodore Electronics Ltd. And Commodore-
More informationIntro. To Unix commands. What are the machines? Very basics
Intro. To Unix commands For those who ve never used Unix before Quick tutorial to let you move around your Unix Accounts No discussion i of inner workings of Unix Take Operating Systems CSCI-4210 Comparisons
More informationVersion Operator Orientation. TIMMS Client. A guide to using the TIMMS System. Training & Navigation Notes
Version 7.2.4 Operator Orientation TIMMS Client A guide to using the TIMMS System Training & Navigation Notes Disprax Pty Ltd 2015 WHAT IS TIMMS? TIMMS Stands for: Total Industry Management and Marketing
More informationGetting Started with Linux Editors. Network Startup Resource Center
Getting Started with Linux Editors Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (http://creativecommons.org/licenses/by-nc/4.0/)
More informationGetting Started With UNIX Lab Exercises
Getting Started With UNIX Lab Exercises This is the lab exercise handout for the Getting Started with UNIX tutorial. The exercises provide hands-on experience with the topics discussed in the tutorial.
More informationCHE3935. Lecture 1. Introduction to Linux
CHE3935 Lecture 1 Introduction to Linux 1 Logging In PuTTY is a free telnet/ssh client that can be run without installing it within Windows. It will only give you a terminal interface, but used with a
More informationIntroduction. SSH Secure Shell Client 1
SSH Secure Shell Client 1 Introduction An SSH Secure Shell Client is a piece of software that allows a user to do a number of functions. Some of these functions are: file transferring, setting permissions,
More informationShort Read Sequencing Analysis Workshop
Short Read Sequencing Analysis Workshop Day 2 Learning the Linux Compute Environment In-class Slides Matt Hynes-Grace Manager of IT Operations, BioFrontiers Institute Review of Day 2 Videos Video 1 Introduction
More informationTextadept Quick Reference
FOURTH EDITION Textadept Quick Reference Mitchell Textadept Quick Reference by Mitchell Copyright 2013, 2015, 2016, 2018 Mitchell. All rights reserved. Contact the author at mitchell@foicica.com. Although
More informationMenu Symbols. Menu Symbol. Key on Keyboard
Menu Symbols Menu Symbol Key on Keyboard Command/Apple Key (like Control on a PC) Also written as Cmd Option (like Alt on a PC) Shift Control (Control-click = Right-click) Tab Return Enter (on Number Pad)
More informationRefresher workshop in programming for polytechnic graduates General Java Program Compilation Guide
Refresher workshop in programming for polytechnic graduates General Java Program Compilation Guide Overview Welcome to this refresher workshop! This document will serve as a self-guided explanation to
More informationGetting Started With XEmacs
Getting Started With XEmacs July 1994 (General Public License upgraded, January 1991) Richard Stallman and Rashmi Goyal Copyright c 1985, 1986, 1988 Richard M. Stallman. Copyright c 1991, 1992, 1993, 1994
More informationLinux/Cygwin Practice Computer Architecture
Linux/Cygwin Practice 2010 Computer Architecture Linux Login Use ssh client applications to connect (Port : 22) SSH Clients zterm ( http://www.brainz.co.kr/products/products4_2.php ) Putty ( http://kldp.net/frs/download.php/3411/hangulputty-0.58.h2.exe
More informationConsole User Guide. Tones on For Console. Transferring a Call. Placing a Call on Hold. Answering Calls
Answering Calls Ringing and a flashing Answer key indicate the arrival of a call. The number next to C/W in the display indicates how many calls are waiting to be answered. The information displayed next
More information90 + Excel Keyboard Shortcuts. for Mac users. How to master key board shortcuts
90 + Excel Keyboard Shortcuts for Mac users How to master key board shortcuts 1. Take down a handful (may be 5 or 10) shortcuts that you think you ll use the most often and pin them to your desk. Make
More informationUNIX Quick Reference
UNIX Quick Reference This card represents a brief summary of some of the more frequently used UNIX commands that all users should be at least somewhat familiar with. Some commands listed have much more
More informationSection 5: Editing Cells
Section 5 Editing Cells By the end of this Section you should be able to: Edit Cells by Overtyping Edit Data in the Formula Bar Edit Data in a Cell Delete Cell Contents Use Undo and Redo CiA Training Ltd
More informationComputer Shortcuts. Files menu options in current program. Edits options in current program Universal Help in almost every Windows program.
www.bankjobszone.com Computer Shortcuts Shortcut keys Concept: Shortcuts keys help provide an easier and usually quicker method of navigating and using computer software programs. Shortcut keys are commonly
More informationUsing nu/tpu on UNIX Last revised: 1/28/00
Using nu/tpu on UNIX Last revised: 1/28/00 nu/tpu is a general-purpose text editor available on UNIX that simulates the TPU editor available on VMS operating systems. By default nu/tpu emulates the EDT
More informationVi Command & Function Reference
Vi Command & Function Reference Alan P.W. Hewett Revised for version 2.12 by Mark Horton 1. Author s Disclaimer This document does not claim to be 100% complete. There are a few commands listed in the
More informationOperating System Interaction via bash
Operating System Interaction via bash bash, or the Bourne-Again Shell, is a popular operating system shell that is used by many platforms bash uses the command line interaction style generally accepted
More informationIntroduction. File System. Note. Achtung!
3 Unix Shell 1: Introduction Lab Objective: Explore the basics of the Unix Shell. Understand how to navigate and manipulate file directories. Introduce the Vim text editor for easy writing and editing
More informationUNIX Commands. Ex: $ pwd $/tmp $cd/home/sales, this will change the directory from /tmp to /home/sales.
UNIX Commands ls: File name and directory names are displayed using the ls command. This will display all the files and the directories which are present under that directory. $ls -l -rwxr-xr-x 1 sales
More information