xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

The Filesystem Hierarchy Standard of Linux

linux directory

https://zhuanlan.zhihu.com/p/23862856

https://www.cyberciti.biz/tips/description-of-linux-file-system-directories.html

Linux 如何一次切换到 home 目录

相对路径 & 绝对路径

cd ./ 代表当前目录
cd ../ 代表上级目录

cd ~ 当前用户的根目录
cd / 系统的根目录

$ cd ~
$ pwd
# /Users/xgqfrms-mbp

$ cd / 
$ ls
# Applications Users cores  home  sbin var  Library Volumes dev opt  tmp System bin  etc private usr

#  etc, usr, home, Users

# 切换到 etc 并打开 hosts 文件
$ cd ../../etc
$ cd /etc && cat hosts
$ cd /etc && code hosts

$ cd /etc && sudo vim hosts
# :wq!

# php, nginx (created: 2020.08.08)
127.0.0.1 www.webfullstack.xyz 

refs


Flag Counter

©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


原文地址:https://www.cnblogs.com/xgqfrms/p/12054804.html