一、重点概述
- 查看当前目录:<Huawei>pwd
- 显示当前目录下的文件信息:<Huawei>dir
- 查看文本文件的具体内容:<Huawei>more
- 进入vty视图:[Huawei]user-interface vty 0 4
- 修改用户当前界面的工作目录:<Huawei>cd
- 退出当前目录:<Huawei>cd ..
- 创建新的目录:<Huawei>mkdir
- 删除目录:<Huawei>rmdir
- 重命名文件:<Huawei>rename
- 删除文件:<Huawei>delete
- 复制文件:<Huawei>copy //copy 文件名 移动到的路径
- 移动文件:<Huawei>move //move 文件名 移动到的路径
二、实操演练
<Huawei>pwd
flash:
<Huawei>
<Huawei>mkdir NewTemp
Info: Create directory flash:/newtemp......Done
<Huawei>cd Ne
<Huawei>cd newtemp/
<Huawei>pwd
flash:/newtemp
<Huawei>cd ..
<Huawei>pwd
flash:
<Huawei>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Sep 08 2024 10:52:06 dhcp
1 drw- - Sep 08 2024 10:54:07 newtemp
2 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
3 -rw- 2,263 Sep 08 2024 10:51:57 statemach.efs
4 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
1,090,732 KB total (784,460 KB free)
<Huawei>cop
<Huawei>copy sslvpn.zip /NewTemp/sslvpn.zip
Error: Wrong file name "/newtemp/sslvpn.zip"
The file's name cannot include such characters as ~ * / \ : ' " ? < >
<Huawei>copy sslvpn.zip /NewTemp
Error: Wrong file name "/newtemp"
The file's name cannot include such characters as ~ * / \ : ' " ? < >
<Huawei>copy sslvpn.zip NewTemp
Copy flash:/sslvpn.zip to flash:/newtemp/sslvpn.zip? (y/n)[n]:y
1% complete
......
99% complete
100% complete
Info: Copied file flash:/sslvpn.zip to flash:/newtemp/sslvpn.zip...Done
<Huawei>mo
<Huawei>more
<Huawei>move portalpage.zip NewTemp
Move flash:/portalpage.zip to flash:/newtemp/portalpage.zip? (y/n)[n]:y
%Moved file flash:/portalpage.zip to flash:/newtemp/portalpage.zip.
<Huawei>cd newtemp
<Huawei>pwd
flash:/newtemp
<Huawei>dir
Directory of flash:/newtemp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
1 -rw- 828,482 Sep 08 2024 10:57:24 sslvpn.zip
1,090,732 KB total (783,648 KB free)
<Huawei>rename sslvpn.zip SSS.zip
Rename flash:/newtemp/sslvpn.zip to flash:/newtemp/sss.zip? (y/n)[n]:y
Info: Rename file flash:/newtemp/sslvpn.zip to flash:/newtemp/sss.zip ......Done
<Huawei>dir
Directory of flash:/newtemp/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 121,802 May 26 2014 09:20:58 portalpage.zip
1 -rw- 828,482 Sep 08 2024 10:57:24 sss.zip
1,090,732 KB total (783,648 KB free)
<Huawei>delete ss
<Huawei>delete sss.zip pr
<Huawei>delete sss.zip
Delete flash:/newtemp/sss.zip? (y/n)[n]:y
Info: Deleting file flash:/newtemp/sss.zip...succeed.
<Huawei>de
<Huawei>del
<Huawei>delete por
<Huawei>delete portalpage.zip
Delete flash:/newtemp/portalpage.zip? (y/n)[n]:y
Info: Deleting file flash:/newtemp/portalpage.zip...succeed.
<Huawei>cd ..
<Huawei>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 drw- - Sep 08 2024 10:52:06 dhcp
1 drw- - Sep 08 2024 10:59:53 newtemp
2 -rw- 2,263 Sep 08 2024 10:51:57 statemach.efs
3 -rw- 828,482 May 26 2014 09:20:58 sslvpn.zip
1,090,732 KB total (783,644 KB free)
<Huawei>rmdir new
<Huawei>rmdir newtemp/
Remove directory flash:/newtemp? (y/n)[n]:y
%Removing directory flash:/newtemp...Done!
<Huawei>