Open current directory from terminal in Linux
![Open current directory from terminal in Linux](/content/images/size/w2000/2021/01/matus-karahuta-wSyPT55eSrs-unsplash.jpg)
There are multiple ways to achieve this purpose
nautilus . &
xdg-open .
My preferred way is the latter. I usually make xdg-open
's alias named open
to be able to use the same command in Mac OS.
To make the alias, add following entry to .bashrc
(or .zshrc
if you uses zsh)
alias open=xdg-open
Then, to open current (or any) directory, execute
open .
![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/v2/default-red.png)