Linux/Datei/Typ: Unterschied zwischen den Versionen
Erscheinungsbild
Zeile 4: | Zeile 4: | ||
; Unix/Linux Dateitypen | ; Unix/Linux Dateitypen | ||
{| class="wikitable big options col1center" | {| class="wikitable big options col1center" | ||
! Typ !! Beschreibung | ! Typ !! Bezeichnung !! Beschreibung | ||
|- | |- | ||
| - || [[Normale Datei]] | | - || [[#Normale Datei|Normale Datei]] || | ||
|- | |- | ||
| d || [[Verzeichnis]] | | d || [[#Verzeichnis|Verzeichnis]] || | ||
|- | |- | ||
| c || [[Character | | c || [[#Character|Gerätedatei(Zeichen)]] || | ||
|- | |- | ||
| b || [[Block]] | | b || [[#Block|Gerätedatei(Block)]] || | ||
|- | |- | ||
| l || [[Softlink]] | | l || [[Softlink]] || | ||
|- | |- | ||
| p || [[Pipe]] | | p || [[Pipe]] || | ||
|- | |- | ||
| s || [[Socket]] | | s || [[Socket]] || | ||
|- | |- | ||
|} | |} |
Version vom 5. Januar 2025, 14:41 Uhr
Linux/Datei/Typ - Funktion einer Datei im Dateisystem
Beschreibung
- Unix/Linux Dateitypen
Typ | Bezeichnung | Beschreibung |
---|---|---|
- | Normale Datei | |
d | Verzeichnis | |
c | Gerätedatei(Zeichen) | |
b | Gerätedatei(Block) | |
l | Softlink | |
p | Pipe | |
s | Socket |
Anwendung
Datei-Typ anzeigen
Dateityp (erstes Zeichen)
root@shell:~# ls -l /
total 60
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