linux文件系统操作

来源:互联网 发布:java collection接口 编辑:程序博客网 时间:2024/06/05 03:53

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

[root@localhost ~]# pwd         /root[root@localhost ~]# lsaa   anaconda-ks.cfg  cangls       install.log.syslog  sh        test3.sh  tmpabc  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 ~]# lsaa   anaconda-ks.cfg  cangls  install.log         japan  test2.sh  test.shabc  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]# lscc[root@localhost file]# 
0 0