Ranger – A Text Based File Manager For Command Line Users

By | 05/09/2013

Graphical file managers are an integral part of everybody’s day-to-day computer work. Most of the users are happy using the default file manager and aren’t much bothered about exploring alternative file managers. But, when it comes to CLI file managers, users may well be interested in trying various available file managers before settling down with the best — that suits their needs. In this article, we will discuss/review Ranger – a command line based file manager.

ranger-main

NOTEAll the examples and instructions presented in this article are tested on Ubuntu 13.04.

Ranger – The Command Line File Manager

Ranger is an ncurses based command line file manager that has a simple and minimalistic user interface. It uses basic vi key bindings for navigation and is capable of previewing files and opening them with default programs.

How To Use It

Just type the command ranger on command line to execute this utility. Here is a snapshot of ranger when executed on my system from the directory /home/himanshu.

ranger-1

You can see that ranger displays directories, sub-directories and their contents in separate columns. For example, the left most column in the window shown above represents the three directories present in the /home directory of my system. Out of these three, the himanshu directory is currently selected.

The second column represents the subdirectories of the himanshu directory. Out of these, the subdirectory Pictures is currently selected. Similarly, the third column represents all the files present in the Pictures directory.

NOTE – You can use the left/right arrow keys to select a specific column and then use up/down arrow keys to navigate within that column.

Ranger uses default programs to display different types of files. For example, when I navigated to the third column shown the earlier screen-shot and pressed enter after selecting the file workspace_switcher.png, here is what showed up :

ranger-2

So you can see that ranger opened the file in an image viewer. Another feature of this file manager is that the files can be previewed within the file manager as soon as they are selected.

Here is an example screen-shot :

ranger-3

So you can see that as soon as the file CMS was selected, a preview of its contents was displayed on right hand side of the window.  If it is desired to read the complete file, just hit the right arrow and the file will be opened in vi/vim editor. Quit the vi/vim editor using :q to come back to file manager.

NOTE – Preview of Images requires some dependencies to be fulfilled. For more information on this, read the Dependencies section here.

Here are some tips regarding the usage of ranger :

  • Select a file, press y to copy it and then navigate into the destination folder and then press p to paste.
  • Type :delete to delete the currently selected file.
  • Use ? to open the man page of ranger from within the file manager and press q to come back to the file manager.
  • Being ncurses based, the up-down scroll can be easily done through mouse.

Download/Install

Here are some important links related to ranger file manager :

I downloaded and installed this utility through command line through apt-get. Ubuntu users can also use Ubuntu Software Centre to download and install this utility. The version used for this review was 1.5.4-1.

Download and installation completed smoothly without any problems.

Pros

  • Easy navigation
  • Minimalistic UI
  • Control using vi/vim style commands

Cons

  • Good only for basic file management operations
  • Preview features requires dependencies to be fulfilled

Conclusion

Ranger is a fine utility that does what is promises to do. I would recommend this utility to those users who work on servers (containing no GUI). If you spend a lot of time on command line and are looking for a good command line file manager, Ranger could be a good option.. If your expectations aren’t too high, ranger should not disappoint you.

5 thoughts on “Ranger – A Text Based File Manager For Command Line Users

  1. o_O

    Better:
    - install KDE
    - use F4 to open file manager from the terminal (and terminal from the file manager) at the current location

    Gnome/Unity/GTK:
    0

    KDE:
    9001 and counting

    Reply
  2. ElectricPrism

    Very Cool, I love how there are a number of CLI tools in linux that let you perform basic functions intuitively without a GUI. This app is definitely going into my bookmarks and my with Aptitude, Nano and LYNX.

    Reply
  3. Ricardo

    Nice, but I should also recommend the fabulous Midnight Commander, a two panel file manager inspired on the venerable Norton Commander/Volkov Commander.

    Check it out here: http://www.midnight-commander.org/

    Cheers.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *