今天不记得怎么进入Linux的根目录了,查询了下顺便复习下其他命令:

1.[root@localhost]#cd /usr 切换至根目录下的文件夹要加"/"

2.[root@localhost]#cd bin usr下的文件夹bin
3. [root@localhost]#cd /usr/bin 1和2两步也可以合并成3
4.[root@localhost]#cd / 切换至根目录
5.[root@localhost]#cd 切换至当前用户的目录
6.[root@localhost]#pwd 查看当前所处文件夹的完整路径

相关文章:

  • 2021-11-02
  • 2021-08-03
  • 2021-11-05
  • 2021-10-08
  • 2022-02-12
  • 2021-12-07
  • 2022-12-23
  • 2021-11-30
猜你喜欢
  • 2022-01-27
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
  • 2022-01-04
  • 2021-06-24
  • 2022-01-11
相关资源
相似解决方案