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
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
<code>[[wikipedia:ls|ls]]</code> is a command to list files, [[directories]] and [[symbolic links]] in [[Linux]] and Unix-like operating systems include in the <code>[[coreutils]]</code> package in Ubuntu. | <code>[[wikipedia:ls|ls]]</code> is a command to list files, [[directories]] and [[symbolic links]] in [[Linux]] and Unix-like operating systems include in the <code>[[coreutils]]</code> package in Ubuntu. | ||
* Man page: http://man7.org/linux/man-pages/man1/ls.1.html | * Man page: http://man7.org/linux/man-pages/man1/ls.1.html | ||
Line 19: | Line 20: | ||
::: -d list directories themselves, not their contents | ::: -d list directories themselves, not their contents | ||
* <code>ls -i</code> ([[inode]]) | * <code>ls -i</code> ([[inode]]) | ||
+ | * <code>[[ls -1]]</code> | ||
+ | * <code>ls | xargs</code> | ||
== Flags == | == Flags == | ||
Line 37: | Line 40: | ||
* [[MinIO]]: <code>[[mc ls]]</code> | * [[MinIO]]: <code>[[mc ls]]</code> | ||
* <code>[[lscpu]], [[lsusb]], [[lspci]], [[lshw]], [[lsmem]], [[lspci]]</code> | * <code>[[lscpu]], [[lsusb]], [[lspci]], [[lshw]], [[lsmem]], [[lspci]]</code> | ||
+ | * [[Superblock]] | ||
+ | * [[nvm ls]] | ||
+ | * <code>[[lsdir]]</code> [[alias]] | ||
== See also == | == See also == |
Latest revision as of 13:30, 28 September 2023
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.
Contents
Linux Examples[edit]
ls
ll
(alias fromls -laF
)ll -h
ls -l
ls -la
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
Flags[edit]
-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 terms[edit]
- No space left on device
find
du
df
chown
,chgrp
- MinIO:
mc ls
lscpu, lsusb, lspci, lshw, lsmem, lspci
- Superblock
- nvm ls
lsdir
alias
See also[edit]
ls
,find
,tree
,mc
,attr, xattr, chmod
,rclone lsd, lsdir, ls -1
- File system,
du, df, find, ls, mkdir, touch, locate
sudo
,id
,visudo
,useradd
,userdel
,usermod
,groups
,passwd
,chown
,chmod
,chgrp
,groupadd
,groupdel
, Passwordless sudo, passwd (package),sudo --help
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: