Hà Nội: NTT03, Line 1, Thống Nhất Complex, 82 Nguyễn Tuân, Thanh Xuân, Hà Nội. ● HCM: Số 31B, Đường 1, Phường An Phú, Quận 2 (Thủ Đức), TP HCM. ===> Đơn Vị Hàng Đầu Trong Lĩnh Vực Cung Cấp Thiết Bị Security - Network - Wifi - CCTV - Conference - Máy chủ Server - Lưu trữ Storge.
Danh mục sản phẩm

Manage File Directories

Configuration Condition

Before performing operations on file directories, ensure that:

  • The system has started normally.

Display the Information about a File Directory

By displaying the information about a file directory, you can view the details of the files in the specified directory.

Table 5-5 Displaying the Information about a File Directory

Step

Command

Description

Enter the file system configuration mode.

filesystem

-

Display the information about a directory.

dir [ path ]

Mandatory

Display the Current Working Path

By displaying the current working path, you can view the details of the current path.

Table 5-6 Displaying the Current Working Path

Step

Command

Description

Enter the file system configuration mode.

filesystem

-

Display the current working path.

pwd

Mandatory

Change the Current Working Path

By changing the current working path, you can switch over a user to the specified directory.

Table 5-7 Changing the Current Working Path

Step

Command

Description

Enter the file system configuration mode.

filesystem

-

Change the current working path.

cd path

Mandatory

Create a Directory

If you want to create a directory in the file system, perform this operation.

Table 5-8 Creating a Directory

Step

Command

Description

Enter the file system configuration mode.

filesystem

-

Create a directory.

mkdir directory

Mandatory

Delete a Directory

If you delete a directory through this operation, all sub-directories and files in the directory are deleted.

Table 5-9 Deleting a Directory

Step

Command

Description

Enter the file system configuration mode.

filesystem

-

Delete a directory.

rmdir directory

Mandatory

note


  • Exercise caution when deleting a directory, because the operation of deleting the directory may permanently delete all sub-directories and files in the directory, and the files cannot be recovered.