From 02111da96ab2e3d986d65255db93560751420ab0 Mon Sep 17 00:00:00 2001 From: marcel-dempers Date: Thu, 19 Dec 2024 07:44:34 +1100 Subject: [PATCH] linux module updates --- course/content/operating-systems/linux/introduction/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/course/content/operating-systems/linux/introduction/README.md b/course/content/operating-systems/linux/introduction/README.md index 1c4f0ea..91d1e47 100644 --- a/course/content/operating-systems/linux/introduction/README.md +++ b/course/content/operating-systems/linux/introduction/README.md @@ -90,7 +90,7 @@ sudo userdel -r bob ### List users -User information in Linux is stored in the `passwd` file which exists in the `/etc` directly +User information in Linux is stored in the `passwd` file which exists in the `/etc` directory View the content of the file with the `cat` command @@ -105,6 +105,8 @@ Another useful command to see who we are logged in as, is the `whoami` command In order to navigate around, we will learn a couple of commands to navigate, but we also need to know what we are navigating
* `ls` is a command we use to list contents in a directory. `/` id the root directory in Linux, which is the equivalent of `C:\` in Windows. Type `ls /` in the terminal to list out contents in the `/` root directory. + `ls -l` helps us return a "list" format so we can see type of files\folders and permissions on those. + 'ls -a' helps us view hidden folders. In Linux, folders starting with a `.` is hidden. Just like the `.git` folders we saw in the previous chapter when working on GIT. * Home directories: Under the `/` directory you will see a directory called `/root` which is the `$HOME` directory of the root user.
All other user folders are under `/home`
The `~` also represents the full path to the home directory for your current user