{"id":79,"date":"2018-07-13T04:23:53","date_gmt":"2018-07-13T04:23:53","guid":{"rendered":"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=79"},"modified":"2019-05-16T07:03:18","modified_gmt":"2019-05-16T07:03:18","slug":"overview-of-gnu-linux-filesystem","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/chapter\/overview-of-gnu-linux-filesystem\/","title":{"rendered":"Overview of GNU\/Linux filesystem"},"content":{"raw":"<div><span style=\"float: right;\"><a href=\"https:\/\/youtu.be\/qe9NRDt1o1E\" target=\"_blank\" rel=\"noopener\"><img src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a>\r\n<\/span><\/div>\r\n&nbsp;\r\n\r\n<strong>Introduction<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Usually, a file is an object that stores data, information, settings or commands in a computer system. A directory is a structure that is used to store collection of files. A filesystem is the methods and data structures that an operating system uses to keep track of files on a disk or partition; that is, the way the files are organized on the disk.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">In Linux, the files are organized in a tree structure. A directory may contain directories and files. Operations like creation, modification, deletion can be performed on a file. Files can be readable, writable and executable. For instance, if a user types his bio-data in a file, we say that the file is readable. A file can be executable, certain commands and programs are stored as executable files. Certain files in Linux are read-only files, such files are managed by the system and prevents the user from making accidental changes.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">The partitions in hard disk are viewed different by Windows OS and Linux OS. As shown in figure 1, the windows OS sees partitions as C:, D:, etc. while the Linux OS view them as \u201c\/\u201d (root) partition and its sub-directories like \u201c\/bin\u201d, \u201c\/boot\u201d etc. Within each directory, there can be sub-directories. The directories and sub-directories may contain file(s). A file system is a data structure that stores index of each and every file. As we know, files reside in physical form of data blocks in the hard disk. The filesystem is responsible to map the physical location to its logical location in directory structure. The way Linux and Windows maintain files are entirely different, so they have distinct filesystems.<\/p>\r\n<p style=\"text-align: center;\"><img class=\"size-full wp-image-81 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c1.jpg\" alt=\"\" width=\"471\" height=\"211\" \/><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 1: Partitions of Hard Disk<\/strong><\/p>\r\n&nbsp;\r\n\r\n<strong>Linux Directory Structure<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Linux organizes the files in tree structure. As you can see in the figure 2, the \u201c\/\u201d directory is at the top level and other directories branch out from the root. Files are within these directories. This gives us a hierarchical structure. The root directory is not the same as the root user.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">The hierarchical filesystem also contains other elements in the path (known as directory names), which are separated by forward slashes (\/), as in <strong>\/var\/log\/messages<\/strong>, where the last element is the actual file name (messages).<\/p>\r\n<p style=\"text-align: center;\"><img class=\"size-full wp-image-82 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c2.png\" alt=\"\" width=\"666\" height=\"292\" \/><\/p>\r\n\r\n<div>\r\n\r\nLinux classifies the files into 3 main categories and accordingly they are placed in different directories. The classification is as follows:\r\n<ul>\r\n \t<li>\u00a0User Files \u2013 Files created and being accessed by users of the system<\/li>\r\n \t<li><span style=\"font-size: 1em;\">System Files \u2013 Executable files, binary files, configuration files, etc. that are part of any program<\/span><\/li>\r\n \t<li><span style=\"font-size: 1em;\">Device Files \u2013 Files corresponding to devices like sound card, graphics card, NIC, etc.<\/span><\/li>\r\n<\/ul>\r\n<p style=\"text-align: center;\"><img class=\"size-full wp-image-83 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c3.jpg\" alt=\"\" width=\"1379\" height=\"751\" \/><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 3: Linux Directory and Files Organization<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Some of the important directories and their corresponding files are shown in figure 3. We can observe that \u201c\/\u201d is at the top level, its sub-directories are \/bin, \/etc, \/sbin, \/usr, \/var, etc. Within these directories there exists sub-directories and files.<\/p>\r\n<p style=\"text-align: center;\"><img class=\"size-full wp-image-84 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c4.jpg\" alt=\"\" width=\"525\" height=\"535\" \/><\/p>\r\n<p style=\"text-align: center;\"><strong>Figure 4: Listing of Linux files<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">When we issue the \u201cls \u2013l\u201d command on command prompt, it lists the files and directories as seen in figure 4. Each line is either a file or a directory. If the line starts with \u2018d\u2019, it is implied as a directory. Files and directories have attributes like size, creator, owner, date of modification etc. Each file or a directory has a path.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">There are two ways to identify paths:<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Absolute pathname: An absolute pathname identifies the path of a file or directory. It begins with the root directory and follows the tree, branch by branch, until it reaches the desired directory or file. Absolute paths always start with \u201c \/\u201d.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Example: \/home\/Akash\/Document\/biodata.pdf<\/p>\r\n<p style=\"text-align: justify;\">Relative pathname: A relative pathname starts from the current working directory. That is why, relative paths never start with\u201d \/\u201d.<\/p>\r\n<p style=\"text-align: justify;\">Example: ..\/..\/home\/Akash<\/p>\r\n&nbsp;\r\n\r\n<strong>Mount Point<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">A mount point is a directory in a file system where additional information is logically connected from a storage location outside the operating system's root drive and partition. Suppose when we insert pen drive or any usb drive to a system, it is said to be mounted. The filesystem of the pendrive attaches itself to the filesystem of the host computer. Similary, different directories can reside on separate partitions of hard disk.<\/p>\r\n&nbsp;\r\n\r\nThe <strong>mount<\/strong> command is used to attach a filesystem (which can be local to the computer or on a network) somewhere within the filesystem tree.\r\n\r\nFor example,\r\n<p style=\"text-align: center;\"><img class=\"alignnone size-full wp-image-85\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c7.png\" alt=\"\" width=\"628\" height=\"35\" \/><\/p>\r\n\r\n<ul>\r\n \t<li>The above command will attach the filesystem contained in the disk partition associated with the \/dev\/sda6 device node, into the filesystem tree at the \/home mount point.<\/li>\r\n \t<li>To <strong>unmount<\/strong> the partition, the command would be:<\/li>\r\n<\/ul>\r\n<p style=\"text-align: center;\"><img class=\"alignnone size-full wp-image-86\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c8.png\" alt=\"\" width=\"639\" height=\"34\" \/><\/p>\r\n&nbsp;\r\n\r\n<strong>Directories of Linux<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">The <strong>\/bin<\/strong> directory contains executable binaries, essential commands used to boot the system or in single-user mode, and essential commands required by all system users.<\/p>\r\n<p style=\"text-align: justify;\">The <strong>\/sbin<\/strong> directory contains executable binaries required by super user(administrator) like shutdown, fsck, etc.<\/p>\r\n<p style=\"text-align: justify;\">The <strong>\/boot<\/strong> directory contains files related to booting of Linux OS. The Linux kernel (vmlinuxz), boot loader (GRUB)<\/p>\r\n<p style=\"text-align: justify;\">The <strong>\/dev<\/strong> directory contains <strong>device nodes<\/strong>, a type of pseudo-file used by most hardware and software devices, except for network devices.<\/p>\r\n<p style=\"text-align: justify;\">The <strong>\/etc<\/strong> directory contains system configuration files. For example, the file <strong>resolv.conf<\/strong> is a DNS resolver which is used to resolve the IP address for a given domain name.<\/p>\r\n<p style=\"text-align: justify;\">Files like <strong>passwd, shadow<\/strong> and <strong>group<\/strong> that are used for for managing user accounts are found in the <strong>\/etc<\/strong> directory.<\/p>\r\n<p style=\"text-align: justify;\">The <strong>\/etc<\/strong> is for system-wide configuration files and only the superuser(root) can modify files there.<\/p>\r\n<p style=\"text-align: justify;\">User-specific configuration files are always found under their home directory that is part of <strong>\/home<\/strong>.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n<p style=\"text-align: justify;\">Let us summarize the key concepts covered in this module<\/p>\r\n<p style=\"text-align: justify;\">\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Concept of Linux filesystem.<\/p>\r\n<p style=\"text-align: justify;\">\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Linux filesystem hierarchy.<\/p>\r\n<p style=\"text-align: justify;\">\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Mounting of files.<\/p>\r\n\r\n<ul>\r\n \t<li><span style=\"font-size: 1em;\">Organization of files in various directories.<\/span><\/li>\r\n<\/ul>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>you can view video on Overview of GNU\/Linux filesystem<\/strong><\/td>\r\n<td><a href=\"https:\/\/youtu.be\/qe9NRDt1o1E\" target=\"_blank\" rel=\"noopener\"><img class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<strong>References:<\/strong>\r\n<ul>\r\n \t<li>Mike McGrath. 2008. <em>Linux in easy steps<\/em>, In easy steps\/Computer Step.<\/li>\r\n \t<li>Michael. Kofler. 2000. <em>LINUX\u202f: installation, configuration, and use<\/em>, Addison-Wesley.<\/li>\r\n \t<li>K.L. James. <em>Linux\u202f: learning the essentials<\/em>,<\/li>\r\n \t<li>Emmett. Dulaney. 2010. <em>Linux all-in-one for dummies<\/em>, John Wiley &amp; Sons.<\/li>\r\n \t<li>Nick. Petreley and Jono. Bacon. 2005. <em>Linux desktop hacks<\/em>, O\u2019Reilly Media, Inc.<\/li>\r\n \t<li>David. Brickner. 2005. <em>Linux desktop pocket guide<\/em>, O\u2019Reilly.<\/li>\r\n \t<li>Desktop Environment - Wikipedia Page, https:\/\/en.wikipedia.org\/wiki\/Desktop_environment<\/li>\r\n<\/ul>\r\n<\/div>","rendered":"<div><span style=\"float: right;\"><a href=\"https:\/\/youtu.be\/qe9NRDt1o1E\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a><br \/>\n<\/span><\/div>\n<p>&nbsp;<\/p>\n<p><strong>Introduction<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Usually, a file is an object that stores data, information, settings or commands in a computer system. A directory is a structure that is used to store collection of files. A filesystem is the methods and data structures that an operating system uses to keep track of files on a disk or partition; that is, the way the files are organized on the disk.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">In Linux, the files are organized in a tree structure. A directory may contain directories and files. Operations like creation, modification, deletion can be performed on a file. Files can be readable, writable and executable. For instance, if a user types his bio-data in a file, we say that the file is readable. A file can be executable, certain commands and programs are stored as executable files. Certain files in Linux are read-only files, such files are managed by the system and prevents the user from making accidental changes.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">The partitions in hard disk are viewed different by Windows OS and Linux OS. As shown in figure 1, the windows OS sees partitions as C:, D:, etc. while the Linux OS view them as \u201c\/\u201d (root) partition and its sub-directories like \u201c\/bin\u201d, \u201c\/boot\u201d etc. Within each directory, there can be sub-directories. The directories and sub-directories may contain file(s). A file system is a data structure that stores index of each and every file. As we know, files reside in physical form of data blocks in the hard disk. The filesystem is responsible to map the physical location to its logical location in directory structure. The way Linux and Windows maintain files are entirely different, so they have distinct filesystems.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-81 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c1.jpg\" alt=\"\" width=\"471\" height=\"211\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c1.jpg 471w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c1-300x134.jpg 300w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c1-65x29.jpg 65w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c1-225x101.jpg 225w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c1-350x157.jpg 350w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 1: Partitions of Hard Disk<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Linux Directory Structure<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Linux organizes the files in tree structure. As you can see in the figure 2, the \u201c\/\u201d directory is at the top level and other directories branch out from the root. Files are within these directories. This gives us a hierarchical structure. The root directory is not the same as the root user.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">The hierarchical filesystem also contains other elements in the path (known as directory names), which are separated by forward slashes (\/), as in <strong>\/var\/log\/messages<\/strong>, where the last element is the actual file name (messages).<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-82 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c2.png\" alt=\"\" width=\"666\" height=\"292\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c2.png 666w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c2-300x132.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c2-65x28.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c2-225x99.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c2-350x153.png 350w\" sizes=\"auto, (max-width: 666px) 100vw, 666px\" \/><\/p>\n<div>\n<p>Linux classifies the files into 3 main categories and accordingly they are placed in different directories. The classification is as follows:<\/p>\n<ul>\n<li>\u00a0User Files \u2013 Files created and being accessed by users of the system<\/li>\n<li><span style=\"font-size: 1em;\">System Files \u2013 Executable files, binary files, configuration files, etc. that are part of any program<\/span><\/li>\n<li><span style=\"font-size: 1em;\">Device Files \u2013 Files corresponding to devices like sound card, graphics card, NIC, etc.<\/span><\/li>\n<\/ul>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-83 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c3.jpg\" alt=\"\" width=\"1379\" height=\"751\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c3.jpg 1379w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c3-300x163.jpg 300w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c3-768x418.jpg 768w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c3-1024x558.jpg 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c3-65x35.jpg 65w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c3-225x123.jpg 225w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c3-350x191.jpg 350w\" sizes=\"auto, (max-width: 1379px) 100vw, 1379px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 3: Linux Directory and Files Organization<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Some of the important directories and their corresponding files are shown in figure 3. We can observe that \u201c\/\u201d is at the top level, its sub-directories are \/bin, \/etc, \/sbin, \/usr, \/var, etc. Within these directories there exists sub-directories and files.<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-84 aligncenter\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c4.jpg\" alt=\"\" width=\"525\" height=\"535\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c4.jpg 525w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c4-294x300.jpg 294w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c4-65x66.jpg 65w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c4-225x229.jpg 225w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c4-350x357.jpg 350w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p style=\"text-align: center;\"><strong>Figure 4: Listing of Linux files<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">When we issue the \u201cls \u2013l\u201d command on command prompt, it lists the files and directories as seen in figure 4. Each line is either a file or a directory. If the line starts with \u2018d\u2019, it is implied as a directory. Files and directories have attributes like size, creator, owner, date of modification etc. Each file or a directory has a path.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">There are two ways to identify paths:<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Absolute pathname: An absolute pathname identifies the path of a file or directory. It begins with the root directory and follows the tree, branch by branch, until it reaches the desired directory or file. Absolute paths always start with \u201c \/\u201d.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Example: \/home\/Akash\/Document\/biodata.pdf<\/p>\n<p style=\"text-align: justify;\">Relative pathname: A relative pathname starts from the current working directory. That is why, relative paths never start with\u201d \/\u201d.<\/p>\n<p style=\"text-align: justify;\">Example: ..\/..\/home\/Akash<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Mount Point<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">A mount point is a directory in a file system where additional information is logically connected from a storage location outside the operating system&#8217;s root drive and partition. Suppose when we insert pen drive or any usb drive to a system, it is said to be mounted. The filesystem of the pendrive attaches itself to the filesystem of the host computer. Similary, different directories can reside on separate partitions of hard disk.<\/p>\n<p>&nbsp;<\/p>\n<p>The <strong>mount<\/strong> command is used to attach a filesystem (which can be local to the computer or on a network) somewhere within the filesystem tree.<\/p>\n<p>For example,<\/p>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-85\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c7.png\" alt=\"\" width=\"628\" height=\"35\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c7.png 628w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c7-300x17.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c7-65x4.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c7-225x13.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c7-350x20.png 350w\" sizes=\"auto, (max-width: 628px) 100vw, 628px\" \/><\/p>\n<ul>\n<li>The above command will attach the filesystem contained in the disk partition associated with the \/dev\/sda6 device node, into the filesystem tree at the \/home mount point.<\/li>\n<li>To <strong>unmount<\/strong> the partition, the command would be:<\/li>\n<\/ul>\n<p style=\"text-align: center;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-86\" src=\"http:\/\/itp7.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/30\/2018\/07\/c8.png\" alt=\"\" width=\"639\" height=\"34\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c8.png 639w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c8-300x16.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c8-65x3.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c8-225x12.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-content\/uploads\/sites\/30\/2018\/07\/c8-350x19.png 350w\" sizes=\"auto, (max-width: 639px) 100vw, 639px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Directories of Linux<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">The <strong>\/bin<\/strong> directory contains executable binaries, essential commands used to boot the system or in single-user mode, and essential commands required by all system users.<\/p>\n<p style=\"text-align: justify;\">The <strong>\/sbin<\/strong> directory contains executable binaries required by super user(administrator) like shutdown, fsck, etc.<\/p>\n<p style=\"text-align: justify;\">The <strong>\/boot<\/strong> directory contains files related to booting of Linux OS. The Linux kernel (vmlinuxz), boot loader (GRUB)<\/p>\n<p style=\"text-align: justify;\">The <strong>\/dev<\/strong> directory contains <strong>device nodes<\/strong>, a type of pseudo-file used by most hardware and software devices, except for network devices.<\/p>\n<p style=\"text-align: justify;\">The <strong>\/etc<\/strong> directory contains system configuration files. For example, the file <strong>resolv.conf<\/strong> is a DNS resolver which is used to resolve the IP address for a given domain name.<\/p>\n<p style=\"text-align: justify;\">Files like <strong>passwd, shadow<\/strong> and <strong>group<\/strong> that are used for for managing user accounts are found in the <strong>\/etc<\/strong> directory.<\/p>\n<p style=\"text-align: justify;\">The <strong>\/etc<\/strong> is for system-wide configuration files and only the superuser(root) can modify files there.<\/p>\n<p style=\"text-align: justify;\">User-specific configuration files are always found under their home directory that is part of <strong>\/home<\/strong>.<\/p>\n<\/div>\n<div>\n<p style=\"text-align: justify;\">Let us summarize the key concepts covered in this module<\/p>\n<p style=\"text-align: justify;\">\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Concept of Linux filesystem.<\/p>\n<p style=\"text-align: justify;\">\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Linux filesystem hierarchy.<\/p>\n<p style=\"text-align: justify;\">\u2022\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Mounting of files.<\/p>\n<ul>\n<li><span style=\"font-size: 1em;\">Organization of files in various directories.<\/span><\/li>\n<\/ul>\n<table>\n<tbody>\n<tr>\n<td><strong>you can view video on Overview of GNU\/Linux filesystem<\/strong><\/td>\n<td><a href=\"https:\/\/youtu.be\/qe9NRDt1o1E\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>References:<\/strong><\/p>\n<ul>\n<li>Mike McGrath. 2008. <em>Linux in easy steps<\/em>, In easy steps\/Computer Step.<\/li>\n<li>Michael. Kofler. 2000. <em>LINUX\u202f: installation, configuration, and use<\/em>, Addison-Wesley.<\/li>\n<li>K.L. James. <em>Linux\u202f: learning the essentials<\/em>,<\/li>\n<li>Emmett. Dulaney. 2010. <em>Linux all-in-one for dummies<\/em>, John Wiley &amp; Sons.<\/li>\n<li>Nick. Petreley and Jono. Bacon. 2005. <em>Linux desktop hacks<\/em>, O\u2019Reilly Media, Inc.<\/li>\n<li>David. Brickner. 2005. <em>Linux desktop pocket guide<\/em>, O\u2019Reilly.<\/li>\n<li>Desktop Environment &#8211; Wikipedia Page, https:\/\/en.wikipedia.org\/wiki\/Desktop_environment<\/li>\n<\/ul>\n<\/div>\n","protected":false},"author":4,"menu_order":6,"template":"","meta":{"_acf_changed":false,"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":["mr-hardik-joshi"],"pb_section_license":""},"chapter-type":[],"contributor":[58],"license":[],"class_list":["post-79","chapter","type-chapter","status-publish","hentry","contributor-mr-hardik-joshi"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/pressbooks\/v2\/chapters\/79","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/wp\/v2\/users\/4"}],"version-history":[{"count":6,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/pressbooks\/v2\/chapters\/79\/revisions"}],"predecessor-version":[{"id":675,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/pressbooks\/v2\/chapters\/79\/revisions\/675"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/pressbooks\/v2\/chapters\/79\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/wp\/v2\/media?parent=79"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/pressbooks\/v2\/chapter-type?post=79"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/wp\/v2\/contributor?post=79"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp7\/wp-json\/wp\/v2\/license?post=79"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}