www.howtogeek.com
Open in
urlscan Pro
151.101.130.49
Public Scan
URL:
https://www.howtogeek.com/117435/htg-explains-the-linux-directory-structure-explained/
Submission: On January 09 via manual from IL — Scanned from DE
Submission: On January 09 via manual from IL — Scanned from DE
Form analysis
5 forms found in the DOMGET /search/
<form class="searchform" action="/search/" method="get">
<input type="text" name="q" value="" placeholder="Enter search term" aria-label="Enter Search Term">
<input type="submit" value="Go">
</form>
GET /search/
<form class="searchform" action="/search/" method="get">
<input type="text" name="q" value="" placeholder="Enter search term" aria-label="Enter Search Term">
<input type="submit" value="Go">
</form>
POST /em/subscribe
<form action="/em/subscribe" method="post">
<input aria-hidden="true" tabindex="-1" type="hidden" name="postid" value="117435">
<input aria-hidden="true" tabindex="-1" type="hidden" name="list" value="weekday">
<input aria-hidden="true" tabindex="-1" type="hidden" name="tr" value="howtogeek-subscribemenu">
<input aria-hidden="true" tabindex="-1" type="hidden" name="moka-pagerefer" value="">
<input aria-label="Enter Your Email" aria-required="true" aria-invalid="false" onkeypress="validateAriaEmail(this)" type="text" name="email" class="ftemtxt" placeholder="Your email">
<input aria-label="Go" type="submit" class="ftemsub" value="Go">
</form>
POST /emv2/post
<form method="POST" action="/emv2/post">
<input aria-hidden="true" name="a" type="hidden" value="htgdefaultinline">
<input aria-hidden="true" type="hidden" name="moka-pagerefer" value="">
<input aria-hidden="true" type="hidden" name="postid" value="117435">
<input aria-hidden="true" name="emailaddress" style="display: none;" tabindex="-1" type="email">
<input name="e" aria-label="Email Address" type="text" placeholder="e-mail address">
<button type="submit">Sign Me Up!</button>
</form>
POST https://www.howtogeek.com/em/subscribe
<form action="https://www.howtogeek.com/em/subscribe" method="post">
<input aria-hidden="true" tabindex="-1" type="hidden" name="postid" value="117435">
<input aria-hidden="true" tabindex="-1" type="hidden" name="list" value="weekday">
<input aria-hidden="true" tabindex="-1" type="hidden" name="tr" value="howtogeek-footer">
<input aria-hidden="true" tabindex="-1" type="hidden" name="moka-pagerefer" value="">
<input aria-label="Enter Your Email" aria-required="true" aria-invalid="false" onkeypress="validateAriaEmail(this)" type="text" name="email" class="ftemtxt" placeholder="Enter Your Email">
<input aria-label="Sign Up" type="submit" class="ftemsub" value="Sign Up">
</form>
Text Content
WE VALUE YOUR PRIVACY We and our partners store and/or access information on a device, such as cookies and process personal data, such as unique identifiers and standard information sent by a device for personalised ads and content, ad and content measurement, and audience insights, as well as to develop and improve products. With your permission we and our partners may use precise geolocation data and identification through device scanning. You may click to consent to our and our partners’ processing as described above. Alternatively you may access more detailed information and change your preferences before consenting or to refuse consenting. Please note that some processing of your personal data may not require your consent, but you have a right to object to such processing. Your preferences will apply to this website only. You can change your preferences at any time by returning to this site or visit our privacy policy. MORE OPTIONSAGREE Skip to content Free Newsletter * Buying Guides * News * Windows * Explore * iPhone » * Android » * Mac » * Smart Home » * Office » * Security » * Linux » * About Us * Contact Us * Geek Talk * CloudSavvy IT Detect Hidden Surveillance CamerasFind Downloaded Files on an iPhoneMove Google Authenticator to a New PhoneUse Your iPhone as a WebcamUse FaceTime on AndroidRemove Activation Lock on an iPhoneHide Private Photos on iPhone Enable Dark Mode on your iPhoneSet a GIF as Wallpaper on iPhoneFix Crashing Apps on iPhoneiPhone or iPad Screen Won't RotateConvert HEIC Photos to JPG on iPhoneTake Screenshot by Tapping Back of iPhonePair Two Sets of AirPods With the Same iPhone Latest Version of iOS and iPadOSDownload Files Using Safari on Your iPhoneForce Your Apple Watch to SyncPair AirPods with Any DeviceHide an App on Your iPhoneChange Your Apple ID Email AddressSignal vs. Telegram Browse All iPhone Articles | Browse Buying Guides Find Your Wi-Fi PasswordFree Up Disk Space on Your MacFind the Best Wi-Fi ChannelCreate Bootable USB DrivesRemove a PDF PasswordWhat to Do When Your Mac Won't Turn OnRun Windows Software on Mac Stream From VLC to ChromecastWrite to NTFS Drives on a MacTurn Your Computer Into a DLNA Media Server3 Ways to Remotely Connect to MacTurn Your Mac Into a Wi-Fi HotspotUse Your iPhone as a WebcamChange Your Apple ID Email Address Freely Move Pictures in WordCut and Paste Files on MacDownload and Install Older Versions of macOSCan You Play Games on an Apple Silicon M1 Mac?Your M1 Mac Won't Run Windows 11Use Google Fonts in WordWhat Are AAE Files from an iPhone? Browse All Mac Articles | Browse Buying Guides Find Your Wi-Fi PasswordElectronically Sign PDFsUse the Linux Bash Shell on WindowsFind the Best Wi-Fi ChannelStream From VLC to ChromecastDetect Hidden Surveillance CamerasMove Google Authenticator to a New Phone Use FaceTime on AndroidSignal vs. TelegramOpen Android's Camera FastHide Apps on AndroidTake Photos of FireworksCopy and Paste Between Android and WindowsBest Bluetooth Trackers Clear Cookies and Site Data on AndroidWhat Is Dew Point?Best Android PhonesAdjust Perspective of PhotosTake Full-Page Screenshots in ChromeBest Budget Android PhonesUninstall Multiple Apps at Once Browse All Android Articles | Browse Buying Guides See Who's Connected to Your Wi-FiFind the Best Wi-Fi ChannelMonitor Your Internet Bandwidth UsageWhy is My Echo BlinkingSet Up a NAS DriveDifference Between the Echo and Echo DotControl All Your Smart Home Devices in One App Best Smart Light BulbsUse Hand Gestures with Google Nest HubSchedule a Smart Plug with AlexaBest LED Strip LightsConnect Alexa to Wi-FiBest Robot VacuumsPlay Games on a Google Nest Hub Best Smart Home GiftsGoogle Assistant Good Morning Routine7 Alexa Skills to Make Your Life EasierEve MotionBlindsCan Power Companies Remotely Adjust Your Smart Thermostat?Google Scheduled Actions Giving People NightmaresGoogle Home Lawsuit Browse All Smart Home Articles | Browse Buying Guides Find Your Lost Product KeysAdd Check Boxes to Word DocumentsInsert Horizontal Lines In WordUse a Dark Theme in WindowsAwesome Geeky Computer PranksWhat Is ctfmon.exe?Customize the Taskbar in Windows 10 Convert a Row to a ColumnHighlight a Row Using Conditional FormattingUse Multiple Headers and FootersAdd a Drop-Down List to a Word DocumentOffice Security UpdatesStart Excel from the Command PromptNumber or Label Equations in Word Count Colored Cells in ExcelDelete All Notes at Once in PowerPointLock Cells in Excel to Prevent EditingCreate a Dependent Drop-Down List in ExcelUse Conditional Formatting to Find Duplicate Data in ExcelUse Google Fonts in WordRemove Section and Page Breaks in Word Browse All Microsoft Office Articles | Browse Buying Guides What Is svchost.exe?Clean Install Windows 10 the Easy WayBest Antivirus for Windows 10Find Your Wi-Fi PasswordUse Windows 10 Without Product KeySee Who's Connected to Your Wi-FiHide or Password Protect a Folder in Windows Remove a PDF PasswordSet Up Your Own Home VPN ServerDisable Cortana in Windows 10Access Your Router If You Forget the PasswordWrite to NTFS Drives on a MacDetect Hidden Surveillance CamerasRemove Activation Lock on an iPhone Kick People Off Your Wi-FiLinux Distros for BeginnersSafe to Sell My Old Modem?Office Security UpdatesWhy You Should Use Multiple Web BrowsersClear Cookies and Site Data on AndroidWhat Are Decentralized VPNs? Browse All Privacy and Security Articles | Browse Buying Guides Electronically Sign PDFsUse the Linux Bash Shell on WindowsEdit Your Hosts FileWhat's the Difference Between GPT and MBRFind the Best Wi-Fi ChannelCreate Bootable USB DrivesRemove a PDF Password Run Windows Software on MacAccess Your Linux Partitions From WindowsSet Up Your Own Home VPN ServerBest Alternatives to uTorrentWindows Won't BootStream From VLC to ChromecastDelete Files Older Than x Days Fix an Overheating LaptopTurn Your Computer Into a DLNA Media ServerImportant Linux CommandsLinux Distros for BeginnersBest Linux LaptopsCheck Which Websites Can Access Your Locationelementary OS 6.1 Browse All Linux Articles | Browse Buying Guides COMPLETE GUIDES BY HOW-TO GEEK Browse All Buying Guides OUR LATEST PRODUCT ROUNDUPS Best Smartwatches Best Gaming Laptops Best Smart Displays Best Home Security Systems Best External Solid State Drives Best Portable Chargers Best Phone Chargers Best Wi-Fi Range Extenders Best USB-C Cables Best Oculus Quest 2 Accessories Best iPad Air Cases Best Lightning Cables READER FAVORITES Best Wi-Fi Routers Awesome PC Accessories Best Linux Laptops Best Wireless iPhone Earbuds Best Bluetooth Trackers Best eReaders Best VPN MORE FROM HOW-TO GEEK Browse All Buying Guides Browse All News Articles LATEST GEEK NEWS Windows 11 AirPods Windows 11 Alt+Tab Google Home Lawsuit Taco Bell Subscription Windows Always-on-Top Shortcut Spotify Clickable Ads US Teens iPhone Intel Core i9-12900KS Wear OS Android and PC Integration Zenbook 17 Fold OLED Android Auto MA1 READER FAVORITES Detect Hidden Surveillance Cameras Use Your iPhone as a Webcam Hide Private Photos on iPhone All Microsoft's PowerToys for Windows Take Screenshot by Tapping Back of iPhone 5 Websites Every PC Gamer Should Bookmark Windows 11 Default Browser MORE FROM HOW-TO GEEK Browse All Buying Guides Browse All Windows Articles LATEST WINDOWS ARTICLES Windows Always-on-Top Shortcut Windows 11 Default Browser Windows 10 Annual Updates OneDrive Windows 7 and 8 Copy and Paste Between Android and Windows Steam Deck Will Let You Dual Boot Windows Protect Windows 10 From Internet Explorer Mozilla Fights Double Standard Make Windows Terminal Always Open With Command Prompt Burn an ISO Image to Disc Connect to a Hidden Wi-Fi Network Change the Size of the Touch Keyboard READER FAVORITES Take Screenshot on Windows Mount an ISO image in Windows What Is svchost.exe? Boot Into Safe Mode Where to Download Windows Legally Find Your Lost Product Keys Clean Install Windows 10 the Easy Way X * Windows * Mac * iPhone * Android * 🎁 Holiday 2021 * Smarthome * Office * Security * Linux * Buying Guides * News * Features * Review Geek * LifeSavvy * Newsletter * About Us * Contact Us * Geek Talk * CloudSavvy IT X The Best Tech Newsletter Anywhere Join 425,000 subscribers and get a daily digest of news, geek trivia, and our feature articles. By submitting your email, you agree to the Terms of Use and Privacy Policy. THE LINUX DIRECTORY STRUCTURE, EXPLAINED Chris Hoffman Chris Hoffman Editor-in-Chief Chris Hoffman is Editor-in-Chief of How-To Geek. He's written about technology for over a decade and was a PCWorld columnist for two years. Chris has written for The New York Times, been interviewed as a technology expert on TV stations like Miami's NBC 6, and had his work covered by news outlets like the BBC. Since 2011, Chris has written over 2,000 articles that have been read nearly one billion times---and that's just here at How-To Geek. Read more... About How-To Geek @chrisbhoffman Sep 21, 2016, 8:00 pm EST | 5 min read If you’re coming from Windows, the Linux file system structure can seem particularly alien. The C:\ drive and drive letters are gone, replaced by a / and cryptic-sounding directories, most of which have three letter names. The Filesystem Hierarchy Standard (FHS) defines the structure of file systems on Linux and other UNIX-like operating systems. However, Linux file systems also contain some directories that aren’t yet defined by the standard. / — THE ROOT DIRECTORY Everything on your Linux system is located under the / directory, known as the root directory. You can think of the / directory as being similar to the C:\ directory on Windows — but this isn’t strictly true, as Linux doesn’t have drive letters. While another partition would be located at D:\ on Windows, this other partition would appear in another folder under / on Linux. /BIN — ESSENTIAL USER BINARIES The /bin directory contains the essential user binaries (programs) that must be present when the system is mounted in single-user mode. Applications such as Firefox are stored in /usr/bin, while important system programs and utilities such as the bash shell are located in /bin. The /usr directory may be stored on another partition — placing these files in the /bin directory ensures the system will have these important utilities even if no other file systems are mounted. The /sbin directory is similar — it contains essential system administration binaries. /BOOT — STATIC BOOT FILES The /boot directory contains the files needed to boot the system — for example, the GRUB boot loader’s files and your Linux kernels are stored here. The boot loader’s configuration files aren’t located here, though — they’re in /etc with the other configuration files. /CDROM — HISTORICAL MOUNT POINT FOR CD-ROMS The /cdrom directory isn’t part of the FHS standard, but you’ll still find it on Ubuntu and other operating systems. It’s a temporary location for CD-ROMs inserted in the system. However, the standard location for temporary media is inside the /media directory. /DEV — DEVICE FILES Linux exposes devices as files, and the /dev directory contains a number of special files that represent devices. These are not actual files as we know them, but they appear as files — for example, /dev/sda represents the first SATA drive in the system. If you wanted to partition it, you could start a partition editor and tell it to edit /dev/sda. This directory also contains pseudo-devices, which are virtual devices that don’t actually correspond to hardware. For example, /dev/random produces random numbers. /dev/null is a special device that produces no output and automatically discards all input — when you pipe the output of a command to /dev/null, you discard it. /ETC — CONFIGURATION FILES The /etc directory contains configuration files, which can generally be edited by hand in a text editor. Note that the /etc/ directory contains system-wide configuration files — user-specific configuration files are located in each user’s home directory. /HOME — HOME FOLDERS The /home directory contains a home folder for each user. For example, if your user name is bob, you have a home folder located at /home/bob. This home folder contains the user’s data files and user-specific configuration files. Each user only has write access to their own home folder and must obtain elevated permissions (become the root user) to modify other files on the system. /LIB — ESSENTIAL SHARED LIBRARIES The /lib directory contains libraries needed by the essential binaries in the /bin and /sbin folder. Libraries needed by the binaries in the /usr/bin folder are located in /usr/lib. The Best Tech Newsletter Anywhere Join 425,000 subscribers and get a daily digest of features, articles, news, and trivia. Sign Me Up! By submitting your email, you agree to the Terms of Use and Privacy Policy. /LOST+FOUND — RECOVERED FILES Each Linux file system has a lost+found directory. If the file system crashes, a file system check will be performed at next boot. Any corrupted files found will be placed in the lost+found directory, so you can attempt to recover as much data as possible. /MEDIA — REMOVABLE MEDIA The /media directory contains subdirectories where removable media devices inserted into the computer are mounted. For example, when you insert a CD into your Linux system, a directory will automatically be created inside the /media directory. You can access the contents of the CD inside this directory. /MNT — TEMPORARY MOUNT POINTS Historically speaking, the /mnt directory is where system administrators mounted temporary file systems while using them. For example, if you’re mounting a Windows partition to perform some file recovery operations, you might mount it at /mnt/windows. However, you can mount other file systems anywhere on the system. /OPT — OPTIONAL PACKAGES The /opt directory contains subdirectories for optional software packages. It’s commonly used by proprietary software that doesn’t obey the standard file system hierarchy — for example, a proprietary program might dump its files in /opt/application when you install it. /PROC — KERNEL & PROCESS FILES The /proc directory similar to the /dev directory because it doesn’t contain standard files. It contains special files that represent system and process information. /ROOT — ROOT HOME DIRECTORY The /root directory is the home directory of the root user. Instead of being located at /home/root, it’s located at /root. This is distinct from /, which is the system root directory. /RUN — APPLICATION STATE FILES The /run directory is fairly new, and gives applications a standard place to store transient files they require like sockets and process IDs. These files can’t be stored in /tmp because files in /tmp may be deleted. /SBIN — SYSTEM ADMINISTRATION BINARIES The /sbin directory is similar to the /bin directory. It contains essential binaries that are generally intended to be run by the root user for system administration. /SELINUX — SELINUX VIRTUAL FILE SYSTEM If your Linux distribution uses SELinux for security (Fedora and Red Hat, for example), the /selinux directory contains special files used by SELinux. It’s similar to /proc. Ubuntu doesn’t use SELinux, so the presence of this folder on Ubuntu appears to be a bug. /SRV — SERVICE DATA The /srv directory contains “data for services provided by the system.” If you were using the Apache HTTP server to serve a website, you’d likely store your website’s files in a directory inside the /srv directory. RELATED: How to Find Your Apache Configuration Folder /TMP — TEMPORARY FILES Applications store temporary files in the /tmp directory. These files are generally deleted whenever your system is restarted and may be deleted at any time by utilities such as tmpwatch. /USR — USER BINARIES & READ-ONLY DATA The /usr directory contains applications and files used by users, as opposed to applications and files used by the system. For example, non-essential applications are located inside the /usr/bin directory instead of the /bin directory and non-essential system administration binaries are located in the /usr/sbin directory instead of the /sbin directory. Libraries for each are located inside the /usr/lib directory. The /usr directory also contains other directories — for example, architecture-independent files like graphics are located in /usr/share. Advertisement The /usr/local directory is where locally compiled applications install to by default — this prevents them from mucking up the rest of the system. /VAR — VARIABLE DATA FILES The /var directory is the writable counterpart to the /usr directory, which must be read-only in normal operation. Log files and everything else that would normally be written to /usr during normal operation are written to the /var directory. For example, you’ll find log files in /var/log. -------------------------------------------------------------------------------- For more detailed technical information about the Linux file system hierarchy, consult the Filesystem Hierarchy Standard documentation. Linux Commands Files tar · pv · cat · tac · chmod · grep · diff · sed · ar · man · pushd · popd · fsck · testdisk · seq · fd · pandoc · cd · $PATH · awk · join · jq · fold · uniq · journalctl · tail · stat · ls · fstab · echo · less · chgrp · chown · rev · look · strings · type · rename · zip · unzip · mount · umount · install · fdisk · mkfs · rm · rmdir · rsync · df · gpg · vi · nano · mkdir · du · ln · patch · convert · rclone · shred · srm Processes alias · screen · top · nice · renice · progress · strace · systemd · tmux · chsh · history · at · batch · free · which · dmesg · chfn · usermod · ps · chroot · xargs · tty · pinky · lsof · vmstat · timeout · wall · yes · kill · sleep · sudo · su · time · groupadd · usermod · groups · lshw · shutdown · reboot · halt · poweroff · passwd · lscpu · crontab · date · bg · fg Networking netstat · ping · traceroute · ip · ss · whois · fail2ban · bmon · dig · finger · nmap · ftp · curl · wget · who · whoami · w · iptables · ssh-keygen · ufw RELATED: Best Linux Laptops for Developers and Enthusiasts READ NEXT * › What Does “This Package Is of Bad Quality” Mean on Ubuntu? * › How to Use the SteamOS Desktop * › Systemd Will Change How Your Linux Home Directory Works * › What Are Computer Files and Folders? * › How to Share Your Computer’s Files With a Virtual Machine * › How to Access Your Ubuntu Bash Files in Windows (and Your Windows System Drive in Bash) * › 6 Ways the Linux File System is Different From the Windows File System * › What 8K Content Is Actually Available? Chris Hoffman Chris Hoffman is Editor-in-Chief of How-To Geek. He's written about technology for over a decade and was a PCWorld columnist for two years. Chris has written for The New York Times, been interviewed as a technology expert on TV stations like Miami's NBC 6, and had his work covered by news outlets like the BBC. Since 2011, Chris has written over 2,000 articles that have been read nearly one billion times---and that's just here at How-To Geek. Read Full Bio » JOIN GEEK TALK ON FACEBOOK -------------------------------------------------------------------------------- The above article may contain affiliate links, which help support How-To Geek. -------------------------------------------------------------------------------- You Might Also Like Paid 60 Vintage Photos: Photos No Longer Censored Sponsored | groovyhistory.com Paid [Fotos] Die reale Person hinter Leo DiCaprios Rolle als Jack Dawson Sponsored | The Manual Paid 22 Coolest & Useful Gadgets for 2022 Sponsored | Cool Tech Paid 22 Worst Movies Ever, According to Rotten Tomatoes Sponsored | POPSUGAR Paid We Will Guess Your Education Level in 20 Questions Sponsored | Parentsdome Galleries Paid T-Shirts That Went Totally Wrong Sponsored | Parentsdome Galleries Geek Comic for August 5th – Password Security How-To Geek Geek Comic for August 15th – Blogging Irony How-To Geek Microsoft Backs Down: Windows 11 Will Run on Any PC How-To Geek Paid 50 Terrible Maps That Made Us Laugh Sponsored | Far & Wide Paid [Pics] Mann zieht aus seinem Haus aus, nachdem er einen geheimen Raum gefunden hat, der dieses enthält ... Sponsored | Housecoast Paid How to Heat Any Room in Minutes (Do This) Sponsored | all-the-gadgets.com Paid The Japanese Way To Free Your Body from Toxins Sponsored | tech4-you.com Here’s What You Should Use Instead of CCleaner How-To Geek Where to Download Windows 10, 8.1, and 7 ISOs Legally How-To Geek Windows 11 Will Soon Block All Default Browser Workarounds How-To Geek Paid Your IQ Is Over 140 If You Get Even 5/20 On This Quiz Sponsored | Parentsdome Galleries Paid Type 2 Diabetes? Do This Immediately (Watch) Sponsored | healthgoodtop Paid 6 Dresses That Wowed at the 2021 Emmys Sponsored | POPSUGAR Can My ISP See If I’m Using a VPN, and Do They Care? How-To Geek What Is No-Code, and Is It The Future of Tech? How-To Geek How to Install Windows 11 on an Unsupported PC How-To Geek Paid Most Memorable Oscars Afterparty Dresses Sponsored | POPSUGAR Paid 9/10 People Miserably Fail This U.S Geography Quiz, Will You Nail It? Sponsored | Parentsdome Galleries Paid Europe's 11 Best Overlooked Small Towns Sponsored | Thrillist Paid [Bilder] Optische Fehlschläge- Diese Autos sind sicher nichts fürs Auge Sponsored | Housecoast 10 Useful Windows Commands You Should Know How-To Geek Windows 11’s Control Panel Won’t Let You Uninstall Apps Soon How-To Geek 12 Basic Excel Functions Everybody Should Know How-To Geek Paid [Bilder] 30 Warnsignale für Herzerkrankungen, die Sie nicht ignorieren sollten Sponsored | DailySportX Paid [Fotos] Die erschreckenden Folgen des Make-ups, das Elizabeth I. trug Sponsored | The Manual Paid [Bilder] 40 am Strand aufgenommene Bilder, die zum Sterben schön sind Sponsored | Trendscatchers How to Force Dark Mode on Every Website in Google Chrome How-To Geek How to Fix When Wi-Fi Won’t Connect How-To Geek You Don’t Need a Product Key to Install and Use Windows 10 How-To Geek How-To Geek is where you turn when you want experts to explain technology. Since we launched in 2006, our articles have been read more than 1 billion times. Want to know more? Facebook Icon Facebook Instagram Icon Instagram Twitter Icon Twitter LinkedIn Icon LinkedIn RSS Feed The Best Free Tech Newsletter Anywhere By submitting your email, you agree to the Terms of Use and Privacy Policy. * About Us * Contact Us * Join Our Team * Advertising * Privacy Policy * Terms of Use * Accessibility * * Toggle Dark Mode © 2022 LifeSavvy Media. All Rights Reserved