您的位置:首页 > 运维架构 > Linux

linux文件系统操作

2015-06-14 21:50 363 查看
1.命令 pwd 查看当前目录

2.命令 ls 查看当前目录下的文件

[root@localhost ~]# pwd
/root
[root@localhost ~]# ls
aa   anaconda-ks.cfg  cangls       install.log.syslog  sh        test3.sh  tmp
abc  bols             install.log  japan               test2.sh  test.sh
[root@localhost ~]#


3.mkdir file 在当前目录下创建file文件夹

4.cd file 进入file文件夹。 cd - 快速返回到上一级目录

5.touch cc 在当前目录创建cc文件

[root@localhost ~]# mkdir file
[root@localhost ~]# ls
aa   anaconda-ks.cfg  cangls  install.log         japan  test2.sh  test.sh
abc  bols             file    install.log.syslog  sh     test3.sh  tmp
[root@localhost ~]# cd file
[root@localhost file]# pwd
/root/file
[root@localhost file]# touch cc
[root@localhost file]# pwd
/root/file
[root@localhost file]# ls
cc
[root@localhost file]#
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux