wtorek, 2 lipca 2013

Polecenia less i more

Polecenie less wyświetla zawartość pliku tekstowego na ekranie, możemy poruszać do przodu i do tyłu za pomocą klawiszy spacja i b, wychodzimy z less za pomocą klawisza q.

Przykład:

sudo less /var/log/messages

Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
/var/log/messages

Polecenie more służy do tego samego co less. ale jest uboższe, nie można poruszać się do tyłu tylko do przodu, spacja następny ekran, q wychodzi.

Przykład:

sudo more /var/log/messages
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
RITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jun 30 16:18:12 localhost /etc/gdm/Xsession[1129]: (gnome-shell:1477): Clutter-C
--Więcej--(0%)

Brak komentarzy:

Prześlij komentarz