1
1

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.

macOS で,コマンドラインからゴミ箱を空にする際の備忘録

Posted at

目的

macOS で,コマンドラインからゴミ箱を空にする際の備忘録です

コード

macOS では、ゴミ箱は ~/.Trash にある

※ファイル削除は自己責任でお願いします。

(Finder --> アプリケーション --> ユーティリティ --> ターミナル起動)
$ cd ~/.Trash  # .Trashへ移動
$ du -h        # サイズ出力
$ rm -r *      # ファイル削除
$ ls           # ファイル削除されていることを確認

以上

参考

Macのゴミ箱フォルダの場所とそれをFinderのツールバー・サイドバーに登録する方法

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?