Terminal command for GUI command "Remove to trash"
I'm new to linux and I've found that in the GUI interface, the command "Remove to Trash" (in Fedora Core 2) places the file in the directory /root/trash (or whatever). However, in the terminal when I go to the trash directory, command ls (list) shows no files, and ll command also shows none. However, the GUI interface still shows the file existing in the trash directory (visual). It can be moved, manipulated, etc, but not in the terminal form.
Assuming that the GUI trash folder can be opened and the files restored back onto Desktop in this instance, then in the terminal, what are the commands to do this? (this being, restore. If the terminal doesn't show the files in the trash directory, basically, how can I get them to show, and be able to move back onto an area using the cp comand.)
Why is it that the file exists in GUI, but not in the terminal interface? If it's something along the lines of "Gui recognizes that the file was removed at a point", then what file or command tells the GUI interface that the file currently exists in trash and can be restored when moved? Can this command or file be accessed in terminal ( I would assume so, I'm just ignorant to the process).
One more thing, deleting a file in the terminal, command rm, removes it entirely. What is the equal alternative to it in GUI interface, so that the file is removed completely, not just "Removed to trash", stored in a trash directory, and still taking up space.
thanks, much appreciated.