From 8162153c3c84c62286f1328ea0b7962b07e51b73 Mon Sep 17 00:00:00 2001 From: Laurent Modolo <laurent@modolo.fr> Date: Mon, 28 Sep 2020 14:56:58 +0200 Subject: [PATCH] add start of 4 --- 4_unix_file_system.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 4_unix_file_system.md diff --git a/4_unix_file_system.md b/4_unix_file_system.md new file mode 100644 index 0000000..280a889 --- /dev/null +++ b/4_unix_file_system.md @@ -0,0 +1,32 @@ +--- +title: Unix file system +--- + +# Unix file system + +[](http://creativecommons.org/licenses/by-sa/4.0/) + +Objective: Understand how files are organized in Unix + +> On a UNIX system, everything is a file ; if something is not a file, it is a process. +> +> Machtelt Garrels + +The followings are files: + +- a text file +- an executable file +- a folder +- a keyboard +- a disk +- an usb key +- ... + +This mean that your keyboard is represented as a file within the OS. + +This file system is organized as a tree. As you have seen every folder has a parent folder exept the `/` folder whose parent is itself. + +Every file can be accessed by an **absolute path** starting at the root. Your user home folder can be accessed with the path `/home/etudiant/`. Go to your user home folder. + +We can also access file with a **relative path**, using the special folder "**..**". From your home folder, go to the *ubuntu* user home folder without passing by the root (we will see use of the "**.**" folder later). + -- GitLab