man > ls(1)

📛 NAME

ls - list directory contents

🚀 Quick Reference

Use CaseCommandDescription
List all files (including hidden)ls -aShow entries starting with . 📁
Long format (permissions, owner, size)ls -lDetailed listing 📋
Human-readable sizesls -lhShow sizes like 1K, 234M 👀
List all files, long formatls -laAll files, detailed 📁📋
Sort by modification time, newest firstls -ltNewest files at top 🕒
Reverse orderls -ltrOldest first, newest last 🔄
Recursive listingls -RInclude subdirectories 📁🔁
One file per linels -1Simple list, no columns 1ī¸âƒŖ
Classify files with indicatorsls -FAppend */=>@| to entries đŸˇī¸
Sort by file sizels -SLargest first âŦ†ī¸
Sort by extensionls -XGroup by extension 📎
Show inode numbersls -iPrint index number of each file đŸ”ĸ
List directories only, not contentsls -d */Show directories themselves 📂

📝 SYNOPSIS

ls [OPTION]... [FILE]...

📖 DESCRIPTION

List information about the FILEs (the current directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.

Mandatory arguments to long options are mandatory for short options too.

🔧 OPTIONS

💾 SIZE argument

The SIZE argument is an integer and optional unit (example: 10K is 10*1024). Units are K,M,G,T,P,E,Z,Y (powers of 1024) or KB,MB,... (powers of 1000). Binary prefixes can be used, too: KiB=K, MiB=M, and so on.

🕒 TIME_STYLE

The TIME_STYLE argument can be full-iso, long-iso, iso, locale, or +FORMAT. FORMAT is interpreted like in date(1). If FORMAT is FORMAT1<newline>FORMAT2, then FORMAT1 applies to non-recent files and FORMAT2 to recent files. TIME_STYLE prefixed with 'posix-' takes effect only outside the POSIX locale. Also the TIME_STYLE environment variable sets the default style to use.

🎨 Color output

Using color to distinguish file types is disabled both by default and with --color=never. With --color=auto, ls emits color codes only when standard output is connected to a terminal. The LS_COLORS environment variable can change the settings. Use the dircolors command to set it.

đŸšĒ Exit Codes

👤 AUTHOR

Written by Richard M. Stallman and David MacKenzie.

🐞 REPORTING BUGS

GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
Report any translation bugs to <https://translationproject.org/team/>

ÂŠī¸ COPYRIGHT

Copyright Š 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

📚 SEE ALSO

Full documentation <https://www.gnu.org/software/coreutils/ls>
or available locally via: info '(coreutils) ls invocation'

ls(1)
📛 NAME 🚀 Quick Reference 📝 SYNOPSIS 📖 DESCRIPTION 🔧 OPTIONS
💾 SIZE argument 🕒 TIME_STYLE 🎨 Color output
đŸšĒ Exit Codes 👤 AUTHOR 🐞 REPORTING BUGS ÂŠī¸ COPYRIGHT 📚 SEE ALSO

Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-19 11:10 @216.73.216.114
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format

^_top_^