举例:[[email protected]~]#
定位及文件操作命令:
1、pwd:[[email protected]~]#pwd
/root
2、cd:[[email protected]~]# cd /etc
[[email protected] etc]# pwd
/etc
3、touch:[[email protected]~]#touch *
[[email protected]~]#touch text
4、mkdir:[[email protected]~]#mkdir dirl
[[email protected]~]#mkdir /home/dirl
5、cp:[[email protected]~]#cp -R /etc/apt /tmp
6、mv:[[email protected]~]#mv text /home
[[email protected]~]#mv text text.bak
7、rm:[[email protected]~]#rm text
[[email protected]~]#rm -rf dir2
8、rmdir:[[email protected]~]#rmdir dirl
[[email protected]~]#rrmdir -p dirl/linux
原文地址:https://www.cnblogs.com/zzker/p/12239775.html
时间: 2024-10-25 21:08:13