Linux is an OS similar to Mac OS and Windows. Ubuntu and CentOS are famous and free. There are also paid ones such as Red Hat.
GUI, which can be operated intuitively such as MacOS and Windows Linux is operated from the command line and is called CUI.
Linux may be installed and used on hardware, This time we will use AWS. Linux is pre-installed on AWS.
MacOS Catalina、Amazon EC2
Since Linux is CUI, you can type commands on the command line to operate. For example
$ date
And press Enter
$ date
Monday, September 14, 2020 10:00:29 UTC
The current date and time is displayed as shown below.
Linux is a set of kernel and shell. The kernel is the main body of the OS, and the shell is a command function for the user to operate the main body. The main ones are sh, bash, tcsh, etc., but we use the most famous bash. Type the following command to switch to bash.
$ bash
When you want to exit the shell
$ exit
And press Enter.
Frequently used command operations are as follows.
command | motion |
---|---|
Ctrl + b | Move one character to the left |
Ctrl + f | Move one character to the right |
Ctrl + b | Move to the far right |
Ctrl + b | Move to the far left |
Esc, b | Move one word to the left |
Esc, f | Move one word to the right |
BackSpace | Delete the character to the left of the cursor |
fn + BackSpace | Delete the character at the cursor position |
Ctrl + w | Delete word (Delete until the next space delimiter on the left) |
Ctrl + k | Delete from the cursor position to the far right |
Ctrl + u | Delete from the cursor position to the far left |
Thank you for reading.
Recommended Posts