Online Linux Terminal Logo
OnlineLinuxTerminal
Berechtigungen & SicherheitCLI Manual

$chown

Change file owner and group attributes.

BefehlssyntaxPOSIX Standard
chown [OPTIONS] OWNER[:GROUP] FILE...
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

`chown` (Change Owner) alters the user ownership and group association of files, directories, and links. System administrators frequently use `chown` when deploying web applications or restoring user permissions after file migrations.

Wichtige Optionen und Flags

Flag / OptionDescription
-RRecursively change ownership of directories and all contents.
-vVerbose output reporting every ownership change executed.
-cReport only when an actual change is made.

Praktische Anwendungsbeispiele

#1Change owner of a file to user
chown user /var/log/syslog && ls -l /var/log/syslog

Assigns user ownership to the system syslog file and checks with ls.