RedHat environment
This section describes how to obtain the RedHat operating system environment using a VM. In this environment, several additional experimental environments are available. (Of course, this experimental environment is not included with Redhat…)
RedHat’s default Shell (command interpreter) is called Bash.
Basic command line
Local login: Log in using a graphical desktop or a prompt. Remote login: SSH username@ip. After the connection, you will be prompted to enter the password. The password will not be displayed, just enter.
A command generally consists of three parts: command option parameters.
Some basic commands
Date Displays the date and time passwd Changes the password file Checks the file type cat displays the file content less displays the file content (one page at a time) Head and tail Displays the file content from the head and tail. The default value is 10 lines. Wc Calculates the number of characters, lines, and words in a fileCopy the code
Other operating
Input some characters, press Tab once, automatic completion (but some characters must be unique)
Enter some characters and press Tab twice. The command that can be completed is displayed.
Exit command to exit the console
Shortcut key Ctrl + C interrupt the operation
!!!!! Command to get the previous command and execute it.