Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you want to do it from command and by moving to trash you want to delete the file, you can use rm command.
If you are in Gnome, you can right click on the file and click Move to trash option.
Already I have checked with GNOME.I am able to perform this.I very curious to do the same thing through command.Hence already I have checked by using rm command.But its not moving to trash.
Those two ways will give completely different results: if from the CLI you did not previously install "libtrash" or equivalent, then running 'rm' will not put items in a "thrashcan" but delete them.
None I'm aware of. Sure you could replace 'rm' binary with a script that implements a thrashcan (search LQ, more than enough threads trying things the "bad" way) but it'll be and remain an abomination in more than one way (performance, package management, compatibility, error handling).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.