Linux File Management

How to organize, find, and manage your files — both with the file manager and the terminal

Managing files on Linux works similarly to Windows, but with a few key differences. Understanding how the Linux file system is organized will help you feel confident navigating your computer and keeping your files tidy.

The Linux File System Structure

Unlike Windows which uses drive letters (C:\, D:\), Linux organizes everything under a single root directory represented by a forward slash /. Here are the folders you'll encounter most often:

/ — Root of the entire file system
├── /home — All user home folders live here
│   └── /home/yourname — YOUR files (Documents, Downloads, etc.)
├── /etc — System configuration files
├── /usr — Installed programs and their files
├── /tmp — Temporary files (cleared on reboot)
├── /var — Logs, caches, and variable data
├── /media — USB drives and external disks mount here
└── /opt — Optional/third-party software

As a regular user, you'll spend 99% of your time in your home folder (/home/yourname). This is where your Documents, Downloads, Pictures, Music, and Desktop folders live — just like on Windows.

Using the File Manager

The graphical file manager works just like Windows Explorer. Here's what you can do:

  • Navigate: Click folders to open them, use the back button or breadcrumbs to go back
  • Copy & Paste: Right-click a file and select Copy, then right-click in the destination and Paste (or use Ctrl+C / Ctrl+V)
  • Move: Drag and drop files between folders, or use Cut (Ctrl+X) and Paste
  • Rename: Right-click a file and select Rename, or press F2
  • Delete: Right-click and Delete, or press the Delete key (files go to Trash first)
  • Show hidden files: Press Ctrl+H to toggle hidden files (files starting with a dot)
  • Open terminal here: Right-click in a folder and select "Open Terminal Here"

The Sidebar

The file manager sidebar gives you quick access to:

  • Your home folder and its subfolders (Documents, Downloads, Pictures, etc.)
  • Connected USB drives and external disks
  • Bookmarked locations (right-click any folder to bookmark it)
  • Network locations and shared folders
  • Trash (your recycle bin)

File Management in the Terminal

Sometimes the terminal is faster for managing files, especially for bulk operations. Here are the most common file commands:

# List files in current directory
$ ls -la

# Copy a file
$ cp report.pdf ~/Documents/

# Copy an entire folder
$ cp -r Photos/ ~/Backup/

# Move a file
$ mv report.pdf ~/Documents/

# Rename a file
$ mv old-name.txt new-name.txt

# Create a new folder
$ mkdir Projects

# Delete a file
$ rm unwanted-file.txt

# Find a file by name
$ find ~ -name "*.pdf"

# Check folder size
$ du -sh Documents/

Understanding Permissions

Linux uses a permission system that controls who can read, write, or execute files. When you see ls -la output, the first column shows permissions:

-rw-r--r--  1 sarah sarah  4096 Jan 15 10:30 notes.txt
drwxr-xr-x  2 sarah sarah  4096 Jan 15 10:30 Documents/

The permission string breaks down like this:

  • r = read (can view the file)
  • w = write (can modify the file)
  • x = execute (can run the file as a program)
  • d at the beginning means it's a directory (folder)

For everyday use, you rarely need to worry about permissions. But if you ever get a "Permission denied" error, you can use chmod to change permissions or sudo to run the command as administrator.

Hidden Files

In Linux, any file or folder whose name starts with a dot (.) is hidden. These are usually configuration files that you don't need to touch. Examples: .bashrc, .config, .local.

To see hidden files in the file manager, press Ctrl+H. In the terminal, use ls -a.

Tips for Staying Organized

Use the Default Folders

Linux gives you Documents, Downloads, Pictures, Music, and Videos folders. Use them — many apps look there by default.

Clean Your Downloads

The Downloads folder fills up fast. Periodically move files to the right location or delete what you don't need.

Bookmark Key Folders

In the file manager, drag frequently-used folders to the sidebar to create quick bookmarks.

Use Descriptive Names

Linux is case-sensitive. "Report.pdf" and "report.pdf" are different files. Use clear, consistent naming.

Mounting External Drives

When you plug in a USB drive or external hard disk, Linux automatically detects and mounts it. You'll see it appear in your file manager sidebar and often a notification pops up. When you're done, right-click the drive and select "Safely Remove" or "Eject" before unplugging.

Next Step: Customize Your Desktop

Make Linux look and feel exactly the way you want with themes, icons, and layouts.

Customize Your Desktop →