diff --git a/docs/en/docs/Administration/basic-configuration.md b/docs/en/docs/Administration/basic-configuration.md index c2a061b81b87618292682538e308c194d10e4bd2..f4f53467f37f18861ad60162bc931a1a79cd0c33 100644 --- a/docs/en/docs/Administration/basic-configuration.md +++ b/docs/en/docs/Administration/basic-configuration.md @@ -3,34 +3,34 @@ - [Basic Configuration](#basic-configuration) - - [Setting the System Locale](#setting-the-system-locale) - - [Displaying the Current Locale Status](#displaying-the-current-locale-status) - - [Listing Available Locales](#listing-available-locales) - - [Setting the Locale](#setting-the-locale) - - [Setting the Keyboard Layout](#setting-the-keyboard-layout) - - [Displaying the Current Settings](#displaying-the-current-settings) - - [Listing Available Keyboard Layouts](#listing-available-keyboard-layouts) - - [Setting the Keyboard Layout](#setting-the-keyboard-layout-1) - - [Setting the Date and Time](#setting-the-date-and-time) - - [Using the timedatectl Command](#using-the-timedatectl-command) + - [Setting the System Locale](#setting-the-system-locale) + - [Displaying the Current Locale Status](#displaying-the-current-locale-status) + - [Listing Available Locales](#listing-available-locales) + - [Setting the Locale](#setting-the-locale) + - [Setting the Keyboard Layout](#setting-the-keyboard-layout) + - [Displaying the Current Settings](#displaying-the-current-settings) + - [Listing Available Keyboard Layouts](#listing-available-keyboard-layouts) + - [Setting the Keyboard Layout](#setting-the-keyboard-layout-1) + - [Setting the Date and Time](#setting-the-date-and-time) + - [Using the timedatectl Command](#using-the-timedatectl-command) - [Displaying the Current Date and Time](#displaying-the-current-date-and-time) - [Synchronizing the System Clock with a Remote Server](#synchronizing-the-system-clock-with-a-remote-server) - [Changing the Current Date](#changing-the-current-date) - [Changing the Current Time](#changing-the-current-time) - [Changing the Time Zone](#changing-the-time-zone) - - [Using the date Command](#using-the-date-command) + - [Using the date Command](#using-the-date-command) - [Displaying the Current Date and Time](#displaying-the-current-date-and-time-1) - [Changing the Current Time](#changing-the-current-time-1) - [Changing the Current Date](#changing-the-current-date-1) - - [Using the hwclock Command](#using-the-hwclock-command) + - [Using the hwclock Command](#using-the-hwclock-command) - [Real-Time Clock and System Clock](#real-time-clock-and-system-clock) - [Displaying the Current Date and Time](#displaying-the-current-date-and-time-2) - [Setting the Date and Time](#setting-the-date-and-time-1) - - [Setting kdump](#setting-kdump) - - [Setting the Memory Reserved for kdump](#setting-the-memory-reserved-for-kdump) + - [Setting kdump](#setting-kdump) + - [Setting the Memory Reserved for kdump](#setting-the-memory-reserved-for-kdump) - [Parameter Formats of the Memory Reserved for kdump](#parameter-formats-of-the-memory-reserved-for-kdump) - - [Recommended Reserved Memory](#recommended-reserved-memory) - - [Disabling Network Drivers](#disabling-network-drivers) + - [Recommended Reserved Memory](#recommended-reserved-memory) + - [Disabling Network Drivers](#disabling-network-drivers) ## Setting the System Locale @@ -41,13 +41,13 @@ System locale settings are stored in the **/etc/locale.conf** file and can be mo To display the current locale status, run the following command: -```bash +```shell localectl status ``` Example command output: -```bash +```shell $ localectl status System Locale: LANG=zh_CN.UTF-8 VC Keymap: cn @@ -58,13 +58,13 @@ $ localectl status To display available locales, run the following command: -```bash +```shell localectl list-locales ``` You can check that by listing all Chinese locales with the following command: -```bash +```shell $ localectl list-locales | grep zh zh_CN.UTF-8 ``` @@ -73,13 +73,13 @@ zh_CN.UTF-8 To set the language environment, run the following command as the **root** user. In the command, _locale_ indicates the language type to be set. Run the **localectl list-locales** command to obtain the value range. Change the value as required. -```bash +```shell localectl set-locale LANG=locale ``` For example, if you want to use Simplified Chinese as the locale, run the following command as the **root** user: -```bash +```shell localectl set-locale LANG=zh_CN.UTF-8 ``` @@ -94,13 +94,13 @@ Keyboard layout settings are stored in the **/etc/locale.conf** file and can be To display the current keyboard layout settings, run the following command: -```bash +```shell localectl status ``` Example command output: -```bash +```shell $ localectl status System Locale: LANG=zh_CN.UTF-8 VC Keymap: cn @@ -504,5 +504,5 @@ echo mq-deadline > /sys/block/sd*/queue/scheduler Add **elevator=mq-deadline** to the kernel boot configuration file **grub.cfg**. The modification takes effect after a reboot. ```text -linux /vmlinuz-5.10.0-153.12.0.89.oe2203sp3.x86_64 root=/dev/mapper/openeuler-root ro resume=/dev/mapper/openeuler-swap rd.lvm.lv=openeuler/root rd.lvm.lv=openeuler/swap quiet crashkernel=512M elevator=mq-deadline +linux /vmlinuz-5.10.0-153.12.0.89.oe2203SP4.x86_64 root=/dev/mapper/openeuler-root ro resume=/dev/mapper/openeuler-swap rd.lvm.lv=openeuler/root rd.lvm.lv=openeuler/swap quiet crashkernel=512M elevator=mq-deadline ```