Co robi LAST użycie. Konsola specify a tty number or username, the output will display only the.

Czy przydatne?

Polecenie last

Wykonanie, użycie: Display a list of the most recent logins, taken from the file /var/log/wtmp by default. If you specify a tty number or username, the output will display only the logins for that user or terminal

Opcje wykonania last w konsoli

-n number, -number

Choose how many lines of logins to display. Thus, last -7 or last -n 7 displays seven lines.

-R

Do not show the hostname from which logins originated.

-a

Display the hostname from which logins originated.

-d

Display both IP address and hostname.

-f filename

Get the list of logins from a file you choose. The default source is /var/log/wtmp.

-i

Display IP address and hostname. Display the IP address in the numbers-and-dots notation.

-o

Read an old-style (libc5 application) wtmp file. Not likely to be useful on newer systems.

-x

Display shutdown messages and runlevel messages.

Przykłady last działanie w Słownik polecenie L

Przykład LAST użycie :
Jak użyć the print queue or queues. With options that take a list argument, omitting the list produces all information for that option. list can be separated by commas or, if enclosed in double quotes, by co znaczy.
Przykład LAST użycie :
Jak użyć login asks for a username (name can be supplied on the command line) and password (if appropriate). If successful, login updates accounting files, sets various environment variables, notifies users krzyżówka.
Przykład LAST użycie :
Jak użyć Display a list of recent bad login attempts (from the /var/log/btmp file). Accepts the same option flags and arguments as last co to jest.
Przykład LAST użycie :
Jak użyć administration command. List all loaded modules: name, size (in 4 KB units), and, if appropriate, a list of referring modules. The same information is available in /proc/modules if the /proc słownik.
Przykład LAST użycie :
Jak użyć of filenames and print matches. Matches include all files that contain pattern unless pattern includes metacharacters, in which case locate requires an exact match. *, ?, [, and ] are treated czym jest.