Recently I have been covering some of the lighter weight file managers for the Linux operating system. We've seen PCMan File Manager and emelFM2 covered recently. I've also touched on Thunar numerous times. All of these file managers have two things in common: They are fast and they have GUIs. Today's file manager shares the speed, but not the GUI. This file manager is vifm. If you know your Linux you can probably assume the "vi" is associated with one of the most popular Linux editors, vi. That assumption is correct.
The vifm file manager is an ncurses-based file manager with vi keybindings. So if you are used to vi, you will have no problems using vifm. Now vifm is not heavily developed. In fact, the last release was August 7, 2009. But it's still a worthy file manager for those looking for more text-based management tools. In this article, I will introduce you to one of the best text-based file managers.
The vifm file manager can move around your file system hierarchy, copy files, delete files, copy files, paste files, search...and that's about it. What more do you really need from a file manager? But best of all, vifm does this all quickly and efficiently. Now, let's install and use.
Naturally we will be installing from command line. To do this in an apt-get based distribution (such as Ubuntu or Debian), you would do the following:
In an rpm (or yum) based distribution (such as Fedora) you could install like so:
You are now ready to use vifm.
You open vifm by enter the command vifm from within the terminal window. When you open the file manager you will see a two-paned window (see Figure 1). What you see highlighted is what is currently active. So in the case of Figure 1 the ../ is active. The ../ string of characters means go to the parent directory. So if you hit enter while that is selected you will go to the parent directory of the current directory (in the case of Figure 1 that would be /home/).
To move up and down the directory hierarchy you use the up and down arrow keys. To move back and forth between the panes you use the Tab key.
As you would expect, vifm works similarly to the vi editor - it has key combinations to take care of tasks. The most useful of these are:
So, let's say you want to copy a file in one directory and paste it into another. Here's the steps for that process:
It's actually quite simple.
When you want to quit vifm you have to go into command mode (just like vi) and hit the ":" key, type quit, and hit Enter. And, like any good Linux tool, you can get more help with vifm by typing :help.
If you need a text based file manager, you can't go wrong with vifm. Granted you will have to learn a new set of key combinations (unless you're already used to vi), but the speed and efficiency of vifm makes up for the few keystrokes you will have to learn.Advertisement
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.