Week 3 at a Glance
Intro:
This week we are focusing using text editor in Linux. As Eli in the video will tell you, as an administrator, making changes to the system in Linux means making changes to configuration files, and this means using a text editor.
The two “big” editors in Linux (and in any Unix system) are vi and emacs. We are going to use vi. It will be frustrating to you at first, but let’s just call it an “acquired taste.” I write a lot of code, and most of my programs were written using the vi editor. Technically, we are using “vim” since “vi” wasn’t freely available (at least not until 2002). One advantage to vi is that nearly every Unix system will have it, so if you know vi, you’ll be able to edit files on a wide range of systems.
- Watch a video Vim for Editing Files in Linux
- (Yes there is a the big “vi vs. emacs” flamewars)
- (You don’t need “sudo vim” unless you need to modify/create a system file)
- Optionally watch:
- Using vi The Basics
- (The audio gets better after the intro)
- Read Chapter 4 - Linux Operations & Administration 1st Edition Authors: Nadine Basta, Dustin Finamore, Alfred Basta, Serge Palladino - Publisher: Cengage Learning
- Participate in the Discussions for Chapter 4
- Look or print the “vi Editor “Cheat Sheet”
- http://www.atmos.albany.edu/daes/atmclasses/atm350/unix_tutorial.html
- Complete (some of the) Chapter 4 Activities - Linux Operations & Administration 1st Edition Authors: Nadine Basta, Dustin Finamore, Alfred Basta, Serge Palladino - Publisher: Cengage Learning
- Skip 4-1 & 4-2 (if you don’t yet have your own virtual computer)
- Do 4-3 through 4-6 (all are using vim)
- Take the Chapter 4 Reading Quiz - Quiz generated from the following publisher test pool. - Linux Operations & Administration 1st Edition Authors: Nadine Basta, Dustin Finamore, Alfred Basta, Serge Palladino - Publisher: Cengage Learning
- Complete the NSW DoE vi assignment - Note this assignment was taken from the NSW Department of Education in Austrialia:
http://nsi.det.nsw.edu.au/8/45/linux/Shared%20Documents/week4%20%20exercise%202%20-%20workbook%202%20-%20Using%20the%20vi%20Text%20Editor.doc
- Complete the “vi-challenge” on the common system
- Complete Homework 2 – Using vi – Assignment generated from the following publisher test pool. - Linux Operations & Administration 1st Edition Authors: Nadine Basta, Dustin Finamore, Alfred Basta, Serge Palladino - Publisher: Cengage Learning
- Learn about another editor, called “joe”
- Get ready for Exam 1