Get A Terminal Embedded In Nautilus File Manager With Nautilus Terminal 3

Nautilus Terminal 3 embeds a terminal into Nautilus (Files, the default Gnome browser), similar to KDE's Dolphin file manager. The terminal automatically changes directories based on the user's navigation in the file browser.

This Nautilus extension is a re-implementation of the old Nautilus Terminal that was initially only available for Nautilus 2.x, and later 3.0 and 3.2, which should work with recent Nautilus versions.

Nautilus Terminal 3 in Ubuntu 18.04
Nautilus Terminal 3 in Ubuntu 18.04

Nautilus Terminal 3 can be toggled on/off using the F4 key and its initial behavior (if the terminal should be displayed or hidden when starting a new Nautilus window) can be set using Dconf Editor. The terminal can be resized using your mouse and also, the default height can be set using Dconf Editor.

Other Nautilus Terminal 3 features include:

  • Supports copy / paste using Ctrl+Shift+C / Ctrl+Shift+V (there's no copy / paste context menu though)
  • Supports drag & drop of files and folders on the terminal (it auto-completes the path of the dragged file or folder)
  • Uses the default shell for the user
  • Detects running process: if something is running in the terminal, the cd command is not sent to the shell
  • With version 3.3.0: the terminal can be display at the top or bottom of the Nautilus window

The tool does not yet support configuring the terminal appearance, but this is on the to do list.

How to install Nautilus Terminal 3 using a repository


On Fedora 32 or 31 you can install Nautilus Terminal 3 by using a Copr repository. Add it and install Nautilus Terminal 3:

sudo dnf copr enable tomaszgasior/mushrooms
sudo dnf install nautilus-terminal

Nautilus Terminal 3 has a PPA for Ubuntu 18.04, 18.10 and 19.04 (and Linux distributions based on this, like Pop!_OS), which you can add, and then install Nautilus Terminal 3, using:

sudo add-apt-repository ppa:flozz/nautilus-terminal
sudo apt update
sudo apt install nautilus-terminal

[Update] The PPA has not yet been updated for Ubuntu 20.04 or 20.10 (or Pop!_OS 20.04 / 20.10), but Nautilus Terminal does work with this new Ubuntu release. You can download the DEB packages directly from the PPA source, and install them on Ubuntu 20.04 or 20.10. For Ubuntu 20.04 / 20.10 (and Linux distributions based on it, like Pop!_OS), only download the python3-nautilus-terminal DEB package!

Nautilus Terminal 3 can also be installed using PIP, which works on any Linux distribution. For this you'll need pip , python-psutil, and the Nautilus Python bindings. 

How to install Nautilus Terminal 3 from source


For Linux distributions using python3-nautilus (e.g. Ubuntu 20.04 and 20.10):


Nautilus Terminal on Ubuntu 20.04; ignore my terminal color scheme, I know it's not exactly readable in this screenshot but I took it in a hurry

To install the packages mentioned above in Debian or Ubuntu 20.04 / Pop!_OS 20.04, use this command:

sudo apt install python3-pip python3-nautilus python3-psutil

Installing these packages differs from one Linux distribution to another, so search for and install them using your Linux distribution's package manager.

Then, no matter the Linux distribution you use, as long as it's using Nautilus with Python 3 (python3-nautilus), run pip to install (or upgrade from an older version) the Nautilus Terminal extension for your user:

python3 -m pip install --user --upgrade nautilus_terminal

For Linux distributions using nautilus-python with Python 2 (e.g. Ubuntu 19.10):


To install these packages in Debian or Ubuntu / Pop!_OS, use this command:

sudo apt install python-pip python-nautilus python-psutil

Installing these packages differs from one Linux distribution to another, so search for and install them using your Linux distribution's package manager.

Then, no matter the Linux distribution you use, as long as it's using Nautilus with Python 2 (nautilus-python is using Python 2), run pip to install (or upgrade from an older version) the Nautilus Terminal extension for your user:

python2 -m pip install --user --upgrade nautilus_terminal

Next, no matter the Python version for which you've installed this, after installing the extension you'll need to restart Nautilus:

nautilus -q

To configure Nautilus Terminal (such as setting the terminal to be hidden by default and only show it after you press F4, display the terminal at the bottom of the Nautilus window instead of the default top display, etc.) you can use Dconf Editor.

Nautilus Terminal 3 options dconf

Install Dconf Editor in Ubuntu or Debian using:

sudo apt install dconf-editor

Now you can change a few Nautilus Terminal settings by opening Dconf Editor and navigating to org > flozz > nautilus-terminal.

How to uninstall Nautilus Terminal 3


If Nautilus Terminal 3 was installed in Ubuntu by using its PPA, simply remove the installed package:

sudo apt remove nautilus-terminal

If Nautilus Terminal 3 was installed using PIP, remove it like this:

python2 -m pip uninstall nautilus_terminal

You may also need to restart Nautilus:

nautilus -q