Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
4
Help us understand the problem. What is going on with this article?
@shingohry

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

More than 5 years have passed since last update.

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

4
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
4
Help us understand the problem. What is going on with this article?