5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac OS X ターミナルで別のボリュームへ移動するには??

Last updated at Posted at 2014-02-12

Mac OS X のターミナルでは、ls > list.txt のようなコマンドでカレントディレクトリ内のファイル名リストを出力できますが、対象ディレクトリに移動する前に躓いてしまいました。

対象ディレクトリが起動ディスク以外のボリュームだったのですが...

xxxxxx:~ username$ cd /volumes/"Macintosh HD 3"
-bash: cd: /Volumes/Macintosh: No such file or directory

▼「\」をスペースの前に挟むことで解決しました。

xxxxxx:/ username$ cd Volumes/
xxxxxx:Volumes username$ ls
Macintosh HD	Macintosh HD 2	Macintosh HD 3
xxxxxx:Volumes username$ cd Macintosh\ HD\ 3
xxxxxx:Macintosh HD 3 username$

##参考
changing the drive in terminal window http://forums.macrumors.com/showthread.php?t=710382

5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?