This is a simple Bash script named del that moves any file or folder to the Ubuntu default Trash folder (~/.local/
Introduction
This is a simple Bash script named del that moves any file or folder to the Ubuntu default Trash folder (~/.local/
Features
- Checks for the existence of the Trash folder and uses it for deleted files.
- Allows deletion of only one file at a time for safety.
- Check if a file with the same name already exists in the Trash folder.
- Appends a timestamp to filenames to resolve conflicts in the Trash folder.
Requirements
Ubuntu Desktop or similar GNOME-based Linux distributions.
Bash shell.
Installation
Save the script in a file, for example, del.sh.
Make it executable: chmod +x del.sh.
Optionally, move it to a directory in your PATH, e.g., sudo mv del.sh /usr/local/bin/del.
Usage
To delete a file, navigate to its folder in the terminal and use the del command:
del filename
View full history Series and milestones
trunk series is the current focus of development.