1e41f4b71Sopenharmony_ci# Toybox
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ciToybox is a lightweight collection of Linux command line utilities. It combines many common Linux command line utilities into a single executable file.
4e41f4b71Sopenharmony_ci
5e41f4b71Sopenharmony_ci## Prerequisites
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci### Usage 1
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci- Connect the device properly.
10e41f4b71Sopenharmony_ci- Run the **hdc shell** command to enter the command line execution mode.
11e41f4b71Sopenharmony_ci
12e41f4b71Sopenharmony_ci### Usage 2
13e41f4b71Sopenharmony_ci
14e41f4b71Sopenharmony_ci- Enter the application sandbox.
15e41f4b71Sopenharmony_ci
16e41f4b71Sopenharmony_ci> **NOTE**
17e41f4b71Sopenharmony_ci>
18e41f4b71Sopenharmony_ci>Due to permission control, if the commands are run in a process, directory, or file that is not authorized, the command execution fails.
19e41f4b71Sopenharmony_ci>
20e41f4b71Sopenharmony_ci>In the case of such a failure, check the authorization status. You can find the error information in the log.
21e41f4b71Sopenharmony_ci
22e41f4b71Sopenharmony_ci## Command Description
23e41f4b71Sopenharmony_ci
24e41f4b71Sopenharmony_ciToybox can be executed in either of the following ways:
25e41f4b71Sopenharmony_ci
26e41f4b71Sopenharmony_ci- Use **toybox cmd [arg...]**.
27e41f4b71Sopenharmony_ci- Create a symbolic link from cmd to Toybox and directly call cmd.
28e41f4b71Sopenharmony_ci
29e41f4b71Sopenharmony_ciA symbolic link has been created in the system. You can directly use the commands.
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci| Command| Parameter| Description|
32e41f4b71Sopenharmony_ci| :- | :- | :- |
33e41f4b71Sopenharmony_ci| --help | NA | Displays the command help.|
34e41f4b71Sopenharmony_ci| --long | NA | Displays all supported commands along with their respective installation path.|
35e41f4b71Sopenharmony_ci| NA | NA | Displays all supported commands.|
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci### Help Command
38e41f4b71Sopenharmony_ci
39e41f4b71Sopenharmony_ciFormat: help [-ah] [command]
40e41f4b71Sopenharmony_ci
41e41f4b71Sopenharmony_ci| Parameter| Description|
42e41f4b71Sopenharmony_ci| :- | :- |
43e41f4b71Sopenharmony_ci| command | Displays the command help.|
44e41f4b71Sopenharmony_ci
45e41f4b71Sopenharmony_ci| Option| Description|
46e41f4b71Sopenharmony_ci| :- | :- |
47e41f4b71Sopenharmony_ci| -a | Displays the help information about all commands.|
48e41f4b71Sopenharmony_ci| -h | Displays the help information in HTML format.|
49e41f4b71Sopenharmony_ci
50e41f4b71Sopenharmony_ci### Math Calculation and Random Number
51e41f4b71Sopenharmony_ci
52e41f4b71Sopenharmony_ci| Command| Description|
53e41f4b71Sopenharmony_ci| :- | :- |
54e41f4b71Sopenharmony_ci| factor     | Factors an integer.<br>usage: factor NUMBER... |
55e41f4b71Sopenharmony_ci| mcookie    | Generates a 128-bit strong random number.<br>usage: mcookie [-vV] |
56e41f4b71Sopenharmony_ci| uuidgen    | Creates and prints a new RFC4122 random UUID.<br>usage: uuidgen |
57e41f4b71Sopenharmony_ci
58e41f4b71Sopenharmony_ci### Terminal Operations
59e41f4b71Sopenharmony_ci
60e41f4b71Sopenharmony_ci| Command| Description|
61e41f4b71Sopenharmony_ci| :- | :- |
62e41f4b71Sopenharmony_ci| nohup | Runs a command independent of the terminal.<br>usage: nohup [COMMAND [ARGS...]] |
63e41f4b71Sopenharmony_ci| reset | Resets the terminal.<br>usage: reset |
64e41f4b71Sopenharmony_ci| clear | Clears the terminal.<br>usage: clear |
65e41f4b71Sopenharmony_ci
66e41f4b71Sopenharmony_ci### sh Logical Commands
67e41f4b71Sopenharmony_ci
68e41f4b71Sopenharmony_ci| Command| Description|
69e41f4b71Sopenharmony_ci| :- | :- |
70e41f4b71Sopenharmony_ci| false | Returns a non-zero value.<br>usage: false |
71e41f4b71Sopenharmony_ci| sh    | shell command interpreter.|
72e41f4b71Sopenharmony_ci| test  | Returns **true** or **false** by performing tests. If no parameter is carried, **false** is returned.<br>usage: test [-bcdefghLPrSsuwx PATH] [-nz STRING] [-t FD] [X ?? Y] |
73e41f4b71Sopenharmony_ci| true  | Returns zero.<br>usage: true |
74e41f4b71Sopenharmony_ci| yes   | Outputs lines repeatedly until it is killed. If no parameter is carried, **y** is returned.<br>usage: yes [args...] |
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ci### System Call Operations (Query Only)
77e41f4b71Sopenharmony_ci
78e41f4b71Sopenharmony_ci| Command| Description|
79e41f4b71Sopenharmony_ci| :- | :- |
80e41f4b71Sopenharmony_ci| hostname | Obtains the current host name.<br>usage: hostname [-bdsf] [-F FILENAME] [newname] |
81e41f4b71Sopenharmony_ci| nproc    | Prints the number of processors.<br>usage: nproc [--all] |
82e41f4b71Sopenharmony_ci| printenv | Prints environment variables.<br>usage: printenv [-0] [env\_var...] |
83e41f4b71Sopenharmony_ci| uname    | Prints system information.<br>usage: uname [-asnrvm] |
84e41f4b71Sopenharmony_ci| iotop    | Ranks processes by I/O.<br>usage: iotop [-AaKObq] [-n NUMBER] [-d SECONDS] [-p PID,] [-u USER,] |
85e41f4b71Sopenharmony_ci| env      | Sets the environment for command execution or lists environment variables.<br>usage: env [-i] [-u NAME] [NAME=VALUE...] [COMMAND [ARG...]] |
86e41f4b71Sopenharmony_ci
87e41f4b71Sopenharmony_ci### Time and Date
88e41f4b71Sopenharmony_ci
89e41f4b71Sopenharmony_ci| Command| Description|
90e41f4b71Sopenharmony_ci| :- | :- |
91e41f4b71Sopenharmony_ci| cal    | Prints a calendar.<br>usage: cal [[month] year] |
92e41f4b71Sopenharmony_ci| date   | Obtains the current date and time.<br>usage: date [-u] [-r FILE] [-d DATE] [+DISPLAY\_FORMAT] [-D  SET\_FORMAT] [SET] |
93e41f4b71Sopenharmony_ci| sleep  | Waits before exiting. The value can be a decimal. The optional suffix can be "m" (minute), "h" (hour), "d" (day), or "s" (second, default value).<br>usage: sleep DURATION... |
94e41f4b71Sopenharmony_ci| time   | Runs the command line and reports the real time, user time, and system time (in seconds). The real time is the wall clock time, the user time is the actual CPU time spend in user-mode, and the system time is the actual CPU time sped in the kernel.<br>usage: time [-pv] COMMAND [ARGS...] |
95e41f4b71Sopenharmony_ci| uptime | Displays the current time, how long the system has been running, the number of users, and the average system load in the past 1, 5, and 15 minutes.<br>usage: uptime [-ps] |
96e41f4b71Sopenharmony_ci| usleep | Pauses for a given number of microseconds.<br>usage: usleep MICROSECONDS |
97e41f4b71Sopenharmony_ci
98e41f4b71Sopenharmony_ci### Login User Operations (Query Only)
99e41f4b71Sopenharmony_ci
100e41f4b71Sopenharmony_ci| Command| Description|
101e41f4b71Sopenharmony_ci| :- | :- |
102e41f4b71Sopenharmony_ci| groups  | Prints the group to which the user belongs.<br>usage: groups [user] |
103e41f4b71Sopenharmony_ci| id      | Prints the user and group ID.<br>usage: id [-nGgru] [USER...] |
104e41f4b71Sopenharmony_ci| logname | Prints the current user name.<br>usage: logname |
105e41f4b71Sopenharmony_ci| who     | Prints information about logged in users.<br>usage: who |
106e41f4b71Sopenharmony_ci| whoami  | Prints the current user name.<br>usage: whoami |
107e41f4b71Sopenharmony_ci
108e41f4b71Sopenharmony_ci### Process Operations
109e41f4b71Sopenharmony_ci
110e41f4b71Sopenharmony_ciIn the case of hdc shell, only the **pidof**, **ps**, **watch**, and **xargs** commands are supported.<br>
111e41f4b71Sopenharmony_ciIn the case of an application sandbox, process operations can be performed only in the namespace of the current application.
112e41f4b71Sopenharmony_ci> **NOTE**
113e41f4b71Sopenharmony_ci>
114e41f4b71Sopenharmony_ci>If the commands listed below are run in a process that is not authorized, the command execution fails.
115e41f4b71Sopenharmony_ci
116e41f4b71Sopenharmony_ci| Command| Description|
117e41f4b71Sopenharmony_ci| :- | :- |
118e41f4b71Sopenharmony_ci| kill | Sends a signal to a process.<br>usage: kill [-l [SIGNAL] \| -s SIGNAL \| -SIGNAL] PID... |
119e41f4b71Sopenharmony_ci| killall | Sends a signal (**Term** by default) to all processes with the given name.<br>usage: killall [-l] [-iqv] [-SIGNAL \|-s SIGNAL ]  PROCESS\_NAME... |
120e41f4b71Sopenharmony_ci| pidof   | Prints the PIDs of all processes with the given name.<br>usage: pidof [-s] [-o omitpid[,omitpid...]] [NAME]... |
121e41f4b71Sopenharmony_ci| pkill   | Kills a process by process name.<br>usage: pkill [-fnovx]  [-SIGNAL\|-l SIGNAL] [PATTERN] [-G GID,] [-g PGRP,] [-P PPID,] [-s SID,] [-t  TERM,] [-U UID,] [-u EUID,] |
122e41f4b71Sopenharmony_ci| ps      | Lists processes.<br>usage: ps [-AadefLlnwZ] [-gG GROUP,] [-k FIELD,] [-o FIELD,] [-p PID,] [-t  TTY,] [-uU USER,] |
123e41f4b71Sopenharmony_ci| pwdx    | Prints the working directory of the process.<br>usage: pwdx PID... |
124e41f4b71Sopenharmony_ci| timeout | Runs a command in a child process and if the command execution is not complete within a time limit, sends a signal. The value of **DURATION** can be a decimal. The optional suffix can be "m" (minute), "h" (hour), "d" (day), or "s" (second, default value).<br>usage: timeout [-k DURATION] [-s SIGNAL] DURATION COMMAND... |
125e41f4b71Sopenharmony_ci| top     | Displays process information in real time.<br>usage: top [-Hbq] [-k FIELD,] [-o FIELD,] [-s SORT] [-n NUMBER] [-m LINES]  [-d SECONDS] [-p PID,] [-u USER,] |
126e41f4b71Sopenharmony_ci| iotop   | Displays process information in real time and ranks them by I/O.<br>usage: iotop [-AaKObq] [-n NUMBER] [-d SECONDS] [-p PID,] [-u USER,] |
127e41f4b71Sopenharmony_ci| watch   | Runs the specified commands at a given interval (specified by **-n**, in seconds) and displays the execution result. You can press **Q** to exit the command execution.<br>usage: watch [-teb] [-n SEC] COMMAND ARGS |
128e41f4b71Sopenharmony_ci| xargs   | Runs the command line one or more times, carrying parameters from the standard input device.<br>usage: xargs [-0prt] [-s NUM] [-n NUM] [-E STR]  COMMAND... |
129e41f4b71Sopenharmony_ci
130e41f4b71Sopenharmony_ci### Device Node Operations (Query Only)
131e41f4b71Sopenharmony_ci
132e41f4b71Sopenharmony_ci| Command| Description|
133e41f4b71Sopenharmony_ci| :- | :- |
134e41f4b71Sopenharmony_ci| df    | Displays the total, used, and free disk space of each file system passed in. If no parameter is carried, all loaded file systems are displayed.<br>usage: df [-HPkhi] [-t type] [FILESYSTEM...] |
135e41f4b71Sopenharmony_ci| du    | Displays the disk usage with files and directories.<br>usage: du [-d N] [-askxHLlmc] [file...] |
136e41f4b71Sopenharmony_ci| free  | Displays the total, available, and used amount of physical memory and swap space.<br>usage: free [-bkmgt] |
137e41f4b71Sopenharmony_ci| mount | Mounts a new file system to the directory. If no parameter is carried, the existing mounts are displayed.<br>usage: mount [-afFrsvw] [-t TYPE] [-o OPTION,] [[DEVICE] DIR] |
138e41f4b71Sopenharmony_ci
139e41f4b71Sopenharmony_ci### File Operations (Available for Files in the Current Application Sandbox Only)
140e41f4b71Sopenharmony_ci
141e41f4b71Sopenharmony_ci| Command| Description|
142e41f4b71Sopenharmony_ci| :- | :- |
143e41f4b71Sopenharmony_ci| base64    | Uses the Base64 algorithm for encryption and decryption.<br>usage: base64 [-di] [-w COLUMNS] [FILE...] |
144e41f4b71Sopenharmony_ci| basename  | Returns the non-directory portion of a path name after removing its suffix.<br>usage: basename [-a] [-s SUFFIX] NAME... \| NAME [SUFFIX] |
145e41f4b71Sopenharmony_ci| cat       | Copies (Concatenates) a file to the standard output device. If no file is specified, the command reads from the standard input device. "-" indicates a standard input device.<br>usage: cat [-etuv] [FILE...] |
146e41f4b71Sopenharmony_ci| chmod     | Changes the access mode of a file (recursively with -R).<br>usage: chmod [-R] MODE FILE... |
147e41f4b71Sopenharmony_ci| cksum     | Outputs the checksum, length, and file name of a file using 32 bit CRC algorithm. If no file is specified, the command reads from the standard input device. "-" indicates a standard input device.<br>usage: cksum [-IPLN] [FILE...] |
148e41f4b71Sopenharmony_ci| cmp       | Compares the contents of two files. (If only one file is specified, the command compares the file contents with the contents of the standard input device). You can specify whether to skip a certain number of bytes at the beginning.<br>usage: cmp [-l] [-s] FILE1 [FILE2 [SKIP1 [SKIP2]]] |
149e41f4b71Sopenharmony_ci| comm      | Reads the contents from **FILE1** and **FILE2** in sequence and outputs three text columns: lines only in FILE1; lines only in FILE2; and lines in both files. "-" indicates a standard input device.<br>usage: comm [-123] FILE1 FILE2  |
150e41f4b71Sopenharmony_ci| count     | Copies the standard input device to the standard output device and displays a simple progress indicator to the standard error output **stderr**.<br>usage: count |
151e41f4b71Sopenharmony_ci| cp        | Copies the contents from **SOURCE** to **DEST**. If there are multiple sources, **DEST** must be a directory.<br>usage: cp [--preserve=motcxa] [-adlnrsvfipRHLP] SOURCE...  [DEST] |
152e41f4b71Sopenharmony_ci| cpio      | Copies the contents into and out of the **cpio** archive in the format specified by **newc**.<br>usage: cpio -{o\|t\|i\|p DEST} [-v] [--verbose] [-F FILE] [--no-preserve-owner] [ignored: -mdu -H newc] |
153e41f4b71Sopenharmony_ci| crc32     | Outputs the CRC32 checksum of each file.<br>usage: crc32 [file...] |
154e41f4b71Sopenharmony_ci| cut       | Prints selected parts of lines from each file to the standard output device. Each selection list is separated by a comma and can be a number (counting from 1) or a dash-separated range (inclusive, where X- indicates from Xst byte to the end byte of a line, and -X indicates from the 1st byte to Xst byte of a line.) By default, the selection ranges are sorted and collated. You can the **-d** option to prevent that.<br>usage: cut [-Ds] [-bcCfF LIST] [-dO DELIM] [FILE...] |
155e41f4b71Sopenharmony_ci| dd        |  Converts and copies a file. It can be used to create disk mirroring, back up data, and convert character encoding.<br>usage: dd [if=FILE] [of=FILE] [ibs=N] [obs=N] [iflag=FLAGS] [oflag=FLAGS][bs=N] [count=N] [seek=N] [skip=N][conv=notrunc\|noerror\|sync\|fsync] [status=noxfer\|none] |
156e41f4b71Sopenharmony_ci| dirname   | Displays the directory portion of a path.<br>usage: dirname PATH... |
157e41f4b71Sopenharmony_ci| dos2unix  | Converts the newline format in a file from DOS "\\r\\n" to Unix "\\n". If no file is specified, the command reads from the standard input device. "-" indicates a standard input device.<br>usage: dos2unix [FILE...] |
158e41f4b71Sopenharmony_ci| echo      | Writes each parameter to the standard output device. Each parameter is separated by a space followed by a newline.<br>usage: echo [-neE] [args...] |
159e41f4b71Sopenharmony_ci| egrep     | Displays the lines that match a regular expression. If **-e** is not specified, the first parameter is the regular expression to match. If no file is specified (or the file name is "-"), the command reads the information from the standard input device. If a match is found, 0 is returned. If no match is found, 1 is returned. If an error occurs during the command execution, 2 is returned.<br>usage: egrep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS  PATTERN]... [-f REGFILE] [FILE]... |
160e41f4b71Sopenharmony_ci| expand    | Expands tabs to spaces according to tabstops.<br>usage: expand [-t TABLIST] [FILE...] |
161e41f4b71Sopenharmony_ci| fgrep     | Displays the lines that match a regular expression. If **-e** is not specified, the first parameter is the regular expression to match. If no file is specified (or the file name is "-"), the command reads the information from the standard input device. If a match is found, 0 is returned. If no match is found, 1 is returned. If an error occurs during the command execution, 2 is returned.<br>usage: fgrep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS  PATTERN]... [-f REGFILE] [FILE]... |
162e41f4b71Sopenharmony_ci| file      | Checks a file and describes its content type.<br>usage: file [-bhLs] [file...] |
163e41f4b71Sopenharmony_ci| find      | Finds a file in the directory. By default, "." is used for match, and all files are matched. If **-print** is specified, the command displays the path names of files that match.<br>usage: find [-HL] [DIR...] [<options>] |
164e41f4b71Sopenharmony_ci| fmt       | Reformats the input to a wordwrap of a given line length, preserves the existing indentation level, and writes it to the standard output device.<br>usage: fmt [-w WIDTH] [FILE...] |
165e41f4b71Sopenharmony_ci| grep      | Displays the lines that match a regular expression.<br>usage: grep [-EFrivwcloqsHbhn] [-ABC NUM] [-m MAX] [-e REGEX]... [-MS  PATTERN]... [-f REGFILE] [FILE]... |
166e41f4b71Sopenharmony_ci| gunzip    | Decompress a file. If no file is specified, the command decompresses the standard input device as a standard output device. After the command is successfully executed, the input file is deleted and replaced with a new file without the file name extension .gz.<br>usage: gunzip [-cfkt] [FILE...] |
167e41f4b71Sopenharmony_ci| head      | Copies the first line in a file to the standard output device. If no file is specified, the command reads from the standard input device. "-" indicates a standard input device.<br>usage: head [-n number] [file...] |
168e41f4b71Sopenharmony_ci| ls        | Lists the files or folders in the current directory.<br>usage: ls [-ACFHLRSZacdfhiklmnpqrstux1] [--color[=auto]] [directory...] |
169e41f4b71Sopenharmony_ci| lsattr    | Lists the file attributes on the Linux file system. The flag letters are defined in the chattr help.<br>usage: lsattr [-Radlv] [Files...] |
170e41f4b71Sopenharmony_ci| lsof      | Lists all open files that belong to the active processes, or lists the processes that use the listed file.<br>usage: lsof [-lt] [-p PID1,PID2,...] [FILE...] |
171e41f4b71Sopenharmony_ci| md5sum    | Calculates the hash of each input file. If no file is specified, the command reads from the standard input device. Each input file outputs a line of hash followed by a file name.<br>usage: md5sum [-bcs] [FILE]... |
172e41f4b71Sopenharmony_ci| mkdir     | Creates one or more directories.<br>usage: mkdir [-vp] [-m mode] [dirname...] |
173e41f4b71Sopenharmony_ci| mktemp    | Safely creates a new file **DIR/TEMPLATE** and prints its name.<br>usage: mktemp [-dqu] [-p DIR] [TEMPLATE] |
174e41f4b71Sopenharmony_ci| mv        | Moves or renames a file.<br>usage: mv [-fivn] SOURCE... DEST |
175e41f4b71Sopenharmony_ci| nl        | Displays a file with the number of lines.<br>usage: nl [-E] [-l #] [-b MODE] [-n STYLE] [-s SEPARATOR] [-v #] [-w WIDTH]  [FILE...] |
176e41f4b71Sopenharmony_ci| od        | Dumps data in octal/hexadecimal format.<br>usage: od [-bcdosxv] [-j #] [-N #] [-w #] [-A doxn] [-t acdfoux[#]] |
177e41f4b71Sopenharmony_ci| paste     | Merges corresponding lines from each input file.<br>usage: paste [-s] [-d DELIMITERS] [FILE...] |
178e41f4b71Sopenharmony_ci| patch     | Applies a diff file to one or more files.<br>usage: patch [-d DIR] [-i file] [-p depth] [-Rlsu] [--dry-run] |
179e41f4b71Sopenharmony_ci| pgrep     | Searches for processes. **PATTERN** is the extended regular expression to be checked against the command name.<br>usage: pgrep [-clfnovx] [-d DELIM] [-L SIGNAL] [PATTERN] [-G GID,] [-g  PGRP,] [-P PPID,] [-s SID,] [-t TERM,] [-U UID,] [-u EUID,] |
180e41f4b71Sopenharmony_ci| printf    | Uses the C printf syntax to format and print information based on the value of **Format**. (For cdeEfgGiosuxX, \\ is escaped to abefnrtv0, \\OCTAL, or \\xHEX.)<br>usage: printf FORMAT [ARGUMENT...] |
181e41f4b71Sopenharmony_ci| pwd       | Prints the working (current) directory.<br>usage: pwd [-L\|-P] |
182e41f4b71Sopenharmony_ci| readahead | Preloads a file to the disk cache.<br>usage: readahead FILE... |
183e41f4b71Sopenharmony_ci| readlink  | Prints what the symbolic link points to if no options are carried. If it is not a symbolic link, an error is returned.<br>usage: readlink FILE... |
184e41f4b71Sopenharmony_ci| realpath  | Displays the standard absolute path name.<br>usage: realpath FILE... |
185e41f4b71Sopenharmony_ci| rev       | Outputs each line reversely. If no file is specified, the command reads from the standard input device.<br>usage: rev [FILE...] |
186e41f4b71Sopenharmony_ci| rm        | Removes each parameter from the file system.<br>usage: rm [-fiRrv] FILE... |
187e41f4b71Sopenharmony_ci| rmdir     | Removes one or more directories.<br>usage: rmdir [-p] [dirname...] |
188e41f4b71Sopenharmony_ci| sed       | Stream editor that applies the edit script to the input line.<br>usage: sed [-inrszE] [-e SCRIPT]...\|SCRIPT [-f SCRIPT\_FILE]... [FILE...] |
189e41f4b71Sopenharmony_ci| seq       | Counts in ascending order from the beginning (specified by **first**) to the end (specified by **last**). If no parameter is carried, the default value is 1.  The parameter can be a negative number or a floating point number.<br>usage: seq [-w\|-f fmt\_str] [-s sep\_str] [first] [increment] last |
190e41f4b71Sopenharmony_ci| sort      | Sorts all lines of text from the input file (or standard input device) to the standard output device.<br>usage: sort [-Mbcdfginrsuz] [FILE...] [-k#[,#[x]] [-t X]] [-o FILE] |
191e41f4b71Sopenharmony_ci| split     | Copies input (or standard input device) data to a series of output (or "x") files with alphabetically increasing suffix (aa, ab, ac, ... az, ba, bb...).<br>usage: split [-a SUFFIX\_LEN] [-b BYTES] [-l LINES] [INPUT [OUTPUT]] |
192e41f4b71Sopenharmony_ci| stat      | Displays the status of a file or file system.<br>usage: stat [-tfL] [-c FORMAT] FILE... |
193e41f4b71Sopenharmony_ci| strings   | Displays printable strings in a binary file.<br>usage: strings [-fo] [-t oxd] [-n LEN] [FILE...] |
194e41f4b71Sopenharmony_ci| tac       | Outputs lines in reverse order.<br>usage: tac [FILE...] |
195e41f4b71Sopenharmony_ci| tail      | Copies the last line in a file to the standard output device. "-" indicates a standard input device.<br>usage: tail [-n\|c NUMBER] [-f] [FILE...] |
196e41f4b71Sopenharmony_ci| tar       | Creates, extracts, or lists files in a .tar file.<br>usage: tar [-cxt] [-fvohmjkOS] [-XTCf NAME] [FILE...] |
197e41f4b71Sopenharmony_ci| tee       | Copies the standard input device to each listed file, and also to the standard output device. The file name "-" is synonymous with the standard output device.<br>usage: tee [-ai] [FILE...] |
198e41f4b71Sopenharmony_ci| touch     | Update the access and modification time of each file to the current time.<br>usage: touch [-amch] [-d DATE] [-t TIME] [-r FILE] FILE... |
199e41f4b71Sopenharmony_ci| truncate  | Sets the length of the file, sparsely expanding if necessary.<br>usage: truncate [-c] -s SIZE file... |
200e41f4b71Sopenharmony_ci| uniq      | Reports or filters output duplicate lines in a file.<br>usage: uniq [-cduiz] [-w MAXCHARS] [-f FIELDS] [-s CHAR] [INFILE [OUTFILE]] |
201e41f4b71Sopenharmony_ci| unix2dos  | Converts the newline format from Unix "\\n" to DOS "\\r\\n". If no file is specified, the command reads from the standard input device. "-" is a synonym for standard input devices.<br>usage: unix2dos [FILE...] |
202e41f4b71Sopenharmony_ci| unlink    | Deletes a file.<br>usage: unlink FILE |
203e41f4b71Sopenharmony_ci| uudecode  | Decodes a file from the standard input device (or INFILE).<br>usage: uudecode [-o OUTFILE] [INFILE] |
204e41f4b71Sopenharmony_ci| uuencode  | Uuencode the standard input device (or INFILE) to the standard output device, with **ENCODE\_FILENAME** in the output.<br>usage: uuencode [-m] [INFILE] ENCODE\_FILENAME |
205e41f4b71Sopenharmony_ci| wc        | Counts the number of lines, words, and characters in the input.<br>usage: wc -lwcm [FILE...] |
206e41f4b71Sopenharmony_ci| which     | Search **\$PATH** for executable files that match the specified file name.<br>usage: which [-a] filename ... |
207e41f4b71Sopenharmony_ci| xxd       | Hexdumps a file to the standard output device. If no file is specified, the command reads from the standard input device.<br>usage: xxd [-c n] [-g n] [-i] [-l n] [-o n] [-p] [-r] [-s n] [file] |
208e41f4b71Sopenharmony_ci| zcat      |Decompress the file to the standard output device. It is similar to **gzip-dc**.<br> usage: zcat [FILE...] |
209