|
|
(22 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) |
Zeile 1: |
Zeile 1: |
| '''last''' - Kurzbeschreibung | | '''wtmpdb''' - display login, logout and reboot information |
|
| |
|
| == Beschreibung == | | == Beschreibung == |
| wtmpdb - display login, logout and reboot information | | wtmpdb displays the content of the wtmp database and allows creating reboot and shutdown entries. |
| | |
| | This command is [[Y2038 safe]] and uses sqlite3 to store the information. |
|
| |
|
| == Installation == | | == Installation == |
|
| |
|
| <syntaxhighlight lang="bash" highlight="1,6,11,23" line> | | <syntaxhighlight lang="bash" highlight="1,6,11,23" line copy> |
| # last
| | last |
| Der Befehl 'last' wurde nicht gefunden, kann aber installiert werden mit: | | Der Befehl 'last' wurde nicht gefunden, kann aber installiert werden mit: |
| apt install util-linux | | apt install util-linux |
| apt install wtmpdb | | apt install wtmpdb |
|
| |
|
| # apt install util-linux
| | apt install util-linux |
| util-linux ist schon die neueste Version (2.40.1-8). | | util-linux ist schon die neueste Version (2.40.1-8). |
| Summary: | | Summary: |
| Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0 | | Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0 |
|
| |
|
| # apt install wtmpdb
| | apt install wtmpdb |
| Installing: | | Installing: |
| wtmpdb | | wtmpdb |
|
| |
|
| Installing dependencies: | | Installing dependencies: |
| libpam-wtmpdb libwtmpdb0
| | libpam-wtmpdb libwtmpdb0 |
| | |
| Summary:
| |
| Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 0
| |
| Download size: 31,5 kB
| |
| Space needed: 141 kB / 58,3 GB available
| |
| | |
| Continue? [J/n]
| |
| Holen:1 http://ftp.de.debian.org/debian testing/main amd64 libwtmpdb0 amd64 0.12.0-2 [8.552 B]
| |
| Holen:2 http://ftp.de.debian.org/debian testing/main amd64 libpam-wtmpdb amd64 0.12.0-2 [7.984 B]
| |
| Holen:3 http://ftp.de.debian.org/debian testing/main amd64 wtmpdb amd64 0.12.0-2 [15,0 kB]
| |
| Es wurden 31,5 kB in 0 s geholt (150 kB/s).
| |
| Laden der Fehlerberichte … Erledigt
| |
| »Found/Fixed«-Informationen werden ausgewertet … Erledigt
| |
| Vormals nicht ausgewähltes Paket libwtmpdb0:amd64 wird gewählt.
| |
| (Lese Datenbank ... 793262 Dateien und Verzeichnisse sind derzeit installiert.)
| |
| Vorbereitung zum Entpacken von .../libwtmpdb0_0.12.0-2_amd64.deb ...
| |
| Entpacken von libwtmpdb0:amd64 (0.12.0-2) ...
| |
| Vormals nicht ausgewähltes Paket libpam-wtmpdb:amd64 wird gewählt.
| |
| Vorbereitung zum Entpacken von .../libpam-wtmpdb_0.12.0-2_amd64.deb ...
| |
| Entpacken von libpam-wtmpdb:amd64 (0.12.0-2) ...
| |
| Vormals nicht ausgewähltes Paket wtmpdb wird gewählt.
| |
| Vorbereitung zum Entpacken von .../wtmpdb_0.12.0-2_amd64.deb ...
| |
| Entpacken von wtmpdb (0.12.0-2) ...
| |
| libwtmpdb0:amd64 (0.12.0-2) wird eingerichtet ...
| |
| libpam-wtmpdb:amd64 (0.12.0-2) wird eingerichtet ...
| |
| | |
| pam-auth-update: Local modifications to /etc/pam.d/common-*, not updating.
| |
| pam-auth-update: Run pam-auth-update --force to override.
| |
| | |
| wtmpdb (0.12.0-2) wird eingerichtet ...
| |
| Created symlink '/etc/systemd/system/timers.target.wants/wtmpdb-rotate.timer' → '/usr/lib/systemd/system/wtmpdb-rotate.timer'.
| |
| Created symlink '/etc/systemd/system/default.target.wants/wtmpdb-update-boot.service' → '/usr/lib/systemd/system/wtmpdb-update-boot.service'.
| |
| wtmpdb-rotate.service is a disabled or a static unit, not starting it.
| |
| Trigger für man-db (2.12.1-1) werden verarbeitet ...
| |
| Trigger für libc-bin (2.38-12) werden verarbeitet ...
| |
| Prüfe Prozesse...
| |
| Scanning processor microcode...
| |
| Prüfe Linux-Kernel...
| |
| | |
| Der laufende Kernel ist aktuell.
| |
| | |
| Der Prozessor Mikrocode ist aktuell.
| |
| | |
| Es müssen keine Dienste neugestartet werden.
| |
| | |
| Es müssen keine Container neu gestartet werden.
| |
| | |
| Es gibt keine Nutzer-Sitzungen mit veralteten Prozessen.
| |
| | |
| No VM guests are running outdated hypervisor (qemu) binaries on this host.
| |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|
| == Syntax == | | == Aufruf == |
| <syntaxhighlight lang="bash" highlight="1" line> | | <syntaxhighlight lang="bash" highlight="1,2" line copy> |
| | last |
| wtmpdb COMMAND [option...] | | wtmpdb COMMAND [option...] |
| </syntaxhighlight> | | </syntaxhighlight> |
| | |
| === Optionen === | | === Optionen === |
| === Parameter === | | === Argumente === |
| === Umgebungsvariablen === | | === Umgebung === |
| === Exit-Status === | | === Rückgabewert === |
|
| |
|
| == Anwendung == | | == Anwendung == |
| === Fehlerbehebung === | | === Problembehebung === |
| == Konfiguration == | | == Konfiguration == |
| === Dateien === | | === Dateien === |
Zeile 92: |
Zeile 46: |
| == Anhang == | | == Anhang == |
| === Siehe auch === | | === Siehe auch === |
| {{Special:PrefixIndex/{{BASEPAGENAME}}}} | | {{Special:PrefixIndex/{{BASEPAGENAME}}/}} |
| ==== Dokumentation ====
| | === Dokumentation === |
| ===== Man-Pages =====
| | ; Man-Page |
| ===== Info-Pages =====
| | ;Info-Page |
| ==== Links ====
| | === Links === |
| ===== Projekt =====
| | ==== Projekt ==== |
| ===== Weblinks =====
| | ==== Weblinks ==== |
| | |
| = TMP =
| |
| <syntaxhighlight lang="bash" highlight="1" line>
| |
| WTMPDB(8) wtmpdb WTMPDB(8)
| |
| | |
| NAME
| |
| wtmpdb - display login, logout and reboot information
| |
| | |
| SYNOPSIS
| |
| | |
| wtmpdb COMMAND [option...]
| |
| | |
| DESCRIPTION
| |
| wtmpdb displays the content of the wtmp database and allows to create reboot and shutdown entries.
| |
| | |
| This command is Y2038 safe and uses sqlite3 to store the information.
| |
| | |
| COMMANDS
| |
| The following commands are understood:
| |
| | |
| last [option...] [username...] [tty...]
| |
| wtmpdb last goes through the /var/lib/wtmpdb/wtmp.db database (or the database designated by the -f option) and displays a list of of all users
| |
| logged in and logged out. The output can be restricted to different patterns via various options. If one or more usernames and/or ttys are given
| |
| wtmpdb last will only show the entries matching those arguments.
| |
| | |
| The login and logout times of the special user reboot are the boot and shutdown times of the system.
| |
| | |
| -a, --hostlast
| |
| Display hostnames in the last column.
| |
| | |
| -d, --dns
| |
| Translate IP addresses into a hostname.
| |
| | |
| -f, --file FILE
| |
| Use FILE as wtmpdb database.
| |
| | |
| -F, --fulltimes
| |
| Display full times and dates.
| |
| | |
| -i, --ip
| |
| Translate hostnames to IP addresses.
| |
| | |
| -n, --limit N
| |
| Display only the first N entries.
| |
| | |
| -p, --present TIME
| |
| Display who was present at TIME.
| |
| | |
| -R, --nohostname
| |
| Don't display any hostname or IP address.
| |
| | |
| -S, --service
| |
| Display PAM service used to login.
| |
| | |
| -s, --since TIME
| |
| Print only records more recent than TIME.
| |
| | |
| -t, --until TIME
| |
| Print only records until TIME.
| |
| | |
| -w, --fullnames
| |
| Display full IP addresses and user and domain names.
| |
| | |
| -x, --system
| |
| Display system shutdown entries.
| |
| | |
| --time-format FORMAT
| |
| Display timestamps in the specified FORMAT. The format can be notime, short, full, or iso. notime will not display times at all, short is the
| |
| default option, full will display the full times and dates, and iso will display times in ISO-8601 format.
| |
| | |
| TIME must be in the format "YYYY-MM-DD HH:MM:SS", "YYYY-MM-DD", "today" or "yesterday" (time will be set to 00:00:00 if not specified).
| |
| | |
| boot [option...]
| |
| wtmpdb boot writes system boot times to the /var/lib/wtmpdb/wtmp.db database.
| |
| | |
| -f, --file FILE
| |
| Use FILE as wtmpdb database.
| |
| | |
| -q, --quiet
| |
| Don't print informative messages.
| |
| | |
| shutdown [option...]
| |
| wtmpdb shutdown writes system shutdown requests to the /var/lib/wtmpdb/wtmp.db database.
| |
| | |
| -f, --file FILE
| |
| Use FILE as wtmpdb database.
| |
| | |
| rotate [option...]
| |
| wtmpdb rotate exports old log entries to the /var/lib/wtmpdb/wtmp_yyyymmmdd.db database and removes these entries from the original one.
| |
| | |
| -f, --file FILE
| |
| Use FILE as wtmpdb database. The exported DB file will be on the same location.
| |
| | |
| -d, --days DAYS
| |
| Entries will be exported which are older than DAYS days. Default is 60 days.
| |
| | |
| global options
| |
| | |
| -h, --help
| |
| Display help message and exit.
| |
| | |
| -v, --version
| |
| Print version number and exit.
| |
| | |
| FILES
| |
| /var/lib/wtmpdb/wtmpdb.db
| |
| Wtmpdb logging database file
| |
| | |
| SEE ALSO
| |
| pam_wtmpdb(8),
| |
| | |
| AUTHOR
| |
| wtmpdb was written by Thorsten Kukuk <kukuk@suse.com>.
| |
| | |
| wtmpdb 0.11.0 05/29/2024 WTMPDB(8)
| |
| </syntaxhighlight>
| |
|
| |
|
| </noinclude> | | </noinclude> |