Managing the file system
The emergency shell provides some basic file system management commands for managing the files on the device's storage media. You can use these commands to manage the file system.
![]() | IMPORTANT:
| |
To manage the file system, execute the following commands in user view:
Task | Command | Remarks |
---|---|---|
Display files or folders. | dir [ /all ] [ file-url ] | N/A |
Create a folder on a storage medium. | mkdir directory | The parent folder must already exist. For example, to create folder flash:/test/mytest, the parent folder test must already exist on the Flash. The name for the new folder must be unique in the parent folder. |
Display the current path. | pwd | N/A |
Copy a file. | copy fileurl-source fileurl-dest | N/A |
Move a file. | move fileurl-source fileurl-dest | The destination folder must have enough space for the file. |
Display the contents of a file. | more file-url | N/A |
Permanently delete a file. | delete file-url | N/A |
Delete a folder. | rmdir directory | To delete a folder, first delete all files and child folders in the folder. |
Format a storage medium. | format storage-medium | N/A |