snippetbashTip
trash — Move files and directories to the user trash folder. More information: <https://keith.github.io/xcod
Viewed 0 times
thecommandfilesanddirectoriesclimovetrash
macos
Problem
How to use the
trash command: Move files and directories to the user trash folder. More information: <https://keith.github.io/xcode-man-pages/trash.8.html>.Solution
trash — Move files and directories to the user trash folder. More information: <https://keith.github.io/xcode-man-pages/trash.8.html>.Move a file to the trash:
trash {{path/to/file}}Move multiple items or directories to the trash:
trash {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}Move files to the trash with verbose output:
trash {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}Display help:
trash {{[-h|--help]}}Code Snippets
Move a file to the trash
trash {{path/to/file}}Move multiple items or directories to the trash
trash {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}Move files to the trash with verbose output
trash {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}Display help
trash {{[-h|--help]}}Context
tldr-pages: osx/trash
Revisions (0)
No revisions yet.