File System Hierarchy Standard (FHS)

Similar documents
Filesystem Hierarchy Operating systems I800 Edmund Laugasson

Manage Directories and Files in Linux. Objectives. Understand the Filesystem Hierarchy Standard (FHS)

Filesystem Hierarchy and Permissions

Filesystem Hierarchy and Permissions

Welcome to getting started with Ubuntu Server. This System Administrator Manual. guide to be simple to follow, with step by step instructions

Chapter Two. Lesson A. Objectives. Exploring the UNIX File System and File Security. Understanding Files and Directories

Computer System Management - Unix/Linux

Linux Files and the File System

GNU/Linux 101. Casey McLaughlin. Research Computing Center Spring Workshop Series 2018

Chapter 6. Linux File System

Embedded System Design

Introduction to HP-UX Operating System

Linux Essentials. Programming and Data Structures Lab M Tech CS First Year, First Semester

Some Practical Matters. Introduction to Unix. What's Our Goal? Linux!= UNIX

INTRODUCTION TO LINUX

Introduction to Linux Part I: The Filesystem Luca Heltai

Essential Unix and Linux! Perl for Bioinformatics, ! F. Pineda

Chapter 4 File system management. Chapter 4 File system management

File System. yihshih

Unix System Architecture, File System, and Shell Commands

Lecture 2: The file system

ECE 471 Embedded Systems Lecture 10

Server Consolidation with Xen Farming

Linux Kung Fu. Stephen James UBNetDef, Spring 2017

Linux Systems Administration Getting Started with Linux

System Administration for Beginners

Thousands of Linux Installations (and only one administrator)

Linux basics U3A in Bath. Linux Principles. by Andy Pepperdine

Linux. The Ultimate Beginners Guide to Linux Operating System

Course 55187B Linux System Administration

The landscape. File hierarchy overview. A tree structure of directories The directory tree is standardized. But varies slightly among distributions

Getting Started with Linux

*nix Crash Course. Presented by: Virginia Tech Linux / Unix Users Group VTLUUG

Files. Computer Center, CS, NCTU. % ls l. d rwx--x--x 7 liuyh gcs 1024 Sep 22 17:25 public_html. File type. File access mode.

Introduction. What is Linux? What is the difference between a client and a server?

LiLo Crash Recovery. 1.0 Preparation Tips. 2.0 Quick Steps to recovery

Unix Filesystem. January 26 th, 2004 Class Meeting 2

CSE 265: System and Network Administration

Overview LEARN. History of Linux Linux Architecture Linux File System Linux Access Linux Commands File Permission Editors Conclusion and Questions

Unix File System. Class Meeting 2. * Notes adapted by Joy Mukherjee from previous work by other members of the CS faculty at Virginia Tech

Embedded Linux Systems. Bin Li Assistant Professor Dept. of Electrical, Computer and Biomedical Engineering University of Rhode Island

PowerVM Lx86 for x86 Linux Applications Administration Guide

GNU/Linux: An Essential Guide for Students Undertaking BLOSSOM

Caja File Manager. Desktop User Guide

UNIX Concepts COMPSCI 386

Hardening servers for the modern internet

Introduction to FreeBSD (Additional Material)

Introduction to Linux. Roman Cheplyaka

MA 511: Computer Programming Lecture 23 Partha Sarathi Mandal

How to clone a Linux box using netcat

UNIX System Programming Lecture 3: BASH Programming

1 Installation (briefly)

At course completion. Overview. Audience profile. Course Outline. : 55187B: Linux System Administration. Course Outline :: 55187B::

"Charting the Course... MOC B: Linux System Administration. Course Summary

Exam LFCS/Course 55187B Linux System Administration

The newer versions of Unix also blur the distinction between files and processes, serial ports, ipc channels, and shared memory segments

Introduction of Linux

Presented by Bill Genske Gary Jackson

Linux Howtos. Fedora 9 Install (114) CIS Fall Fedora 9 Install (114) Fedora 9 installation with custom partitions.

CSE 265: System and Network Administration

Chapter 6. Boot time configuration. Chapter 6 Boot time configuration

Overview of the UNIX File System

Perl and R Scripting for Biologists

CREATION OF A MINIMAL STAND ALONE RTAI SYSTEM ================================================

Welcome. Introduction to FreeBSD. Class Schedule. Some Practical Matters. Outline continued. Outline. Introduction. Pre-SANOG VI Workshop

Introduction to SUSE Linux Enterprise Server

Chapter-3. Introduction to Unix: Fundamental Commands

How to Restrict a Login Shell Using Linux Namespaces

Information System Audit Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000)

Student Remote Login Procedure (see picture below): 1. Start SSH Secure Shell 2. Click the computer icon (4 th on the toolbar) 3.

CS197U: A Hands on Introduction to Unix

Overview of the UNIX File System. Navigating and Viewing Directories

Topics. Installation Basics of Using GNU/ Linux Administration Tools

CompTIA Linux Course Overview. Prerequisites/Audience. Course Outline. Exam Code: XK0-002 Course Length: 5 Days

minit Felix von Leitner September 2004 minit

CS197U: A Hands on Introduction to Unix

Linux for Beginners. Windows users should download putty or bitvise:

Introduction to Linux

Linux Essentials Objectives Topics:

The Linux IPL Procedure

Getting your department account

Introduction to Unix: Fundamental Commands

OPERATING SYSTEMS LINUX

D, E I, J, K. Generalized Regular Expression Parser (GREP), 110 Generic 105 key (Intl) PC, 29 git command, 242

Installation of the OS

Operating Systems. Engr. Abdul-Rahman Mahmood MS, PMP, MCP, QMR(ISO9001:2000) alphapeeler.sf.net/pubkeys/pkey.htm

Basics of Linux, gnuplot, C

Installing caos with Cinch on CDROM

Course 144 Supplementary Materials. UNIX Fundamentals

LPI Number: Passing Score: 800 Time Limit: 120 min File Version: 5. LPI Questions & Answers

CS 307: UNIX PROGRAMMING ENVIRONMENT FIND COMMAND

Chapter 1. Getting started with UNIX

Linux Kung-Fu. James Droste UBNetDef Fall 2016

1. What command is used to count the total number of lines, words, and characters contained in a file? A. countw B. wcount C. wc D.

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage

Introduction to Linux

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages

Virtual University of Pakistan Knowledge beyond the boundaries

CST8177 Linux II. Linux Boot Process

h/w m/c Kernel shell Application s/w user

Transcription:

File System Hierarchy Standard (FHS) Filesystem hierarchy standard describes directory structure and its content in Unix and Unix like operating system. It explains where files and directories should be located and what it should contain.

Its current version is 3.0 released on June 3rd 2015 and is maintained by Free Standards Group. In Unix like operating system everything is considered as a file. Only Linux distributions follow the FHS and that too partially. Because every distro have their own policy due to which you may notice some differences in the directory tree structure of different distros. If you want to find out information about your system's FHS, enter the command man hier. It will display directory structure of your system. 1. / Root Every single file and directory starts from the root directory. Only root user has write privilege under this directory. Please note that /root is root user s home directory, which is not same as /. 2. /bin User Binaries Contains binary executables. Common linux commands you need to use in single-user modes are located under this directory. Commands used by all the users of the system are located here. For example: ps, ls, ping, grep, cp.

3. /sbin System Binaries Just like /bin, /sbin also contains binary executables. But, the linux commands located under this directory are used typically by system aministrator, for system maintenance purpose. For example: iptables, reboot, fdisk, ifconfig, swapon 4. /etc Configuration Files Contains configuration files required by all programs. This also contains startup and shutdown shell scripts used to start/stop individual programs. For example: /etc/resolv.conf, /etc/logrotate.conf 5. /dev Device Files Contains device files. These include terminal devices, usb, or any device attached to the system. For example: /dev/tty1, /dev/usbmon0 6. /proc Process Information Contains information about system process. This is a pseudo filesystem contains information about running process. For example: /proc/{pid} directory contains information about the process with that particular pid. This is a virtual filesystem with text information about system resources. For example: /proc/uptime

7. /var Variable Files var stands for variable files. Content of the files that are expected to grow can be found under this directory. This includes system log files (/var/log); packages and database files (/var/lib); emails (/var/mail); print queues (/var/spool); lock files (/var/lock); temp files needed across reboots (/var/tmp); 8. /tmp Temporary Files Directory that contains temporary files created by system and users. Files under this directory are deleted when system is rebooted. 9. /usr User Programs Contains binaries, libraries, documentation, and sourcecode for second level programs. /usr/bin contains binary files for user programs. If you can t find a user binary under /bin, look under /usr/bin. For example: at, awk, cc, less, scp /usr/sbin contains binary files for system administrators. If you can t find a system binary under /sbin, look under /usr/sbin. For example: atd, cron, sshd, useradd, userdel /usr/lib contains libraries for /usr/bin and /usr/sbin /usr/local contains users programs that you install from source. For example, when you install apache from source, it goes under /usr/local/apache2

10. /home Home Directories Home directories for all users to store their personal files. For example: /home/john, /home/nikita 11. /boot Boot Loader Files Contains boot loader related files. Kernel initrd, vmlinux, grub files are located under /boot For example: initrd.img-2.6.32-24-generic, vmlinuz- 2.6.32-24-generic 12. /lib System Libraries Contains library files that supports the binaries located under /bin and /sbin Library filenames are either ld* or lib*.so.* For example: ld-2.11.1.so, libncurses.so.5.7 13. /opt Optional add-on Applications opt stands for optional. Contains add-on applications from individual vendors. add-on applications should be installed under either /opt/ or /opt/ sub-directory. 14. /mnt Mount Directory Temporary mount directory where sysadmins can mount filesystems.

15. /media Removable Media Devices Temporary mount directory for removable devices. For examples, /media/cdrom for CD-ROM; /media/floppy for floppy drives; /media/cdrecorder for CD writer 16. /srv Service Data srv stands for service. Contains server specific services related data. For example, /srv/cvs contains CVS related data.