Linux/Datei/Typ: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
|||
Zeile 4: | Zeile 4: | ||
; Unix/Linux Dateitypen | ; Unix/Linux Dateitypen | ||
{| class="wikitable big options col2center sortable" | {| class="wikitable big options col2center sortable" | ||
! Datei-Typ !! | ! Datei-Typ !! Beschreibung!! Kennzeichnung | ||
|- | |- | ||
| [[#Normale Datei|Normale Datei]] | | [[#Normale Datei|Normale Datei]] || | ||
| - | | - | ||
|- | |- | ||
| [[#Verzeichnis|Verzeichnis]] | | [[#Verzeichnis|Verzeichnis]] || | ||
| d | | d | ||
|- | |- | ||
| [[#Softlink|Softlink]] | | [[#Softlink|Softlink]] || | ||
| l | | l | ||
|- | |- | ||
| [[#Character|Gerätedatei (Zeichen)]] | | [[#Character|Gerätedatei (Zeichen)]] || | ||
| c | | c | ||
|- | |- | ||
| [[#Block|Gerätedatei (Block)]] | | [[#Block|Gerätedatei (Block)]] || | ||
| b | | b | ||
|- | |- | ||
| [[#Pipe|Named Pipe]] | | [[#Pipe|Named Pipe]] || | ||
| p | | p | ||
|- | |- | ||
| [[#Socket|Socket]] | | [[#Socket|Socket]] || | ||
| s | | s | ||
|- | |- | ||
|} | |} |
Version vom 5. Januar 2025, 14:59 Uhr
Linux/Datei/Typ - Funktion einer Datei im Dateisystem
Beschreibung
- Unix/Linux Dateitypen
Datei-Typ | Beschreibung | Kennzeichnung |
---|---|---|
Normale Datei | - | |
Verzeichnis | d | |
Softlink | l | |
Gerätedatei (Zeichen) | c | |
Gerätedatei (Block) | b | |
Named Pipe | p | |
Socket | s |
Anwendung
Datei-Typ anzeigen
Das erste Zeichen eines Long Listings zeigt den Datei-Typ an
- Beispiel
ls -l /
lrwxrwxrwx 1 root root 7 Nov 10 04:12 bin -> usr/bin
drwxr-xr-x 4 root root 4096 Dec 12 08:59 boot
drwxr-xr-x 18 root root 3360 Dec 12 08:59 dev
drwxr-xr-x 77 root root 4096 Jan 2 10:02 etc
drwxr-xr-x 3 root root 4096 Dec 12 10:09 home
lrwxrwxrwx 1 root root 30 Dec 12 08:58 initrd.img -> boot/initrd.img-6.1.0-28-amd64
lrwxrwxrwx 1 root root 30 Nov 10 04:19 initrd.img.old -> boot/initrd.img-6.1.0-27-amd64
lrwxrwxrwx 1 root root 7 Nov 10 04:12 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Nov 10 04:12 lib64 -> usr/lib64
drwx------ 2 root root 16384 Nov 10 04:12 lost+found
drwxr-xr-x 3 root root 4096 Nov 10 04:12 media
drwxr-xr-x 2 root root 4096 Nov 10 04:12 mnt
drwxr-xr-x 2 root root 4096 Nov 10 04:12 opt
dr-xr-xr-x 162 root root 0 Dec 12 08:59 proc
drwx------ 6 root root 4096 Jan 5 12:27 root
drwxr-xr-x 23 root root 800 Jan 5 09:23 run
lrwxrwxrwx 1 root root 8 Nov 10 04:12 sbin -> usr/sbin
drwxr-xr-x 2 root root 4096 Nov 10 04:12 srv
dr-xr-xr-x 13 root root 0 Dec 12 08:59 sys
drwxrwxrwt 8 root root 4096 Jan 5 07:41 tmp
drwxr-xr-x 12 root root 4096 Nov 10 04:12 usr
drwxr-xr-x 11 root root 4096 Nov 10 04:12 var
lrwxrwxrwx 1 root root 27 Dec 12 08:58 vmlinuz -> boot/vmlinuz-6.1.0-28-amd64
lrwxrwxrwx 1 root root 27 Nov 10 04:19 vmlinuz.old -> boot/vmlinuz-6.1.0-27-amd64
Normale Dateien
- Normale Dateien (normal files)
- Dateien im üblichen Sinn: Text- oder Binärdateien
- Das System unterstützt keine Dateistruktur
- Dateien sind Bytefolgen (Strukturierung nur durch das Programm)
Gerätedateien
Anhang
Siehe auch