linux基本命令-定位及文件操作命令

举例:[root@localhost~]#

定位及文件操作命令:

1、pwd:[root@localhost~]#pwd

      /root

2、cd:[root@localhost~]# cd /etc

          [root@localhost etc]# pwd 

          /etc

3、touch:[root@localhost~]#touch *

                [root@localhost~]#touch text

4、mkdir:[root@localhost~]#mkdir dirl

                [root@localhost~]#mkdir /home/dirl

5、cp:[root@localhost~]#cp -R /etc/apt  /tmp

6、mv:[root@localhost~]#mv text /home

            [root@localhost~]#mv text text.bak

7、rm:[root@localhost~]#rm text

           [root@localhost~]#rm -rf dir2

8、rmdir:[root@localhost~]#rmdir dirl

               [root@localhost~]#rrmdir -p dirl/linux

猜你喜欢

转载自www.cnblogs.com/zzker/p/12239775.html
今日推荐