1 Star 0 Fork 5K

pyroix / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
ls.md 3.46 KB
一键复制 编辑 原始数据 按行查看 历史
NEEN 提交于 2021-03-12 17:59 . !197 Docs Update version 1.0.1

ls

Command Function

This command is used to display the content of a specified directory.

Syntax

ls [path]

Parameter Description

Table 1 Parameters

Parameter

Description

Value Range

path

If path is left blank, the content of the current directory is displayed.

If the path value is an invalid file name, the following failure message is displayed:

ls error: No such directory

If the path value is a valid directory, the content of this directory is displayed.

  • Left blank
  • A valid directory

Usage

  • This command can be used to display the content of the current directory.
  • This command can also display the size of a file.
  • The ls command with the proc directory passed cannot calculate the file size and 0 is displayed in the command output.

Example

Enter ls.

Output

Figure 1 Viewing content of the current directory

1
https://gitee.com/pyroix/docs.git
git@gitee.com:pyroix/docs.git
pyroix
docs
docs
master

搜索帮助