1
0

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 3 years have passed since last update.

cd: '/Users/xxx/.Trash/' is a rotten symlink を解決

Last updated at Posted at 2022-01-26

はじめに

Macのfish shell上で、ゴミ箱を見たくてcd ~/.Trash/すると、
cd: '/Users/xxx/.Trash/' is a rotten symlinkと叱られて
ディレクトリに遷移できないことがあります。

bashならcdは成功してディレクトリへの遷移はできるものの、
.Trashに遷移してからls叩くと、
Operation not permittedとやはり叱られます。

解決方法

システム環境設定
→セキュリティとプライバシー
→プライバシー
→フルディスクアクセス

この中にターミナルアプリを追加してチェックを入れればOK。

標準アプリの「ターミナル」の他に、
「iTerm」「Visual Studio Code」など、
ターミナル使うアプリをそれぞれ許可してやる必要があります。

CleanShot 2022-01-26 at 10.14.41@2x.png

これ自体は割と色んな所に書かれている設定方法ですが、
前者の「rotten symlink」のエラーメッセージでググっても気の利いた解説がないので、
全国のfish使いのググラビリティ向上のために一本書いておきました。

参考サイト

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?