How to Open a Terminal in the Current Folder in Ubuntu

When working on software projects, editing configuration files, or managing server assets on Ubuntu, navigating to deep directory structures via the command line can be tedious. Typing long cd paths like cd ~/Documents/Projects/2026/ClientA/build/ inevitably leads to typographical errors. Ubuntu’s default Files manager (Nautilus) includes built-in contextual integration that allows you to launch a fully configured bash terminal directly inside whichever directory you are currently viewing.

Why Open Terminals from the File Manager?

Launching terminal sessions directly from graphical folder views bridges desktop ease with command-line power:

  • Eliminates Lengthy Path Traversal: Skips manual typing of complex folder hierarchies, spaces in directory names, and case-sensitive paths.
  • Instant Script Execution: Open terminal sessions right beside scripts, compiled binaries, or downloaded tarballs to execute terminal tools instantly.
  • Zero Path Confusion: Guarantees that commands such as git status, npm install, or python3 app.py run inside the exact targeted working directory.

Method 1: Right-Click Context Menu (Native GUI)

Ubuntu includes native context-menu terminal launching out of the box:

  1. Open the Files application (Nautilus) and browse to any folder on your system.
  2. Right-click anywhere on an empty, blank space between the file icons inside the folder canvas.
  3. From the pop-up context menu, select Open in Terminal.

A new GNOME Terminal window will immediately open with its active working directory already set to that specific folder location.

Method 2: Target a Specific Sub-Folder Without Entering It

If you see a sub-directory in your active list and want to launch a command-line prompt directly inside it:

  1. Locate the target folder icon in your active Files window.
  2. Right-click directly on the folder icon itself.
  3. Select Open in Terminal.

The terminal launches instantly inside the sub-folder path without forcing you to click into the directory first.

How to Restore “Open in Terminal” If It Is Missing

If you are using a minimal Ubuntu installation or a lightweight desktop flavour where the contextual menu option is absent, install the official Nautilus terminal extension:

  1. Press Ctrl + Alt + T to open a terminal.
  2. Execute the following apt package command:
sudo apt update && sudo apt install nautilus-extension-gnome-terminal

Restart the Files manager process to apply the extension immediately:

nautilus -q

Tip: You can also press Ctrl + L in the Files window to highlight the breadcrumb path, copy it with Ctrl + C, and paste it after a cd command in an existing terminal session.

Leveraging contextual terminal launching streamlines daily administrative tasks and significantly accelerates command-line workflows across Ubuntu.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.