Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the commonly used and interesting commands in Linux?

Shulou Source: shulou.com Published: 2022-06-02 00:11:26 10月01日 Update

This article will explain in detail what are the commonly used and interesting commands in Linux, and the content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

1. Instruction to display date: date

There is no need to explain more about date.

% Y represents year

% m represents month

% d represents day

When% H is represented

Such as this, when we have time to proofread the time, we will use the ntp service, forgotten friends can review, for ntp as long as remember how to proofread the command on it.

two。 Commands to display calendars:

The strange command of displaying logs may only be used by foreigners. Anyway, I only look at mobile phones.

3. Important hotkeys [Tab], [ctrl]-c, [ctrl]-d

[Tab] Button-"Command completion"

[ctrl]-c button-make the current program "stop"

[ctrl]-d button-usually stops the command, which is equivalent to exit

4. Use init to switch the execution level below RHEL6.

There are seven levels of execution in Linux, and these are the only ones that are often used.

-- run level 0: shutdown

-- run level 3: plain text mode

-- run level 5: includes graphical interface mode

-- run level 6: restart

As mentioned last time, the startup level in RHEL7 has changed, and forgotten children's shoes are reviewed:

As follows:

Set the default third startup level

[root@xuegod60 ~] # systemctl set-default multi-user.target

Removed symlink/etc/systemd/system/default.target.

Created symlink from/etc/systemd/system/default.target to/usr/lib/systemd/system/multi-user.target.

Set the default fifth startup level

[root@xuegod60 ~] # systemctl set-default graphical.target

Removed symlink/etc/systemd/system/default.target.

Created symlink from/etc/systemd/system/default.target to / usr/lib/systemd/system/graphical.target.

View the current default startup level

[root@xuegod60 ~] # systemctl get-default

Graphical.target

On the Linux commonly used and interesting commands are shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Commands levels buttons time fun frequently used content articles more proofreading patterns knowledge grades articles review good important and so on only graphics Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB MySQL NVidia OPPO Reno Linux