Tech Chronicles

Linux (2)

Using the Vi Editor

What is the Vi editor?

Vi is a Notepad-like tool for editing text files from the command line, widely used in the Linux/Unix community. Although it was often thought that Unix had been written by this tool, Vi was originally developed by Bill Joy in 1976. (Unix is based on the year 1969.) According to my personal experience, I can say that 50% of Linux/Unix use is Vi. The beginners have bad experience of editor usage and usually cool open source operating systems off when they are not comfortable to use. (The remaining 50% is the use of shell)

Linux File System Hierarchy

It can be a bit tricky to detect and understand the Linux file system for years using the Microsoft operating system.

Basically, the Linux/Unix operating systems include hardware resources, but the “everything” is considered a file.

For example, “/proc/partitions” specifies the partitions on the disk, whereas “/dev/eth0” specifies the connected network adapter.

The following diagram shows the file system hierarchy of a Linux operating system based on Redhat/Centos.

Now let’s try to explain the structure one by one.