LoginSignup
0
0

More than 5 years have passed since last update.

LinuxでMacのゴミ箱内のファイルを削除して見た

Posted at

やったこと

LPICの勉強中なので、とりあえずコマンドでなんでもやってしまおう活動をしております。
今回は単純にMacのゴミ箱を無性にコマンドで空にしたくなったので、やりました。

ゴミ箱の場所

terminal
$ find ~ -name "Trash"
$ ~/.Trash

とりあえずTrashっぽい名前だろうと思って調べたらビンゴした。

移動してみる

terminal
$ cd ~/.Trash
.Trash $ ls -la
total 48
drwx------   5 me  group    160  5 28 17:57 .
drwxr-xr-x+ 51 me  group   1632  5 28 17:34 ..
-rw-r--r--@  1 me  group  14340  5 28 17:57 .DS_Store
-rw-r--r--   1 me  group    229  5 22 10:16 myfunc.js
-rw-r--r--@  1 me  group   1087  5 24 16:40 ■アジェンダ

とりあえずGUIで確認した内容のファイルが確認できた。

削除ぉ!

terminal
.Trash $ rm ./*
.Trash $ ls -la
.Trash $ 

最後に

慣れればこっちの方が早いし、GUIへのモヤモヤも解消されそう

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