Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
last
Show recent user login records
Syntax
last [OPTION]... [USERNAME]...Common Options
-nShow last N entries-fSpecify log file-aShow hostname in last column-dTranslate IP to hostname-iShow IP addresses-xShow system shutdown entries-wShow full usernames-sShow since timeCommon Examples
lastShow all login records
last -n 10Show last 10 entries
last usernameShow user's records
last -xShow shutdown entries
last -a -n 20With hostname, last 20
last -s yesterdayShow since yesterday
Related Tools
More Code & Dev Tools
CSS Gradient Generator
Generate CSS gradients online. Linear and radial gradients w...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
Code Analyzer
Analyze code quality online. Check for errors, warnings, and...
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
Code Share
Create and share code snippets online. Syntax highlighting a...
Port Checker
Check if a port is open online. Test port availability and c...
Color Contrast Checker
Check color contrast ratios for WCAG compliance. Ensure acce...
JavaScript Formatter
Format and beautify JavaScript code online. Improve code rea...
Color Palette Generator
Generate harmonious color palettes online. Create color sche...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
Timestamp Converter
Convert between Unix timestamp and human-readable date. Supp...
HTML Formatter
Format and minify HTML online. Beautify HTML code or compres...