How Does The Linux File System Work?
When Linux is installed, a file system is carved out a chunk of hard disk and formatted it so that Linux can use it. A hierarchical (treelike) structure for storing files imposes some order on the file system to help both you and the Linux find needed files.
In this section, you'll learn how to work with files and directories in a Linux system. You'll understand how the file system is structured to separate system data from personal data and how to navigate through it. We'll cover two ways to manipulate your files: using the command line and the Midnight Commander.
When you're done, you'll be creating, deleting, copying, renaming, listing, linking, and protecting your files like a pro. You'll also learn the Nine Deadly Keystrokes--or how to wipe out the entire file system without really trying. (But don't worry; this command can affect you only if you're logged in as root.)
Log in as hermie and try the examples in this section as you read through it. You'll find that the Linux file system is a lot like DOS, only more robust and flexible.
What Is a Linux File?
We've created a structured file system and filled it with a whole bunch of files--without knowing what Linux files are. Here's what files are in the Linux world and how they are named.
Types of Files
In most operating systems, a file is simply a blob of data stored on disk with a unique name. A file could be a list of names and numbers, a cheesecake recipe, or an executable program. But under Linux, everything is a file. In addition to data and executable files, Linux treats directories and even the various components of your computer as files.
This means there are files that represent your keyboard, console, printer, CD-ROM, and even your system's RAM. These special files are called devices, and they are found in the /dev directory (see Figure 4-1). (If you look in this directory later, you'll see files such as /dev/fd0 (a floppy drive), /dev/tty1 (a console), and others you may be able to identify by their names.) When Linux (or any Unix program) needs to talk to a physical hardware device, it does so by simply reading from or writing to one of these special files.
Leason 1: The Linux File System
Leason 2: Linux File Names
Leason 3: Linux Directories
Leason 4: Directory Terminology
Leason 5: Navigating the File System
Leason 6: Listing Linux Files
Leason 7: Displaying Linux Files
Leason 8: Copying and Renaming Files
Leason 9: Creating Files and Directories
Leason 10: Deleting Files and Directories
Leason 11: Linux Files - Wildcards
Leason 12: The Nine Deadly Keystrokes
Leason 13: Linux File Permissions
Leason 14: Changing File Permissions
- Board index General Knowledge Everything Linux
-
- It is currently 03 May 2025, 18:22
- All times are UTC-04:00
The Linux File System
Discuss everything about Linux here!
Moderator: Community Moderator
- MrNiitriiX
- Premium Uploader
- Posts: 2197
- Joined: 19 Apr 2010, 14:52
- Location: between space and time
- Has thanked: 24 times
- Been thanked: 164 times
The Linux File System
Post by MrNiitriiX »
Last edited by MrNiitriiX on 30 Sep 2010, 14:56, edited 1 time in total.
Jump to
- ↳ Site Help & Support
- ↳ Site Tutorials & How To
- ↳ Site Support/Bugs
- ↳ Suggestion & Feedback
- ↳ General Discussions
- ↳ News
- ↳ Trades & Offers
- ↳ Sports
- ↳ Relax & Enjoy!
- ↳ Jokes
- ↳ General Knowledge
- ↳ Tips, Tweaks & Quick Tutorials
- ↳ OpenSource/Freeware & Useful Links
- ↳ Everything Linux
- ↳ General Support
- ↳ Technical Support
- ↳ Software Chat & Support
- ↳ Hardware Chat & Support
- ↳ Smartphones and other Portable Devices Chat & Support
- ↳ Programming/Web Building Chat & Support
- ↳ User Uploads list
- ↳ Graphics & Images
- ↳ Graphics Requests & Helpdesk
- ↳ CC Graphics & Images
- ↳ ChattChitto RG
- ↳ ChattChitto RG - Apps
- ↳ ChattChitto RG - Movies
- ↳ ChattChitto RG - Music
- ↳ Apps
- ↳ Portable
- ↳ Beta
- ↳ Games
- ↳ PC
- ↳ PS2
- ↳ PS3
- ↳ Wii
- ↳ Xbox
- ↳ PSP
- ↳ Other Consoles
- ↳ Movies
- ↳ Rips
- ↳ Pretime Releases
- ↳ DVD-Rip
- ↳ BR-Rip/BD-Rip
- ↳ 3D-Rips
- ↳ Full Rips
- ↳ DVD-R
- ↳ BR-R
- ↳ TV Shows
- ↳ HDTV Shows
- ↳ Anime/Cartoons
- ↳ Sport
- ↳ Music
- ↳ Electronic / Dance Music
- ↳ Pop / Rock Music
- ↳ Hip-Hop / Rap Music
- ↳ R&B / Soul Music / Jazz / Reggae
- ↳ Soundtrack / Classical Music
- ↳ Other Genres
- ↳ Music Videos
- ↳ DJ Mix sets & Mash-Ups
- ↳ eBooks
- ↳ Audio
- ↳ Magazine
- ↳ Mac and Other OSes
- ↳ Others
- ↳ Templates, Fonts & Scripts
- ↳ Wallpapers & Images Pack
- ↳ Tutorials - Educational Material
- ↳ Mobiles & Media Players
- ↳ Apps
- ↳ Portable
- ↳ Beta
- ↳ Games
- ↳ PC
- ↳ PS2
- ↳ PS3
- ↳ Wii
- ↳ Xbox
- ↳ PSP
- ↳ Other Consoles
- ↳ Movies
- ↳ Rips
- ↳ Pretime Releases
- ↳ DVD-Rip
- ↳ BR-Rip/BD-Rip
- ↳ 3D-Rips
- ↳ Full Rips
- ↳ DVD-R
- ↳ BR-R
- ↳ TV Shows
- ↳ HDTV Shows
- ↳ Anime/Cartoons
- ↳ Sport
- ↳ Music
- ↳ Electronic / Dance Music
- ↳ Pop / Rock Music
- ↳ Hip-Hop / Rap Music
- ↳ R&B / Soul Music / Jazz / Reggae
- ↳ Soundtrack / Classical Music
- ↳ Other Genres
- ↳ Music Videos
- ↳ DJ Mix sets & Mash-Ups
- ↳ eBooks
- ↳ Audio
- ↳ Magazine
- ↳ Mac and Other OSes
- ↳ Others
- ↳ Templates, Fonts & Scripts
- ↳ Wallpapers & Images Pack
- ↳ Tutorials - Educational Material
- ↳ Mobiles & Media Players
- ↳ Short Videos
- ↳ Regular Movies
- ↳ Hentai Movies
- ↳ Ebooks, Pics & Wallpapers
- ↳ Jokes
- ↳ Adult Sites Passwords
- ↳ Requests
- ↳ Apps requests
- ↳ Completed Requests
- ↳ Games requests
- ↳ Completed Requests
- ↳ Movies & TV Shows requests
- ↳ Completed Requests
- ↳ Music requests
- ↳ Mix Tape
- ↳ Completed Requests
- ↳ Other requests
- ↳ Mac requests
- ↳ Completed Requests
- Social Life
- ↳ Animals and Pets
- ↳ Photography
- ↳ Handy Hints for Everyday Living
- ↳ Traveling
- ↳ Motor Racing
- ↳ Cars and Bikes
- ↳ Aircrafts
- ↳ Marine/Submarine Vessels
- ↳ Cooking
- ↳ Sports
- ↳ Gadgets
- ↳ Gifts
- ↳ Forex