LinuxBasics.org

The community that helps people to run Linux

rss

6.5. Exercises

This chapter has only two exercises:

  1. Start the Vim tutor by entering vimtutor in a terminal session (If you don’t have vimtutor on your system, you might have to install it. In older versions of Debian, vimtutor was part of the vim package, but in Etch it became part of the vim-runtime package.), and get started. Practice is the only way!
    • You may alternatively start emacs and type Ctrl+H and then T to invoke the self-paced Emacs tutorial.
  2. Start a GUI editor like Kate or Gedit (any editor which “colorize” syntax will do). The goal of this exercise is to see how the editor helps you with typing code by highlighting it. We just “look and see”. (This feature will come handy later in the course).
    1. Instead of typing in the editor, we will cheat a bit and copy and paste a Bash script from this LBo page: http://linuxbasics.org/historical/2005-course/wx
      • Copy from the line starting with #! /bin/bash, ending with the line grep $word $dict. Look at how it is displayed in the editor.
    2. This time, we will cut and paste a web page and see how html code is displayed in the editor. I recommend this page, http://linuxbasics.org/LDP/HOWTO/Multiboot-with-GRUB.html, which is not too overwhelming for our purpose.
      • Once the page is displayed in your browser, click on “View Source” in the menu bar (the location of this feature will vary according to your browser). Once you have the source displayed, copy and paste it into your editor, and look at the result.

Prev: Summary
Home
Next: Home sweet /home


Copyright (c) by the authors.
This section of the wiki is licensed under the terms of the GNU Free Documentation License.
See the LBook-licensing page for details.


Linux® is a registered trademark of Linus Torvalds.


 
  course/book/sect_06_05.txt · Last modified: 2007/11/16 12:24

LinuxBasics.org

Start Linux-Course Tutorials Linux Links Security Mailing List Online Chat Blog Forum

Site-Info

Help Get in Touch Making of LBo

Wiki-Control

Powered by

Linux Apache DokuWiki Mailman RUTE ht://Dig