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?
Simply type in wt in the address bar and it will open the command prompt with the path to your current folder already set.
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.
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.
I assume Gnome with Nautilus:
nautilus .
To open in the current directory.
Replace nautilus with whichever File Manager you use (Dolphin, etc).
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With