Feel like a Linux wizard with the Thunar file manager

Feel like a Linux wizard with the Thunar file manager
Seth Kenlon
Sat, 12/03/2022 – 03:00

Computers are fancy filing cabinets, full of virtual folders and files waiting to be referenced, cross-referenced, edited, updated, saved, copied, moved, renamed, and organized. In this article, I’ll take a look at a file manager for your Linux system.

The XFCE desktop is well-known and respected for its careful and methodical development cycle. It’s actively maintained and has continued to evolve over the years, its focus tends to be on delivering a consistent experience with just the right amount of new features. It’s a pleasure to use XFCE on everything from the old computer you’ve repurposed as a home server to the new PC you’ve just built and are too greedy to waste GPU cycles on fancy desktop effects. XFCE is a budget desktop that doesn’t make you skimp on experience, and its file manager exemplifies that.

Linux Thunar file manager

The Thunar file manager is a lightweight file manager based on the GTK toolkit. If you’re running GNOME already, you have most of what you need to run Thunar already installed. If you’re not running GNOME, you probably still have most of what you need to run Thunar, because much of what Thunar uses is part of a typical Linux install.

The visual design of Thunar is, like much of XFCE, “normal.” By that, I mean it’s exactly what you’d expect from a file manager: the side pane on the left contains common places you use often, and the pane on the right lists the files and folders on your system.

Image of the Thunar file manager.

(Seth Kenlon, CC BY-SA 4.0)

Side pane

The panel on the left contains the default folders of a conventional POSIX system: Desktop, Documents, Downloads, Music, Pictures, Videos, and so on. It also has a slot for removable devices, such as USB drives and SD cards. In addition, it has a place for Network locations, in the event that you interact with a remote computer or a file share.

Most options in Thunar are provided through its main menu, and that includes the option to change the side pane to a tree view. This view displays common places in an expandable list so you can collapse an entry you’re not using at the moment.

Image of a side panel in Thunar.

(Seth Kenlon, CC BY-SA 4.0)

Menu

Much of Thunar’s power is accessible through its menu bar. Sure, there’s a right-click contextual menu, but you will find the most powerful functions in the main menu. From the menu, you can perform quick but meaningful actions.

  • Invert selection: Select one or more items, then go to the Edit menu and choose Invert selection. Everything you had selected is now unselected, and everything else in the directory is selected.

  • Select by pattern: Select files based on some combination of characters appearing in their names. For instance, type in jpg to select all files ending in *jpg, or *nix to select all files containing the contiguous letters nix.

  • Show hidden files: Sometimes you need to see the files you normally want out of sight.

  • Open terminal here: Open a terminal window with its working directory set to your location.

  • Make link: Make a symlink (sometimes called an “alias” or “shortcut”) of the selected file or folder.

Fast

The beautiful thing about Thunar, aside from its straight-forward simplicity, is how it defaults to immediately performing the action you’ve requested. There are file managers out there (including my personal favorite) that, at least without advanced knowledge of special shortcuts, interrupt a process in the interest of verification or clarification. Thunar only pauses when it absolutely needs feedback from you.

A great example is the Make link function in the Edit menu. In some file managers, when you create a symlink you’re asked first whether or not you want to make a symlink, and then maybe what you’d like to name the symlink, and maybe even where you want the symlink to be created. All of that’s really important information and results in a targeted and precise action. However, sometimes you don’t need precision. Sometimes you just want speed, which is why Thunar just makes the symlink. No questions asked. When you tell it to create a symlink, it creates a symlink, with a name prefixed with “link to”, in your current directory. If that’s not what you wanted the symlink to be named, then you can rename it. If that’s not where you want the symlink to exist, then you can relocate it. Your upfront investment is minimal, and you get results fast.

Bulk rename

Possibly Thunar’s greatest contribution to the desktop is its bulk renaming function. How many times have you come home from vacation with a hundred photos called some variation of IMG_2022-01-04_10-55-12.JPG, which you add to a thousand other photos with similarly meaningless names? There are lots of photo managers out there that can help you organize, browse, and tag those photos, but there’s nothing like a descriptive name to start out with. With Thunar, you can select hundreds of files, right-click, and select Rename for a bulk renaming interface.

Image of Thunar's bulk rename window.

(Seth Kenlon, CC BY-SA 4.0)

Imagine opening your ~/Pictures folder and seeing hundreds of photos with meaningful names! You probably don’t even dare, but with Thunar it’s actually possible!

Runic magic

It’s unclear whether Thunar is the product of mortal programmers or the magical denizens of Asgard. There’s a very high probability of the former, but there’s also the likelihood that you’ll feel like the latter when you use it. It’s a humble and simple file manager with a powerful feature set. It may even be a worthy replacement for your existing GNOME file manager, or at the very least worthy of being included in your dock. Install Thunar and wield its power.

It’s unclear whether Thunar is the product of mortal programmers or the magical denizens of Asgard.


Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.

Powered by WPeMatico

Author: dasuberworm

Standing just over 2 meters and hailing from о́стров Ратма́нова, Dasuberworm is a professional cryptologist, entrepreneur and cage fighter. When he's not breaking cyphers and punching people in the face, Das enjoys receiving ominous DHL packages at one of his many drop sites in SE Asia.

Share This Post On