同步操作将从 OpenHarmony/docs 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
The Shell provided by the OpenHarmony kernel supports commonly used commissioning commands, including those related to the system, files, networks, and dynamic loading. In addition, you can add custom commands to the shell of the OpenHarmony kernel to address your service needs.
System-related commands: querying information about system tasks, kernel semaphores, system software timers, CPU usage, and current interrupts
File-related commands: basic functions such as ls and cd
Network-related commands: querying the IP addresses of other devices connected to the development board, querying the IP address of the local device, testing the network connectivity, and setting the access point (AP) and station modes of the development board
For details about the process of adding commands, see Development Guidelines and Shell Command Programming Example.
Note the following when using the shell:
You can use the exec command to run executable files.
The shell supports English input in default mode. If you enter Chinese characters in the UTF-8 format, you can delete them only by pressing the backspace key for three times.
When entering shell commands, file names, and directory names, you can press Tab to enable automatic completion. If there are multiple completions, multiple items are printed based on the same characters they have. If more than 24 lines of completions are available, the system displays message "Display all num possibilities?(y/n)", asking you to determine whether to print all items. You can enter y to print all items or enter n to exit the printing. If more than 24 lines are printed after your selection, the system displays "--More--". In this case, you can press Enter to continue the printing or press q (or Ctrl+c) to exit.
The shell working directory is separated from the system working directory. You can run commands such as cd and pwd on the shell to perform operations on the shell working directory, and run commands such as chdir and getcwd to perform operations on the system working directory. Pay special attention when an input parameter in a file system operation command is a relative path.
Before using network shell commands, you need to call the tcpip_init function to initialize the network and set up the Telnet connection. By default, the kernel does not call tcpip_init.
You are not advised to run shell commands to perform operations on device files in the /dev directory, which may cause unexpected results.
The shell functions do not comply with the POSIX standards and are used only for commissioning.
NOTICE: The shell functions are used for commissioning only and can be enabled only in the Debug version (by enabling the LOSCFG_DEBUG_VERSION configuration item using menuconfig).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。