If there's one thing that Linux has it's flexibility. And this is true from the top down; from the desktop environment all the way down to the kernel. One area that offers a lot of tweaks, one that most new users aren't used to being able to tweak, is the file manager. This is true for both the GNOME file manager and the KDE file manager. The GNOME file manager is Nautilus. I've written about it before here on Ghacks (see Nautilus-related content on Ghacks) and I thought I should show you some further explorations of one of the strongest file managers for the Linux desktop.
In this article I will show you how to deal with such issues as handling media, handling the deletion of files, browsing Nautilus as the root user, and maybe more. Read on Macduff!
If you open up Nautilus to any of your folders that contain media and double click on any of those files, most likely Nautilus will ask you what to do with that file (unless you've already set a default application for that file type). Did you know, however, that you can instruct Nautilus what to do with just about any media type you can think of? Sure! Here's what you need to do:
That's it. You will notice, from the drop downs, there are already applications pre-configured to handle certain media types. If you don't see the application you want to use just select Open with other application and then (in the new window) navigate to the executable for the application you want to use (usually in /usr/bin).
Now when you double click on of those media types the action you have configured will occur.
Have you noticed, if you right-click a file within Nautilus, your only option for deleting a file is to send it to the Trashcan? What if you KNOW you want that file gone (and not saved for later un-deletion)? Well, that is not a problem. You can easily add a Delete option to your right-click action menu. To do this click Edit > Preferences and then, from the Behavior tab, check the box for Include a Delete command that bypasses Trash. After you have done that, click Close on the Preferences window and now, when you right-click a file, you will see a Delete entry.
Open a root user Nautilus window
There are times you just need the power of root - even in your file manager. By default the only way to do this is to open up a terminal window and issue the nautilus command with either sudo or after you have su'ing to the root user. That is not the case. Here's what you do:
1. Open up a terminal window.
2. Issue the command sudo nano /usr/share/applications/Nautilus-root.desktop
3. Add the following to that file:
Name=File Browser (Root)
Comment=Browse the filesystem with the file manager
Exec=gksudo "nautilus --browser %U"
Save that file and then click Applications > System Tools > File Browser (Root) and (after entering the root user password) you will have a Nautilus browser open as the root user! Handy.
The configurations you can undertake with the Nautilus file manager seem limitless. In this article you have seen three such configurations, but you know there are plenty more where that came from. I hope these three tips have made your Linux file browsing much easier.
Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.
We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.
If you like our content, and would like to help, please consider making a contribution:
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.