Home
Packages
Forums
Wiki
GitLab
Security
AUR
Download
コンテンツにスキップ
メインメニュー
メインメニュー
サイドバーに移動
非表示
案内
メインページ
目次
コミュニティに貢献
最近の出来事
おまかせ表示
特別ページ
交流
ヘルプ
貢献
最近の更新
最近の議論
新しいページ
統計
リクエスト
ArchWiki
検索
検索
表示
アカウント作成
ログイン
個人用ツール
アカウント作成
ログイン
ゴミの管理のソースを表示
ページ
議論
日本語
閲覧
ソースを閲覧
履歴を表示
ツール
ツール
サイドバーに移動
非表示
操作
閲覧
ソースを閲覧
履歴を表示
全般
リンク元
関連ページの更新状況
ページ情報
表示
サイドバーに移動
非表示
←
ゴミの管理
あなたには「このページの編集」を行う権限がありません。理由は以下の通りです:
この操作は、次のグループに属する利用者のみが実行できます:
登録利用者
。
このページのソースの閲覧やコピーができます。
[[Category:ソフトウェア一覧]] [[en:Trash management]] To prevent accidental deletion of files, you can use a trash can. To ensure compatibility between multiple applications, you can use software (CLI, GUI or Library) that follow the [https://specifications.freedesktop.org/trash-spec/trashspec-latest.html FreeDesktop.org's Trash specification]. {{Note| Some applications can use a trash can per filesystem (see the specification)}} {{Warning| When deleting files on another filesystem, usage of a trash can induce some latency because the files will be transferred between filesystems. In this case, you might want to use a implementation that create a trash folder per filesystem (See {{ic|Trash directories}} in the specification).}} == Trash creation == {{Expansion|Add other utilities}} * {{Pkg|glib2}} provides a {{ic|gio trash ''file...''}} command to move files into the trash, while {{ic|gio trash --empty}} empties the trash. See also "trash" in {{man|1|gio|COMMANDS}}. The {{Pkg|gvfs}} package is required to fully support trash management through the {{ic|gio trash}} command. * {{Pkg|kde-cli-tools}} provides a {{ic|kioclient5}} command that can be used as {{ic|kioclient5 move ''file'' trash:/}} to move {{ic|''file''}} to the trash. * {{App|bashtrash|Freedesktop-compliant trashcan implemented in Bash.|https://github.com/robrwo/bashtrash/blob/master/trash|{{AUR|bashtrash}}}} * {{App|shellDel|Freedesktop-compliant trashcan implemented in Shell script.|https://github.com/Jorengarenar/shellDel|{{AUR|shelldel}}}} * {{App|trash-cli|A command-line interface implementing [https://specifications.freedesktop.org/trash-spec/trashspec-latest.html FreeDesktop.org's Trash specification].|https://github.com/andreafrancia/trash-cli|{{Pkg|trash-cli}}}} * {{App|trashman|A Python trash manager.|https://github.com/Kwpolska/trashman|{{AUR|trashman}}}} * {{App|rmtrash|trash-put made compatible to GNUs rm and rmdir.|https://github.com/PhrozenByte/rmtrash|{{AUR|rmtrash}}}} * {{App|trash-d|drop-in replacement for GNU rm, focusing on compatibility and with much better performance, written in D.|https://github.com/rushsteve1/trash-d|{{AUR|trash-d}}}} == Trash space usage management == To prevent the trash can from using too much space, you can empty it yourself, or have a pruning policy === Software list === * {{App|autotrash|Tool to automatically purge old trashed files|https://github.com/bneijt/autotrash|{{AUR|autotrash}}}} === Criteria === {{Expansion|Add table with a list of criteria}} * make sure to have at least x MB of free space * delete files older than x days * only empty if you have less than x MB of free space (useful in combination of previous criteria) * maximum trash can size * file size * file type * original path === Automation === To automate emptying the trash can, you can use [[cron]], [[systemd/Timers]], or [[inotify]] (using inotify, only new deletion would trigger the trash can automation) == Troubleshooting == === Unable to find or create trash directory === ==== External drives ==== {{ic|/etc/fstab}} might not be set correctly. Note that {{ic|ID}} must be replaced by your own user id by {{ic|$ id}}. {{hc|/etc/fstab|2= # <device> <dir> <type> <options> <dump> <fsck> UUID=75667752-8b06-11ea-bc55-0242ac130003 /externalDrive ntfs-3g defaults,uid=ID 0 1 }} Make sure that the root directory of the drive contains {{ic|~/.Trash-1000/{expunged,files,info}}} and set relevant read permissions for the directory and sub-directory.
このページで使用されているテンプレート:
テンプレート:AUR
(
ソースを閲覧
)
テンプレート:App
(
ソースを閲覧
)
テンプレート:Hc
(
ソースを閲覧
)
テンプレート:Ic
(
ソースを閲覧
)
テンプレート:Man
(
ソースを閲覧
)
テンプレート:Note
(
ソースを閲覧
)
テンプレート:Pkg
(
ソースを閲覧
)
テンプレート:Warning
(
ソースを閲覧
)
ゴミの管理
に戻る。
検索
検索
ゴミの管理のソースを表示
話題を追加