Introduction to linux
Overview of file system arrangement of linux:
I think most of you are familiar with windows operating system. There you can see drives like C, D, E etc. where you keep your files and folders. Each of these drives contains a tree like structure of folders as shown below.
Overview of file system arrangement of linux:
I think most of you are familiar with windows operating system. There you can see drives like C, D, E etc. where you keep your files and folders. Each of these drives contains a tree like structure of folders as shown below.
I have shown you a tree like structure of C drive. There are D and another drives but I am not going to explain that now
Each of these folders in the C drive have their own functions. The "program files" contains all the installed program and their data. The windows directory contains all necessary files needed for the operating system. In windows a backward slash represent a sub-directory. For example C:\Program files= The folder program files is a sub-directory of the drive C.
C:\Program files\microsoft office Microsoft office is a sub folder of program files where the porgram files are sub folders of C Drives.
<root>\Users\<username>
But In linux there is no concept of drives and drive letters. Linux keeps everything under a folder called root directory. We represent it using the forward slash symbol(/). You can think of the / directory as being similar to the C:\ directory on Windows. While another partition would be located at D:\ on Windows, this other partition would appear in another folder under / on Linux. I will give you a tree view of folder arrangement of linux operating system.
Each of these folders in the C drive have their own functions. The "program files" contains all the installed program and their data. The windows directory contains all necessary files needed for the operating system. In windows a backward slash represent a sub-directory. For example C:\Program files= The folder program files is a sub-directory of the drive C.
C:\Program files\microsoft office Microsoft office is a sub folder of program files where the porgram files are sub folders of C Drives.
<root>\Users\<username>
But In linux there is no concept of drives and drive letters. Linux keeps everything under a folder called root directory. We represent it using the forward slash symbol(/). You can think of the / directory as being similar to the C:\ directory on Windows. While another partition would be located at D:\ on Windows, this other partition would appear in another folder under / on Linux. I will give you a tree view of folder arrangement of linux operating system.
in Linux, everything is under / – the root directory. There are no files above the root directory,
On the top you can see the directory called /. It is the directory which contains all the files and folders of linux operating system. Under this directory you can see a number of sub directories. Each of these sub-directories have their own functions. For example the b. /bin and /sbin directory holds programs. The admin user (root user) keeps his files and folders under /root directory. We will learn the importance of all the other directories later.
/boot -> directory holds the kernel and the necessary files to boot the operating system
/root - Root Home Directory The /root directory is the home directory of the root user.
/home directory contains a home folder for each user. For example, if your user name is bob, you have a home folder located at /home/bob. This home folder contains the user’s data files and user-specific configuration files. Each user only has write access to their own home folder and must obtain elevated permissions (become the root user) to modify other files on the system.