OS, File, and File System

  1. Operating System.
  2. File and File System.

Operating System

There are many operating systems nowadays. The most popular ones are Microsoft Windows, macOS, and Linux.

https://en.wikipedia.org/wiki/Operating_system

An operating system is system software that manages computer hardware, software resources, and provides common services for computer programs.

I’m sure you are familiar with Windows and macOS. However, you might not familiar with Linux much. Linux is the leading operating system on the servers. Android is powered by the Linux operating system as well.

In simple words, we can say that the operating system manages hardware. The main components of any computer are CPU, RAM memory, and hard driver. They will not work by themselves. They need some system to manage them and Operating System is software that manages hardware. Also, we can install different programs on top of the operating system. For example, the browser, games on your pc, etc.

File and File System

In the previous article, we said we can imagine computer memory as a big canvas. Now, somehow we need to manage this one big piece of data. The way we manage is by dividing them into files and organizing all the files as a file system.

There are two types of files. The first one is a directory(folder). The directory can have other files inside. Remember we can refer to directories as files as well. The second type is an actual file. It has a great number of formats(.txt, pdf, png). In fact, you even can create your own format.

Every file has a header, body, and ending point of the file. The header mainly contains metadata(data about data) about a file. Things like the file format, how to read the file, size, who created it, etc. The body will contain the actual content of the file. The ending part indicates that there is no more content of the file.

Each file has a specific path in the file system. A file path specifies a unique location in a file system.

For example, my notes.txt file on my Desktop will have this file path.

File path: C:\Users\Beknazar\Desktop\notes.txt

The File System is the way we organize files. It is based on a tree data structure. It has a root directory(C: for Windows and / for macOS)

--

--

--

Software Developer, Java Instructor https://www.techleadacademy.io/

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Installing Roundcube Email Client on Virtualmin and Configuring the Password Plugin

The All New Salesforce Service Cloud Summer’21 Top Features

Corpus Christi- questions

Convert binary data to a text with the lowest overhead

Unity Developer — Timeline

Why is my QMS software better than yours?

Install Budgie Desktop Environment on AlmaLinux 8 — LinuxCapable

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Beknazar

Beknazar

Software Developer, Java Instructor https://www.techleadacademy.io/

More from Medium

Java Design Patterns: Observer

Java Script

Object Oriented Programming with Java

Unit Testing in Java