Skip to content

Working with files

The following commands are related to files and directories manipulation. Some allow you to only gather information, while others let you actually manipulate and change them:

A Word About Command Safety

Informational commands are non-destructive by nature, they provide information without actule making any changes to the files (storage). That's why they're safe to use. These commands will be marked with the following tag:

Static Badge

On the other hand, some of the File Manipulation commands, if used incorrectly, will lead to data loss. That's why some of them can only be used by the super user (root). I'll mark those with the following tag:

Static Badge


Command Description
df The Disk Free command.
lsblk The List Block command.
du / ncdu Disk usage analyzers.
tree Displays directory structure as a tree.
ls Lists directory contents.

THINK BEFORE YOU ACT !!

Some of these commands are potentially destructive! Be careful, triple-check the commands before pressing the Enter key.

Command Description
cd Changes the current working directory.
rsync Syncs files and directories locally or remotely.
mv Moves or renames files and directories.
rm Removes files or directories.