第3章VRP 通用路由平台-3.1 文件操作

VRP (Versatile Routing Platform)通用路由平台是华为在通信领域多年的研究经验结晶,是华为所有基于IP/ATM构架的数据通信产品操作系统平台。运行VRP操作系统的华为产品包括路由器、局域网交换机、ATM交换机、拨号访问服务器、IP电话网关、电信级综合业务接入平台、智能业务选择网关,以及专用硬件防火墙等,核心交换平台基于IP或ATM。

1.显示当前目录

<R1>pwd
flash:

2.显示当前目录下文件

<S1>dir
Directory of flash:/
  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName 
    0  drw-              -  Jan 01 2023 02:10:26   dhcp
    1  -rw-        121,802  May 26 2014 09:20:58   portalpage.zip
    2  -rw-          2,263  Jan 01 2023 02:10:21   statemach.efs
    3  -rw-        828,482  May 26 2014 09:20:58   sslvpn.zip
1,090,732 KB total (784,464 KB free)

3.改变当前目录

<R1>cd dhcp
<R1>pwd
flash:/dhcp
<R1>cd /
<R1>pwd
flash:
<R1>cd .. #返回上一级目录

4.查看文本文件内容

<R1>more dhcp-duid.txt
*Huawei DHCP DUID*
*time* 2023-01-01 10:10:26
*version* 1
#DUID_LL: 0003000100E0FCB362FA
*end*

5.创建、删除目录

<R1>mkdir dsrw
Info: Create directory flash:/dhcp/dsrw......Done
<R1>rmdir dsrw
Remove directory flash:/dhcp/dsrw? (y/n)[n]:y
%Removing directory flash:/dhcp/dsrw...Done!

6.复制文件

<R1>copy flash:/dhcp/dhcp-duid.txt flash:/ 
Copy flash:/dhcp/dhcp-duid.txt to flash:/dhcp-duid.txt? (y/n)[n]:y
100%  complete
Info: Copied file flash:/dhcp/dhcp-duid.txt to flash:/dhcp-duid.txt...Done

7.重命名文件

<R1>rename flash:/dhcp-duid.txt dsrw.txt
Rename flash:/dhcp-duid.txt to flash:/dsrw.txt? (y/n)[n]:y
Info: Rename file flash:/dhcp-duid.txt to flash:/dsrw.txt ......Done

8.移动文件

<R1>move dsrw.txt flash:/dsrw
Move flash:/dsrw.txt to flash:/dsrw/dsrw.txt? (y/n)[n]:y
%Moved file flash:/dsrw.txt to flash:/dsrw/dsrw.txt.

9.删除文件

<R1>delete flash:/dsrw/dsrw.txt
Delete flash:/dsrw/dsrw.txt? (y/n)[n]:y
Info: Deleting file flash:/dsrw/dsrw.txt...succeed.

10.恢复删除文件

<R1>undelete flash:/dsrw/dsrw.txt
Undelete flash:/dsrw/dsrw.txt? (y/n)[n]:y
%Undeleted file flash:/dsrw/dsrw.txt.

11.彻底删除回收站中的文件(华为专用)

<R1>reset recycle-bin  flash:/dsrw/srw.txt
Squeeze flash:/dsrw/dsrw.txt? (y/n)[n]:y
Clear file from flash will take a long time if needed...Done.
%Cleared file flash:/dsrw/dsrw.txt.
© 版权声明
THE END
喜欢就支持一下吧
点赞11 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称

    请登录后查看评论内容