Zum Inhalt springen

Linux/Datei/Typ

Aus Foxwiki

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