Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Terminal: Opening the current path in a window?

Tags:

Often times, I find myself navigating very deep into a directory and wanting to open the graphical window (nautilus) for various reasons. So the question is simple:

After doing,

cd sampledirectory   cd sampledirectory2  

How can I open this location in a GUI?

like image 352
Legend Avatar asked Feb 18 '10 05:02

Legend


People also ask

How do I open the current directory in terminal Windows?

Simply type in wt in the address bar and it will open the command prompt with the path to your current folder already set.

What identifies the path for the currently open folder in a window?

Using the Address Bar The Address bar, which is located at the top of File Explorer as shown below, displays the path of the currently selected folder.

What is open in window terminal?

Windows Terminal merges the Command Prompt, PowerShell, and Azure Cloud Shell into a single app. As such, you can open a tab for each of the three command-line tools and keep things tidy. You can also add additional Linux consoles to the Terminal.


2 Answers

I assume Gnome with Nautilus:

nautilus . 

To open in the current directory.

Replace nautilus with whichever File Manager you use (Dolphin, etc).

like image 193
Nick Presta Avatar answered Sep 24 '22 05:09

Nick Presta


The most portable way should be using freedesktop's xdg-utils xdg-open. For example

   $ xdg-open . 

this has the advantage of choosing from your desktop preferences the tool to open different file types, like for example

   $ xdg-open ~/Documents/mypresentation.odp 

or

   $ xdg-open ~/Pictures/mypic.png 
like image 44
Diego Torres Milano Avatar answered Sep 24 '22 05:09

Diego Torres Milano