{"id":112,"date":"2018-11-23T22:39:36","date_gmt":"2018-11-23T22:39:36","guid":{"rendered":"https:\/\/mumbaiwebhosting.co.in\/portal\/?p=112"},"modified":"2019-03-09T02:41:22","modified_gmt":"2019-03-09T02:41:22","slug":"windows-vs-linux-file-system","status":"publish","type":"post","link":"https:\/\/mumbaiwebhosting.co.in\/portal\/windows-vs-linux-file-system\/","title":{"rendered":"Windows Vs. Linux File System"},"content":{"rendered":"\r\n<p>In Microsoft Windows, files are stored in folders on different data drives like C: D: E:<\/p>\r\n\r\n\r\n\r\n<p>But, in\u00a0<strong>Linux, files are ordered in a tree structure starting with the root directory<\/strong>.<\/p>\r\n\r\n\r\n\r\n<p>This root directory can be considered as the start of the file system, and it further branches out various other subdirectories. The root is denoted with a forward slash &#8216;\/&#8217;.<\/p>\r\n\r\n\r\n\r\n<h2 id=\"2\">Types of Files<\/h2>\r\n\r\n\r\n\r\n<p>In Linux and UNIX, everything is a file. Directories are files, files are files, and devices like Printer, mouse, keyboard etc.are files.<\/p>\r\n\r\n\r\n\r\n<p>Let&#8217;s look into the File types in more detail.<\/p>\r\n\r\n\r\n\r\n<h3>General Files<\/h3>\r\n\r\n\r\n\r\n<p>General Files also called as Ordinary files. They can contain image, video, program or simply text. They can be in ASCII or a Binary format. These are the most commonly used files by Linux Users.<\/p>\r\n\r\n\r\n\r\n<h3>Directory Files<\/h3>\r\n\r\n\r\n\r\n<p>These files are a warehouse for other file types. You can have a directory file within a directory (sub-directory).You can take them as &#8216;Folders&#8217; found in Windows operating system.<\/p>\r\n\r\n\r\n\r\n<h3>Device Files:<\/h3>\r\n\r\n\r\n\r\n<p>In MS Windows, devices like Printers, CD-ROM, and hard drives are represented as drive letters like G: H:. In Linux, there are represented as files.For example, if the first SATA hard drive had three primary partitions, they would be named and numbered as \/dev\/s<em>da1<\/em>, \/dev\/sda2 and \/dev\/sda3.<\/p>\r\n\r\n\r\n\r\n<p><strong>Note<\/strong>: All device files reside in the directory \/dev\/<\/p>\r\n\r\n\r\n\r\n<p>All the above file types (including devices) have permissions, which allow a user to read, edit or execute (run) them. This is a powerful Linux\/Unix feature. Access restrictions can be applied for different kinds of users, by changing permissions.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>In Microsoft Windows, files are stored in folders on different data drives like C: D: E: But, in\u00a0Linux, files are ordered in a tree structure starting with the root directory&#8230;. <a class=\"read-more-link\" href=\"https:\/\/mumbaiwebhosting.co.in\/portal\/windows-vs-linux-file-system\/\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/posts\/112"}],"collection":[{"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/comments?post=112"}],"version-history":[{"count":2,"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/posts\/112\/revisions"}],"predecessor-version":[{"id":171,"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/posts\/112\/revisions\/171"}],"wp:attachment":[{"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/media?parent=112"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/categories?post=112"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mumbaiwebhosting.co.in\/portal\/wp-json\/wp\/v2\/tags?post=112"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}