Linux Commands Reference - Complete Linux Command Guide
Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.
logname
Show current login name
Syntax
logname [OPTION]...Common Options
--versionShow version--helpShow helpCommon Examples
lognameShow login name
echo "Logged in as: $(logname)"Use in script
logname vs whoamiReturns original user even with sudo
Related Tools
More Code & Dev Tools
cURL Converter
Convert cURL commands to Python, JavaScript, PHP, Go, and mo...
Timestamp Batch Converter
Convert multiple timestamps at once. Batch process Unix time...
API Tester
Test HTTP APIs online with support for GET, POST, PUT, DELET...
Code Share
Create and share code snippets online. Syntax highlighting a...
Color Extractor
Extract colors from images online. Get dominant colors and c...
CSS Formatter
Format and minify CSS online. Beautify CSS code or compress ...
Regex Cheatsheet
Quick reference for regular expression patterns. Character c...
Color Converter
Convert between HEX, RGB, HSL color formats. Color picker wi...
SQL Formatter
Format and beautify SQL queries online. Improve SQL readabil...
Port Checker
Check if a port is open online. Test port availability and c...
Code Minifier
Minify HTML, CSS, and JavaScript code. Reduce file size by r...
Code Formatter
Format and beautify code online. Support multiple languages ...