Zum Inhalt springen

Linux/Datei/Typ: Unterschied zwischen den Versionen

Aus Foxwiki
K Textersetzung - „wikitable“ durch „table table-striped table-hover“
 
(22 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 3: Zeile 3:
== Beschreibung ==
== Beschreibung ==
; Unix/Linux Dateitypen
; Unix/Linux Dateitypen
{| class="wikitable big options col3center sortable"
{| class="table table-striped table-hover big options col3center sortable"
! Datei-Typ !! Beschreibung !! Kennzeichnung  
! Typ !! Beschreibung !! Kennzeichnung  
|-
|-
| [[#Normale Datei|Normale Datei]] ||
| [[Directory|Directory]] || Verzeichnis/Ordner || d
| -
|-
|-
| [[#Verzeichnis|Verzeichnis]] ||
| [[Softlink|Softlink]] || Verknüfung/Symlink|| l
| d
|-
|-
| [[#Softlink|Softlink]] ||
| [[Gerätedatei#Character | Gerätedatei (Zeichenorientiert)]] || Serielle Geräte ([[NIC]], [[Mouse]] , ...) || c
| l
|-
|-
| [[#CharacterDevice|Gerätedatei (Zeichenorientiert)]] ||
| [[Gerätedatei#Block |Gerätedatei (Blockorientiert)]] || Prallele Geräte ([[Datenträger]], ...) || b
|
|-
|-
| [[#BlockDevice|Gerätedatei (Blockorientiert)]] ||
| [[Pipe|Named Pipe]] || Benannte [[Pipe]] || p
| b
|-
|-
| [[#Pipe|Named Pipe]] ||
| [[Socket|Socket]] || || s
| p
|-
|-
| [[#Socket|Socket]] ||
| [[Normale Datei|Normale Datei]] || || -
| s
|-
|-
|}
|}
Zeile 34: Zeile 27:
* Das System unterstützt keine Dateistruktur
* Das System unterstützt keine Dateistruktur
* Dateien sind Bytefolgen (Strukturierung nur durch das Programm)
* Dateien sind Bytefolgen (Strukturierung nur durch das Programm)
== Gerätedateien ==
'''[[Gerätedatei]]'''


== Anwendung ==
== Anwendung ==
=== Datei-Typ anzeigen ===
=== Datei-Typ anzeigen ===
Das erste Zeichen eines ''Long Listings'' zeigt den Datei-Typ an
Das erste Zeichen eines ''[[ls#Long Listing|ls- l]]'' zeigt den Datei-Typ an


; 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>
== Gerätedateien ==
[[Gerätedatei]]


== Anhang ==
== Anhang ==

Aktuelle Version vom 29. Juli 2026, 10:54 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