Zum Inhalt springen

Linux/Datei/Typ: Unterschied zwischen den Versionen

Aus Foxwiki
K Textersetzung - „ “ durch „ “
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 10: Zeile 10:
| [[Softlink|Softlink]] || Verknüfung/Symlink|| l
| [[Softlink|Softlink]] || Verknüfung/Symlink|| l
|-
|-
| [[Gerätedatei#Character | Gerätedatei (Zeichenorientiert)]] || Serielle Geräte ([[NIC]], [[Mouse]] , ...) || c
| [[Gerätedatei#Character | Gerätedatei (Zeichenorientiert)]] || Serielle Geräte ([[NIC]], [[Mouse]] , ...) || c  
|-
|-
| [[Gerätedatei#Block |Gerätedatei (Blockorientiert)]] || Prallele Geräte ([[Datenträger]], ...) || b  
| [[Gerätedatei#Block |Gerätedatei (Blockorientiert)]] || Prallele Geräte ([[Datenträger]], ...) || b  
Zeile 36: Zeile 36:


; Beispiel
; Beispiel
<syntaxhighlight lang="bash" highlight="1" line>
<syntaxhighlight lang="bash" highlight="1" line copy>
ls -l /                                                                      
ls -l /                                  
lrwxrwxrwx   1 root root     7 Nov 10 04:12 bin -> usr/bin
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 4 root root 4096 Dec 12 08:59 boot
drwxr-xr-x 18 root root 3360 Dec 12 08:59 dev
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 77 root root 4096 Jan 2 10:02 etc
drwxr-xr-x   3 root root 4096 Dec 12 10:09 home
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 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 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   7 Nov 10 04:12 lib -> usr/lib
lrwxrwxrwx   1 root root     9 Nov 10 04:12 lib64 -> usr/lib64
lrwxrwxrwx 1 root root   9 Nov 10 04:12 lib64 -> usr/lib64
drwx------   2 root root 16384 Nov 10 04:12 lost+found
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 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 mnt
drwxr-xr-x   2 root root 4096 Nov 10 04:12 opt
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
dr-xr-xr-x 162 root root   0 Dec 12 08:59 proc
drwx------   6 root root 4096 Jan 5 12:27 root
drwx------ 6 root root 4096 Jan 5 12:27 root
drwxr-xr-x 23 root root   800 Jan 5 09:23 run
drwxr-xr-x 23 root root 800 Jan 5 09:23 run
lrwxrwxrwx   1 root root     8 Nov 10 04:12 sbin -> usr/sbin
lrwxrwxrwx 1 root root   8 Nov 10 04:12 sbin -> usr/sbin
drwxr-xr-x   2 root root 4096 Nov 10 04:12 srv
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
dr-xr-xr-x 13 root root   0 Dec 12 08:59 sys
drwxrwxrwt   8 root root 4096 Jan 5 07:41 tmp
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 12 root root 4096 Nov 10 04:12 usr
drwxr-xr-x 11 root root 4096 Nov 10 04:12 var
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 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
lrwxrwxrwx 1 root root 27 Nov 10 04:19 vmlinuz.old -> boot/vmlinuz-6.1.0-27-amd64
</syntaxhighlight>
</syntaxhighlight>



Aktuelle Version vom 14. Juni 2026, 00:46 Uhr

Linux/Datei/Typ - Funktion einer Datei im Dateisystem

Beschreibung

Unix/Linux Dateitypen
Typ Beschreibung Kennzeichnung
Directory Verzeichnis/Ordner d
Softlink Verknüfung/Symlink l
Gerätedatei (Zeichenorientiert) Serielle Geräte (NIC, Mouse , ...) c
Gerätedatei (Blockorientiert) Prallele Geräte (Datenträger, ...) b
Named Pipe Benannte Pipe p
Socket s
Normale Datei -

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

Gerätedatei

Anwendung

Datei-Typ anzeigen

Das erste Zeichen eines ls- l 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

Anhang

Siehe auch

  • file - Dateityp anzeigen
  • stat - Inode anzeigen
  • touch - Zeitstempel ändern