在MAC中使用终端切换到其他磁盘分区

切换分区需要使用cd /Volumes/

MacdeMacBook-Pro:/ mac$ cd /Volumes/
MacdeMacBook-Pro:Volumes mac$ ls
Macintosh HD    disk0s1
// 可以看到磁盘的两个分区
MacdeMacBook-Pro:Volumes mac$ cd Macintosh\ HD
MacdeMacBook-Pro:Macintosh HD mac$ ls
Applications    Volumes etc private Library bin home sbin
Network cert_override.txt nstaller.failurerequests  tmp
System cores java   usr  Users  dev net var
MacdeMacBook-Pro:Macintosh HD mac$ cd Users/
MacdeMacBook-Pro:Users mac$ ls
Shared  mac
MacdeMacBook-Pro:Users mac$ cd mac
MacdeMacBook-Pro:mac mac$ ls
Applications        Downloads       Music           Untitled.ipynb      untitled.txt
Desktop         Library         Pictures        anaconda3       百度云同步盘
Documents       Movies          Public          ipmsg.db
MacdeMacBook-Pro:Macintosh HD mac$ cd
MacdeMacBook-Pro:~ mac$ ls
Applications        Downloads       Music           Untitled.ipynb      untitled.txt
Desktop         Library         Pictures        anaconda3       百度云同步盘
Documents       Movies          Public          ipmsg.db
// 显然看出家目录就在mac目录

你可能感兴趣的:(在MAC中使用终端切换到其他磁盘分区)