Linux file directory

pwd command, display the absolute path of the current working directory

pwd

ls instruction

Display directory or file

ls
显示当前目录所有的文件和目录,包括隐藏的
ls -a
有的以列表的方式显示信息
ls -l

Switch directory

cd
cd /home/
cd /root/
cd ../home
回到家目录
cd
cd ~
回到上级目录
cd ..
Published 48 original articles · Likes0 · Visits 282

Guess you like

Origin blog.csdn.net/qq_44971387/article/details/105309284