Red Hat LINUX VIRTUAL SERVER 4.6 - ADMINISTRATION Installationshandbuch Seite 278

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 296
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 277
258 z/VM and Linux on IBM System z: The Virtualization Cookbook for Red Hat Enterprise Linux 6.0
Cheat sheets
This section contains quick references or “cheat sheets” for the XEDIT and vi editors.
XEDIT cheat sheet
XEDIT has line commands that are entered on the command line (===>) and prefix
commands that are typed over the line numbers on the left side of the panel.
Line commands
a Adds a line.
a<n> Adds ‘n’ lines.
c/<old>/<new>/ <n> <m> Searches for the ‘old’ string and replaces it with ‘new’ for ‘n’ lines
below the current line and ‘m’ times on each line. ‘*’ can be used
for ‘n’ and ‘m’
/<string> Searches for ‘string’ from the current line.
-/<string> Searches backwards for ‘string’.
all /<string>/ Shows all occurrences of ‘string’ and hide the other lines.
bottom Moves to the bottom of the file.
top Moves to the top of the file.
down <n> Moves down ‘n’ lines.
up <n> Moves up ‘n’ lines.
file Saves the current file and exit XEDIT.
ffile Saves the current file and exit but do not warn of overwrite.
save Saves the current file but do not exit.
quit Exits XEDIT if no changes have been made.
qquit Exits XEIDT even if changes have not been saved.
left <n> Shifts ‘n’ characters to the left.
right <n> Shifts ‘n’ characters to the right.
get <file> Copies the file and insert past the current line.
:<n> Moves to line ‘n’.
? Displays the last command.
= Executes the last command.
x <file> Edits ‘file’ and put it into the XEDIT “ring”.
x Moves to the next file in the ring.
Prefix commands
a Adds one line.
a<n> Adds 'n' lines.
c Copies one line.
cc Copies a block of lines.
d Deletes one line.
dd Deletes a block of lines.
f The line after which a copy (c) or a move (m) is to be inserted.
Seitenansicht 277
1 2 ... 273 274 275 276 277 278 279 280 281 282 283 ... 295 296

Kommentare zu diesen Handbüchern

Keine Kommentare