Tips: Common commands for operating Linux in the terminal simulation tool Xshell

Tips: Common commands for operating Linux in the terminal simulation tool Xshell

Linux is a free-to-use and freely disseminated Unix-like operating system. It is a multi-user, multi-tasking, multi-threaded and multi-CPU operating system based on POSIX and UNIX. Xshell, as a professional terminal emulator, can be used to log in to Linux, so as to control the Linux system through commands. The following will learn specific operating skills.

Open the virtual machine on the computer, start the Linux system, then open the Xshell software, and connect to the Linux system, as shown in the figure below.

Figure 1: Connect to Linux

The first command: ls -l

The full name of ls is list, which lists all files in the specified path, and -l means to display the complete attributes of the file.

Figure 2: View file command

The second command: pwd

Indicates that the current directory is displayed. This command can be used to view when we do not know where the current directory is before operating many directories.

Figure 3: View file directory command

The third command: 3.commands to manage the clock

The clock is divided into hardware clock and system clock, and the two times are likely to be inconsistent. The date command sees the system clock, while the other two are hardware clocks.

Figure 4: Clock command

The fourth command: help

You can perform command execution help, you can also use the man command to directly view the command manual, but the help command is more commonly used.

Figure 5: Help command

The fifth command: passwd

It is used to modify the current password. After entering this password, change the line, and then repeat the new password twice to complete the password modification. If you do not want to modify it, use the shortcut key Ctrl+c to terminate the command.

Figure 6: Password command

The sixth command: shutdown -h now

Means to shut down immediately, so that we can directly shut down the Linux system.

Figure 7: Shut down the system

The above are the commonly used commands to control Linux in Xshell. I hope it can help you better control the Linux system with the help of a terminal emulator.