Linux Directories and Files

Linux differs greatly from an operating system like Microsoft Windows regarding how it manages its files and permissions.

Directories

Linux directories can be separated into root's directories and a normal user's directories. Each directory has a unique purpose.

Root

User

Files

Files have permissions on them. By default, a file creator owns the file, and if the root user owns a file, then a normal user will have to gain access to it before reading/writing/executing.

chown can be used to change file ownership, and chmod can be used to change file permissions.

Symbolic links can act as shortcuts and they act as pointers to files.

Page added on 2021-10-27, last edited on: 2021-12-10


homepage

All site content is in the Public Domain.