Difference between revisions of "Ls"
Jump to navigation
Jump to search
↑ https://unix.stackexchange.com/questions/82357/what-do-the-symbols-displayed-by-ls-f-mean
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 18: | Line 18: | ||
*<code>ls -la -block</code> use SIZE-byte blocks | *<code>ls -la -block</code> use SIZE-byte blocks | ||
+ | |||
+ | |||
+ | === Flags === | ||
+ | -F appends symbols to filenames. These symbols show useful information about files.<ref>https://unix.stackexchange.com/questions/82357/what-do-the-symbols-displayed-by-ls-f-mean</ref> | ||
+ | @ means symbolic link (or that the file has extended attributes). | ||
+ | * means executable. | ||
+ | = means socket. | ||
+ | | means named pipe. | ||
+ | > means door. | ||
+ | / means directory. | ||
== Related commands == | == Related commands == |
Revision as of 16:19, 21 April 2020
ls
is a command to list files, directories and symbolic links in Linux and Unix-like operating systems include in the coreutils
package in Ubuntu.
Linux Examples
ls
ll
(alias fromls -laF
)ls -l
ls -lh
ls -lhaR
- One line listing with sizes using ls and find:
ls -ldh $(find /path/to/search/)
- Sort by size:
- -su: /bin/ls: Argument list too long
- -d list directories themselves, not their contents
ls -la -block
use SIZE-byte blocks
Flags
-F appends symbols to filenames. These symbols show useful information about files.[1]
@ means symbolic link (or that the file has extended attributes). * means executable. = means socket. | means named pipe. > means door. / means directory.
Related commands
See also
- File system,
du, df, find, ls, mkdir, touch, locate
du, du -hs
, Disk space usage,df
,ls
,tree
,find
,docker system df
,journalctl --disk-usage
, No space left on device, ENOSPC,sar -F
,growpart
,resize2fs
, ncdu, duf, dua-cli
Advertising: