华为VRP文件系统基础命令


1. 查看当前目录位置 ——pwd

2.显示当前目录下的文件信息 —— dir

3. 查看文本文件的具体内容 —— more

4. 修改用户当前界面的工作目录 —— cd 

5. 创建新的目录 —— mkdir

6. 删除目录 —— rmdir

7. 复制文件 —— cp

8. 移动文件 —— move

9. 重命名文件 —— rename 

10. 删除/永久删除文件 ——  delete /unreserved

11. 恢复删除的文件 —— undetele

12. 彻底删除回收站中的文件 ——   reset recycle-bin

13. 配置系统下次启动时使用的配置文件 —— startup saved-configuration

14. 清除下次启动时加载的配置文件—— reset saved-configuration

15. 修复存储设备 —— fixdisk       常见得存储设备: SDRAM、Flash、NVRAM、SD卡、U盘

16. 格式化存储设备 —— format 

 

从FTP服务器更新配置:

<RTA>dir
……
508,248 KB total (2,334 KB free)
<RTA>delete /unreserved flash:/ar2220E_v100r006c00.cc          // 删除本地配置文件,释放空间
……
<RTA>ftp 10.1.1.2                                 // 连接服务器
Trying 10.1.1.2 ...
Press CTRL+K to abort
Connected to 10.1.1.2.
220 FTP service ready.
User(10.1.1.2:(none)):huawei                          // 登陆用户
331 Password required for huawei.
Enter password:                                  // 密码
230 User logged in.
[ftp]get AR2220E-V200R007C00SPC600.cc                     // 下载文件

从TFTP服务器更新:

<RTA>tftp 10.1.1.2 get AR2220E-V200R003C00SPC600.cc

 

 指定下次启动文件:

<RTA>startup system-software AR2220E-V200R007C00SPC600.cc
Info: Succeeded in setting the software for booting system
<RTA>display startup 
MainBoard: 
 Startup system software:     flash:/ar2220E_V200R007C00SPC600.cc  
 Next startup system software:flash:/ar2220E_V200R007C00SPC600.cc
 Startup saved-configuration file:          NULL
 Next startup saved-configuration file:     NULL

 

重启生效:

<RTA>reboot 
Info: The system is now comparing the configuration, please wait.
Warning: All the configuration will be saved to the configuration file for the next startup, Continue?[Y/N]:n
System will reboot! Continue?[Y/N]:y

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM