3 Basic Commands and Simple Shell Scripts Once you have your first Red Hat Enterprise Linux rhel


[root@rhel-instance doc cd /usr/share/doc/



Download 1.85 Mb.
View original pdf
Page33/67
Date26.02.2024
Size1.85 Mb.
#63678
1   ...   29   30   31   32   33   34   35   36   ...   67
Pablo Iranzo Gómez, Pedro Ibáñez Requena, Miguel Pérez Colino, Scott McCarty - Red Hat Enterprise Linux 9 Administration-Packt Publishing (2022) -chap 3 82 - 180
[root@rhel-instance doc cd /usr/share/doc/
[root@rhel-instance doc ls | wc -l
333
You can see that there are 333 directories available under /usr/share/doc.
As a good example, let’s enter the bash directory:
[root@rhel-instance doc cd bash/
Then, let’s take a look at the INTRO file using less to read it (remember, you use q to quit):
[root@rhel-instance bash ls
bash.html bashref.html FAQ INTRO RBASH README
[root@rhel-instance bash less INTRO
BASH - The Bourne-Again Shell
Bash is the shell, or command language interpreter, that will
appear in the GNU operating system. Bash is an sh-compatible
shell that
incorporates useful features from the Korn shell (ksh) and Cb bshellbb(csh). It is intended to conform to the IEEE POSIX P1003.2/
ISO 9945.2 Shell and Tools standard. It offers functional
improvements
This is a good read fora better understanding of bash. Now, you have a lot of documentation resources that you will be able to use during your daily tasks, as well as in the RHCSA exam.
Summary
In this chapter, we have learned about how to login to a system with user and with root, understanding the basics of permissions and security. We are now also more comfortable using the command line with auto-complete, navigating through the directories and files, packing and unpacking them, redirecting command output and parsing it, and even automating processes with shell scripts. More importantly, we have away to obtain information on what we are doing (or want to do) available in any RHEL system with the included documentation. These skills are the basis of the upcoming chapters. Don’t hesitate to revisit this chapter if you feel stuck or if your progress is not as fast as you thought.
Now, it is time to extend your knowledge to encompass more advanced topics in the upcoming chapters. In the following chapter, you will begetting used to the tools for regular operations, in which you will review the most common actions taken when managing a system. Enjoy!




Download 1.85 Mb.

Share with your friends:
1   ...   29   30   31   32   33   34   35   36   ...   67




The database is protected by copyright ©ininet.org 2024
send message

    Main page