Professional Documents
Culture Documents
Chapter 4: Conclusion
Environment Variables are variables that hold important data for programs to use,
we can access that by using the “env” command.
Important variables: SHELL and PATH
Linux has a great way of dealing with multi users.
To create a user, we execute “useradd <username>”
To change the password of any user, we execute “passwd <username>”
There are some important files in Linux such as /etc/passwd which contains
hashed passwords and shell types for all users within the system.
/etc/shadow contains hashed passwords, either by MD5 or SHA512.
The “su” command is used to execute commands on behalf of other users in the
system.
The “Sudo” command is used for admin privileges.
Linux has a similar boot process as to windows with a few exceptions: it has the
GRUB bootloader and from there executes the init.d script which is the script with
PID 1 and every process from there is considered a child of that script.
The init.d script executes the targeted runlevel’s programs and scripts.
Linux has different runlevels suited for the environment, such as graphical.target
(for normal PC usage), rescue.target (used to troubleshooting) and multi-
user.target (used for servers that do not need a GUI)
We can use the systemctl and runlevel commands to manage these runlevels.
/etc/rcX.d contains the scripts associated with each runlevel, where X is the
number of the runlevel.
The Linux System has a versatile filesystem where everything is a file, below is a
picture of that file system:
Last but not least is how to install software in Linux which is done using the “apt”
command because apt is the default package manager in Debian.