x-last

Analyze system login history with filtering and multiple output formats.

4.6k|161|Updated Oct 1, 2022
One-click install
npx skills add https://github.com/x-cmd/x-cmd --skill x-last
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: x-last
Source: https://github.com/x-cmd/x-cmd/tree/main/mod/last
Command: npx skills add https://github.com/x-cmd/x-cmd --skill x-last

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the viewing of login history, providing enhanced features and an interactive user interface over the traditional 'last' command.

Core Features & Use Cases

  • Interactive UI: A user-friendly interface for exploring login records in TTY mode.
  • Multiple Formats: Access login history in CSV, JSON, or tree view formats.
  • Filtering Options: Filter by login or reboot events, view session durations, and explore data by reboot group.
  • Use Case: Imagine you need to analyze user activity patterns across different reboots or verify recent logins on your system. This Skill provides a powerful yet accessible way to do so.

Quick Start

Run the 'x last' command in a TTY session to interactively view login history.

Frequently Asked Questions about x-last

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I view user login history with advanced filtering?

You can view user login history with advanced filtering by running the 'x last' command in a TTY session, which provides an interactive UI to filter records by login or reboot events and view session durations.

Can I export system login history to JSON or CSV?

Yes, you can export system login history to JSON or CSV formats. The interactive interface provides multiple output formats, allowing you to access and analyze login records as structured data files.

What is the best way to analyze login records grouped by system reboots?

The best way to analyze login records grouped by system reboots is using the interactive UI's reboot grouping feature, which organizes login events by reboot groups to help you trace user activity patterns across different boot sessions.

How does interactive login history auditing compare to the traditional last command?

Interactive login history auditing offers an enhanced interface over the traditional last command, adding interactive UI navigation, multiple export formats like JSON and CSV, and advanced filtering options for security auditing tasks.

Do I need a TTY session to view login history with enhanced features?

Yes, you need a TTY session to view login history with enhanced features. The interactive UI requires a TTY environment to properly render the interactive interface for exploring login records and session durations.

Why use a tree view for system login history?

You use a tree view for system login history to visually organize and explore hierarchical relationships between reboot events and user sessions, making it easier to analyze complex login activity patterns for security monitoring.