4.3.3.3. ...using a filename in one command, and then reusing that filename in the next command?
Press Esc-_ (underscore) to copy the last argument from the previous command. For example, to create a directory and then change to that directory:
$ mkdir
$ cd
$ cd backup-directory-august
4.3.4. Where Can I Learn More?
? The Linux Standard Base project: http://www.linuxbase.org/
? The manpages for
? The Konqueror Handbook (press F1 in a Konqueror window)
? The GNOME User's Guide (press F1 in a Nautilus window)
4.4. Basic Text Editing Using vi
Fedora Core, like most other Linux and Unix systems, stores most of its configuration information in text files. These files can be edited using various system administration tools, but they can also be edited by hand using any standard text editor.
4.4.1. How Do I Do That?
To start up the
$ vi
The screen will clear, and the specified file will be displayed, as shown in Figure 4-4 .
Figure 4-4. Initial vi display
Notice that unused lines are marked with a tilde (~) character.
4.4.1.1. vi modes
?
?
The lower-left corner of the display shows the current mode: if it says -- INSERT -- , then you're in insert mode; otherwise, you're in normal mode.
4.4.1.2. Moving around
You can move the cursor around using the arrow keys. If your arrow keys don't work (which may be the case if you're using a remote connection from a bad terminal program), you can use the h, j, k, and l keys, as shown in Table 4-7 .
Table 4-7. Basic vi movement commands
Command | Description |
---|---|
Left, h, or Backspace | Move left one character. |
Down or j | Move down one line. |
Up or k | Move up one line. |
Right, l, or Space | Move right one character. |