488891
112
Zoom out
Zoom in
Vorherige Seite
1/178
Nächste Seite
if you have installed KDE desktop or
locate .gnome
if you have installed GNOME desktop.
You will see that locate displays all le names in the database that contain
the string .kde or .gnome anywhere. To learn how to modify this behavior refer
to the man page of locate.
2 To search your home directory for all occurrences of lenames that contain
the le extension .txt, use
find ~ -name '*.txt' -print
3 To search a directory (in this case, your home directory) for all occurrences
of les which contain, for example, the word music, enter
grep music ~/*
Note that grep is case-sensitive— unless you use it with the -i option. With
the command above you will not nd any les containing Music.
If you want to use a search string which consists of more than one word, en-
close the string in double quotation marks, for example:
grep "music is great" ~/*
7.9 Viewing Text Files
When searching for the contents of a le with grep, the output gives you the line in
which the searchstring was found along with the lename. Often this contextual
information is still not enough information to decide whether you want to open and
edit this le. Bash oers you several commands to have a quick look at the contents
of a text le directly in the shell, without opening an editor.
head
With head you can view the rst lines of a text le. If you do not specify the
command any further, head shows the rst 10 lines of a text le.
tail
The tail command is the counterpart of head. If you use tail without any further
options it displays the last 10 lines of a text le. This can be very useful to view
log les of your system, where the most recent messages or log entries are usu-
ally found at the end of the le.
less
With less, display the whole contents of a text le. To move up and down half a
page use [Page ] and [Page ]. Use [Space] to scroll down one page. [Home]
102 Start-Up
112

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