0Pricing
Linux Server Deployment & SSH Mastery · Lesson

File System & Permissions Essentials

Understand the Linux file system hierarchy, manage files and directories, and set basic user and group permissions with `chmod` and `chown`.

File System & Permissions Essentials is a free Linux Server Deployment & SSH Mastery lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Linux Server Deployment & SSH Mastery learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Welcome to the Linux File System

Linux organizes everything as a tree of files and directories. You'll learn the hierarchy, how to manage files, and how permissions control access.

The Root Directory `/`

At the very top sits the root directory, written as a single /. Every path on the server branches off from here.

Essential Linux Directories

A few key directories live under root: /bin for core commands, /etc for config, /home for users, /var for logs and variable data. Knowing them speeds you up.

Making New Folders with `mkdir`

mkdir makes a new directory. Let's create a folder named projects right where you are.

mkdir projects

Creating Empty Files with `touch`

touch creates an empty file (and updates timestamps too). Let's drop a report.txt inside your projects folder.

cd projects
touch report.txt
ls

Moving & Renaming with `mv`

mv moves files between locations — and renaming is just moving in place. Let's rename report.txt to final_report.txt.

mv report.txt final_report.txt
ls

Linux File Permissions Explained

Linux permissions control access by user, group, and others, each with read (r), write (w), and execute (x) — shown as strings like -rwxr-xr--.

Setting Permissions with `chmod`

chmod sets permissions, often in octal: r=4, w=2, x=1, summed per user type. So chmod 755 gives rwxr-xr-x — full for owner, read+execute for the rest.

`chmod` Example

Let's see chmod in action: create a script, then lock it down so only the owner can run it while the group just reads.

echo "#!/bin/bash\necho \"Hello from script!\"" > my_script.sh
ls -l my_script.sh
chmod 740 my_script.sh
ls -l my_script.sh

Changing Owner & Group with `chown`

chown changes a file's owner and group (usually with sudo). Use user, :group, or user:group to set exactly who controls it.

# Assuming 'coddy' is your current user and group
# sudo chown anotheruser my_script.sh
# sudo chown :anothergroup my_script.sh
# ls -l my_script.sh

Permission Practice

Consider a file named data.log. You want the owner to have full read, write, and execute permissions, the group to have read and execute, and others to have only read permission.

Recap: File System & Permissions

Solid work! You learned the filesystem tree, key directories, file commands like mkdir and mv, and how chmod and chown control access. Core admin skills, locked in.

Frequently asked questions

Is the “File System & Permissions Essentials” lesson free?

Yes — the full text of “File System & Permissions Essentials” is free to read here on the web, and the Linux Server Deployment & SSH Mastery course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Linux Server Deployment & SSH Mastery course, upgrade to CoddyKit PRO.

What will I learn in “File System & Permissions Essentials”?

Understand the Linux file system hierarchy, manage files and directories, and set basic user and group permissions with `chmod` and `chown`. You practise Linux Server Deployment & SSH Mastery with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Linux Server Deployment & SSH Mastery?

No prior experience is required. Linux Server Deployment & SSH Mastery on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “File System & Permissions Essentials” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Linux Server Deployment & SSH Mastery lesson?

Yes. Every Linux Server Deployment & SSH Mastery lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Introduction to Linux Servers
  2. Mastering Basic CLI Commands
  3. File System & Permissions Essentials
  4. Working with Text: Viewing, Searching, and Piping
← Back to Linux Server Deployment & SSH Mastery