Empty trash linux8/2/2023 With this line we will move the document to our directory of the personal folder Documents, logically we will have to change the username for our user. Mv document / home / francisco / Documents With the command mv We will move them to where we want: To restore the elements that we want from the trash we will do it in two ways, or moving them to another directory or copying them. If we wanted delete folder, we would have to write rm -r: To withdraw from your remove completely a file or document we will use the command rm, for example, to delete the document we will write in the terminal: How to delete a document, file or directory 1 How to delete a document, file or directory.Now for list or view content that we have in the trash we will use the ls command:Īs we can see in the screenshot above, I only have three files created especially for this tutorial, so we can see a folder called binder, a document called document and another document called Untitled document. So to access from the terminal we will have to write: Now we have to know which route it is on the recycle bin of our operating system, and in this case, Ubuntu, we can find it in the route: Surely you are thinking that what is this for, since we can do everything from the Graphic interface of our system, and I have to tell you that it is indeed much easier to do it graphically, but I must also tell you that it is never too much to know how the terminal works, and what we are actually doing when we move, delete or restore a file or directory from the recycle bin.įirst of all, it will be to open a new terminal: Give your launcher a name, and enter the command trash-empty in the command field.In the following article I will show you how to manage the recycle bin from the terminal of our operating system Ubuntu. Scroll down to the bottom and press the little + sign Open Settings and find Keyboard shortcutsĢ.This means we can create keyboard shortcuts and map those to commands. One of the amazing things about Linux is that everything can be done in the terminal. Take that a step further and create a keyboard shortcut. To empty your trash, just type trash-empty. Now that the highly technical installation is complete you now have access to the trash-cli. Let all the stuff install and press Y at some point, or don't. Install trash-cli in the terminal by running: You can install trash-cli and then create a keyboard shortcut to create that satisfying experience you receive on Mac! But what if you forget and you end up with over 1GB of unused, forgotten about files? #savethefiles. Just remember to always Shift+Del and you're good to go. This will just zap those files like a bug swatter on the porch. There are two ways to delete files on Linux. Where was I? Oh yeah, back to deleting files. Sorry, got a little dark there for a moment. They just sit there, staring at you, wondering why you deleted them. With Linux, by default when you do a standard delete of a file, it stays in the trash can and won't go away. Something very satisfying with pressing Cmd+Shift+Delete and then watching things go bye-bye. One thing I like with Mac is the ability to delete and empty trash from keyboard shortcuts out of the box. I know, this is a very simple thing, but I am learning and you're just going to have to deal with it! Empty your Ubuntu Trash can using Keyboard Shortcuts!
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |