home
seiten
a-z
cli
<--
hoch
-->
runter
home/cli/ls
Auflistung (ls: 'list') des Inhalts des Verzeichnisses <directories>.
ls [OPTIONS] [FILES]
> ls
Desktop
Documents
...
-l
Lange Liste <long listing format>
> ls -l
total 0
drwx------@ 16 test staff 512 23 Jun 19:31 Desktop
drwx------@ 11 test staff 352 17 Jun 10:39 Documents
...
-a
Versteckte Dateien anzeigen
> ls -la
total 272
drwxr-xr-x+ 37 test staff 1184 25 Jun 16:39 .
drwxr-xr-x 5 root admin 160 3 Mai 09:53 ..
...
Bedeutung des ersten Zeichens:
-: Regular file
b: Block special file
c: Character special file
d: Directory
l: Symbolic link
n: Network file
p: FIFO
s: Socket
Erlaubnisse <permissions>:
r: Permission to read the file
w: Permission to write to the file
x: Permission to execute the file
s: setgid bit
t: sticky bit
``
<!-- Content navigation -->
[](#) [](#) [](#)
<!-- ToDos -->
<!--
-->
<!--
### CHAPTER
#### SUBCHAPTER
-->
<!-- Program code -->
<!--
```swift
// Programmcode
-->
https://linuxize.com/post/how-to-list-files-in-linux-using-the-ls-command/