Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support the same cli api as last.c #2

Open
2 of 13 tasks
MarcelRobitaille opened this issue Nov 24, 2021 · 0 comments
Open
2 of 13 tasks

Support the same cli api as last.c #2

MarcelRobitaille opened this issue Nov 24, 2021 · 0 comments

Comments

@MarcelRobitaille
Copy link
Owner

MarcelRobitaille commented Nov 24, 2021

To implement:

  • --locallast: Display the hostname in the last column. Useful in combination with the --dns option.
  • --dns: For non-local logins, Linux stores not only the host name of the remote host, but its IP number as well. This option translates the IP number back into a hostname.
  • --file: Tell last to use a specific file instead of /var/log/wtmp. The --file option can be given multiple times, and all of thespecified files will be processed.
  • --fulltimes: Print full login and logout times and dates.
  • --ip: Like --dns , but displays the host’s IP number instead of the name.
  • -number: Tell last how many lines to show. TODO: Still need to support -number. This is a limitation in clap: #2468 and #1210
  • --present time: Display the users who were present at the specified time. This is like using the options --since and --until together with the same time.
  • --nohostname: Suppresses the display of the hostname field.
  • --since time: Display the state of logins since the specified time. This is useful, e.g., to easily determine who was logged in at a particular time. The option is often combined with --until.
  • --until time: Display the state of logins until the specified time.
  • --time-format format: Define the output timestamp format to be one of notime, short, full, or iso. The notime variant will not print any timestamps at all, short is the default, and full is the same as the --fulltimes option. The iso variant will display the timestamp in ISO-8601 format. The ISO format contains timezone information, making it preferable when printouts are investigated outside of the system.
  • --fullnames: Display full user names and domain names in the output.
  • --system: Display the system shutdown entries and run level changes.
MarcelRobitaille added a commit that referenced this issue Nov 24, 2021
Still need to support -number

See #2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant