Using the command line,
environment variables, and navigating through the filesystem
75
Table 3.2 – The most important folders in the filesystem
Basic Commands
and Simple Shell Scripts76
TipPrevious versions of RHEL used to have bin for the essential binaries and /usr/bin for the nonessential ones. Now, the content of both resides in /usr/bin. They also used /var/
lock and /var/run for what is running in run. In addition, they used to have lib for the essential libraries and /usr/lib
for the nonessential ones, which were consolidated
into a single directory, /usr/lib. And last but not least, /sbin is the directory for the essential superuser binaries, and /usr/sbin is the directory for the nonessential ones, merged under
/usr/sbin.
When partitioning, we may well be asking ourselves, where does the disk space go?
These are the allocation values fora minimal installation of RHEL 9 and the recommendations:
Table 3.3 – The allocation values fora minimal installation of RHEL 9
Understanding IO redirection
on the command line77
It’s important to become familiar with the main directories in the system to make the best of them. It is recommended to navigate through the different system directories and look at what’s in them to become comfortable with the structure. In the following section, we will look at how to perform redirections on the command line to learn more about command and file interaction.
Share with your friends: