488891
110
Zoom out
Zoom in
Vorherige Seite
1/178
Nächste Seite
NOTE: Using Wildcards in rm Commands
Wildcards in a rm command can be very useful but also dangerous: you might
delete more les from your directory than intended. To see which les would be
aected by the rm, run your wildcard string with ls instead of rm rst.
7.7 Editing Texts
In order to edit les from the command line, you will need to know the vi editor. vi
is a default editor which can be found on nearly every UNIX/Linux system. It can run
several operating modes in which the keys you press have dierent functions. This
does not make it very easy for beginners, but you should know at least the most
basic operations with vi. There may be situations where no other editor than vi is
available.
Basically, vi makes use of three operating modes:
command mode
In this mode, vi accepts certain key combinations as commands. Simple tasks
such as searching words or deleting a line can be executed.
insert mode
In this mode, you can write normal text.
extended mode
In this mode, also known as colon mode (as you have to enter a colon to switch
to this mode), vi can execute also more complex tasks such as searching and
replacing text.
In the following (very simple) example, you will learn how to open and edit a le with
vi, how to save your changes and quit vi.
7.7.1 Example: Editing with vi
NOTE: Display of Keys
In the following, nd several commands that you can enter in vi by just pressing
keys. These appear in uppercase as on a keyboard. If you need to enter a key
in uppercase, this is stated explicitly by showing a key combination including
the [Shift] key.
1 To create and open a new le with vi, enter
vi textfile.txt
By default, vi opens in command mode in which you cannot enter text.
2 Press [I] to switch to insert mode. The bottom line changes and indicates that
you now can insert text.
100 Start-Up
110

Brauchen Sie Hilfe? Stellen Sie Ihre Frage.

Forenregeln

Missbrauch melden von Frage und/oder Antwort

Libble nimmt den Missbrauch seiner Dienste sehr ernst. Wir setzen uns dafür ein, derartige Missbrauchsfälle gemäß den Gesetzen Ihres Heimatlandes zu behandeln. Wenn Sie eine Meldung übermitteln, überprüfen wir Ihre Informationen und ergreifen entsprechende Maßnahmen. Wir melden uns nur dann wieder bei Ihnen, wenn wir weitere Einzelheiten wissen müssen oder weitere Informationen für Sie haben.

Art des Missbrauchs:

Zum Beispiel antisemitische Inhalte, rassistische Inhalte oder Material, das zu einer Gewalttat führen könnte.

Beispielsweise eine Kreditkartennummer, persönliche Identifikationsnummer oder unveröffentlichte Privatadresse. Beachten Sie, dass E-Mail-Adressen und der vollständige Name nicht als private Informationen angesehen werden.

Forenregeln

Um zu sinnvolle Fragen zu kommen halten Sie sich bitte an folgende Spielregeln:

Neu registrieren

Registrieren auf E - Mails für Suse openSUSE 11.3 wenn:


Sie erhalten eine E-Mail, um sich für eine oder beide Optionen anzumelden.


Das Handbuch wird per E-Mail gesendet. Überprüfen Sie ihre E-Mail.

Wenn Sie innerhalb von 15 Minuten keine E-Mail mit dem Handbuch erhalten haben, kann es sein, dass Sie eine falsche E-Mail-Adresse eingegeben haben oder dass Ihr ISP eine maximale Größe eingestellt hat, um E-Mails zu erhalten, die kleiner als die Größe des Handbuchs sind.

Ihre Frage wurde zu diesem Forum hinzugefügt

Möchten Sie eine E-Mail erhalten, wenn neue Antworten und Fragen veröffentlicht werden? Geben Sie bitte Ihre Email-Adresse ein.



Info