mirror of
https://github.com/LCTT/TranslateProject.git
synced 2024-12-26 21:30:55 +08:00
80 lines
6.9 KiB
Markdown
80 lines
6.9 KiB
Markdown
|
[#]: subject: "Feel like a Linux wizard with the Thunar file manager"
|
||
|
[#]: via: "https://opensource.com/article/22/12/linux-file-manager-thunar"
|
||
|
[#]: author: "Seth Kenlon https://opensource.com/users/seth"
|
||
|
[#]: collector: "lkxed"
|
||
|
[#]: translator: " "
|
||
|
[#]: reviewer: " "
|
||
|
[#]: publisher: " "
|
||
|
[#]: url: " "
|
||
|
|
||
|
Feel like a Linux wizard with the Thunar file manager
|
||
|
======
|
||
|
|
||
|
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][1] 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.][2]
|
||
|
|
||
|
### 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.][3]
|
||
|
|
||
|
### 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 filesendingin**`*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][4] out there that can help you [organize, browse, and tag][5] 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.][6]
|
||
|
|
||
|
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.
|
||
|
|
||
|
--------------------------------------------------------------------------------
|
||
|
|
||
|
via: https://opensource.com/article/22/12/linux-file-manager-thunar
|
||
|
|
||
|
作者:[Seth Kenlon][a]
|
||
|
选题:[lkxed][b]
|
||
|
译者:[译者ID](https://github.com/译者ID)
|
||
|
校对:[校对者ID](https://github.com/校对者ID)
|
||
|
|
||
|
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||
|
|
||
|
[a]: https://opensource.com/users/seth
|
||
|
[b]: https://github.com/lkxed
|
||
|
[1]: https://opensource.com/article/19/12/xfce-linux-desktop
|
||
|
[2]: https://opensource.com/sites/default/files/2022-09/thunarfilemanager.png
|
||
|
[3]: https://opensource.com/sites/default/files/2022-09/thunar-side-panel.png
|
||
|
[4]: https://opensource.com/life/16/5/how-use-digikam-photo-management
|
||
|
[5]: https://opensource.com/life/16/4/how-use-darktable-digital-darkroom
|
||
|
[6]: https://opensource.com/sites/default/files/2022-09/thunar-bulk-rename.png
|