Zum Inhalt springen

Trash-put: Unterschied zwischen den Versionen

Aus Foxwiki
Die Seite wurde neu angelegt: „'''trash-put - Command''' - line trash utility == SYNOPSIS == '''trash''' [''OPTION''] ... [''ARGUMENTS''] ... '''trash-put''' [''OPTION''] ... [''ARGUMENTS''] ... == DESCRIPTION == Trash-cli package provides a command line interface trashcan utility compliant with the FreeDesktop.org Trash Specification. It remembers the name, original path, deletion date, and permissions of each trashed file. Files trashed from the home partition will be…“
 
K Dirkwagner verschob die Seite Trash-cli nach Trash-put
 
(8 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
'''trash-put - Command''' - line trash utility
'''trash-put''' - Commandline trash utility


== SYNOPSIS ==
== Beschreibung ==
'''trash''' [''OPTION''] ... [''ARGUMENTS''] ...
Trash-cli package provides a command line interface trashcan utility compliant with the FreeDesktop.org Trash Specification.
* It remembers the name, original path, deletion date, and permissions of each trashed file.


'''trash-put''' [''OPTION''] ... [''ARGUMENTS''] ...
== Installation ==
<syntaxhighlight lang="bash" highlight="1" line copy>
</syntaxhighlight>


== DESCRIPTION ==
== Aufruf ==
Trash-cli package provides a command line interface trashcan    utility compliant with the FreeDesktop.org Trash Specification. It remembers    the name, original path, deletion date, and permissions of each trashed    file.
<syntaxhighlight lang="bash" highlight="1-2" line>
trash [OPTION] ... [ARGUMENTS] ...
trash-put [OPTION] ... [ARGUMENTS] ...
</syntaxhighlight>


Files trashed from the home partition will be in either    $XDG_DATA_HOME/Trash or ~/.local/share/Trash/ (if $XDG_DATA_HOME is not    defined or empty).
=== Optionen ===
{| class="wikitable sortable options gnu big"
|-
! Unix !! GNU !! Parameter !! Beschreibung
|-
| -f || || || Silently ignore any files or directories that do not exist
|-
| -h || --help || || Do not print error messages, and do not return a nonzero status to the caller, because of any such nonexistent arguments
|-
| || --trash-dir= || TRASHDIR || Use TRASHDIR as the trash folder
|-
| -v || --verbose || || Explain what is being done
|-
| || --version || || Show the program's version number
|}


Files trashed from other partitions will be in one of the two    places:
=== Parameter ===
; Names of files or directories to move to the trash can.


- $top_dir/.Trash/$uid 
=== Umgebungsvariablen ===
=== Exit-Status ===
{| class="wikitable options col1center big"
|-
! Wert !! Beschreibung
|-
| 0 || Erfolg
|-
| >0 || Fehler
|}


- $top_dir/.Trash-$uid
== Anwendung ==
Files trashed from the home partition will be in
* $XDG_DATA_HOME/Trash or
* ~/.local/share/Trash/
*: if $XDG_DATA_HOME is not defined or empty


Where:
Files trashed from other partitions will be in one of the two places:
* $top_dir/.Trash/$uid
* $top_dir/.Trash-$uid


- $top_dir is the mount point of the volume containing the file to be removed
Where:
- $top_dir is the mount point of the volume containing the file to be removed
- $uid is the numeric ID of the deleting user


- $uid is the numeric ID of the deleting user
The first option $top_dir/.Trash/$uid works only when .Trash dir has the sticky bit set.
* The second option is used when the first is not viable.
 
<syntaxhighlight lang="bash" highlight="1" line copy>
trash-put foo
</syntaxhighlight>
 
=== Problembehebung ===
 
== Konfiguration ==
=== Dateien ===
{| class="wikitable options big"
|-
! Datei !! Beschreibung
|-
| ||
|-
| ||
|}
 
<noinclude>
 
== Anhang ==
=== Siehe auch ===
<div style="column-count:2">
<categorytree hideroot=on mode="pages">{{BASEPAGENAME}}</categorytree>
</div>
----
{{Special:PrefixIndex/{{BASEPAGENAME}}/}}
 
=== Dokumentation ===
; Man-Page
# [https://manpages.debian.org/stable/procps/pgrep.1.de.html prep(1)]
 
<!--
; Info-Pages
-->


The first option $top_dir/.Trash/$uid works only when .Trash dir    has the sticky bit set. The second option is used when the first is not    viable.
=== Links ===
==== Projekt ====
==== Weblinks ====


== ARGUMENTS ==
{{DEFAULTSORT:new}}
; Names of files or    directories to move to the trash can.
{{DISPLAYTITLE:new}}
:


== OPTIONS ==
[[Kategorie:new]]
; -f
: Silently ignore any files or directories that do not exist. Do not print      error messages, and do not return a nonzero status to the caller, because      of any such nonexistent arguments.
; -h, --help
: Show help message and exit.
; --trash-dir=TRASHDIR
: Use TRASHDIR as the trash folder.
; -v, --verbose
: Explain what is being done.
; --version
: Show the program's version number and exit.


== EXAMPLES ==
</noinclude>
$ trash-put foo  # trashes foo

Aktuelle Version vom 4. Oktober 2025, 16:48 Uhr

trash-put - Commandline trash utility

Beschreibung

Trash-cli package provides a command line interface trashcan utility compliant with the FreeDesktop.org Trash Specification.

  • It remembers the name, original path, deletion date, and permissions of each trashed file.

Installation

Aufruf

trash [OPTION] ... [ARGUMENTS] ...
trash-put [OPTION] ... [ARGUMENTS] ...

Optionen

Unix GNU Parameter Beschreibung
-f Silently ignore any files or directories that do not exist
-h --help Do not print error messages, and do not return a nonzero status to the caller, because of any such nonexistent arguments
--trash-dir= TRASHDIR Use TRASHDIR as the trash folder
-v --verbose Explain what is being done
--version Show the program's version number

Parameter

Names of files or directories to move to the trash can.

Umgebungsvariablen

Exit-Status

Wert Beschreibung
0 Erfolg
>0 Fehler

Anwendung

Files trashed from the home partition will be in

  • $XDG_DATA_HOME/Trash or
  • ~/.local/share/Trash/
    if $XDG_DATA_HOME is not defined or empty

Files trashed from other partitions will be in one of the two places:

  • $top_dir/.Trash/$uid
  • $top_dir/.Trash-$uid

Where: - $top_dir is the mount point of the volume containing the file to be removed - $uid is the numeric ID of the deleting user

The first option $top_dir/.Trash/$uid works only when .Trash dir has the sticky bit set.

  • The second option is used when the first is not viable.
trash-put foo

Problembehebung

Konfiguration

Dateien

Datei Beschreibung


Anhang

Siehe auch



Dokumentation

Man-Page
  1. prep(1)


Links

Projekt

Weblinks