In Windows 7 Git Bash, is there a way to explore the directory at the current location?

Multi tool use
Multi tool use
The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


In Windows 7 Git Bash, is there a way to explore the directory at the current location?



I would like to explore the folder in the Windows Explorer from the shell. I know a lot of people have been asking to Cmd here from a folder.



I'd like to do just the opposite and open a new window located at the current directory being browsed.





I think you need to clarify this a little bit, what do you want? Open up a new command line while browsing; or open up a browser while using command line?
– Umur Kontacı
Oct 23 '11 at 10:10





Why don't you just type ls and explore :)
– manojlds
Oct 23 '11 at 11:10


ls





explorer . is the answer I seek. Thank you all!
– Greg Kerstin
Oct 23 '11 at 11:25




explorer .





I use ls -la all the time
– Greg Kerstin
Oct 23 '11 at 11:29




ls -la





@GraphicAgenda make an alias for it so you can save some key strokes. I do lsa (as I too use it all the time).
– Ted
Jul 23 '14 at 23:10




4 Answers
4



To open Windows Explorer at the current folder, just enter:


explorer .





do you know if I type in finder . on a Mac it incur a new finder window?
– Greg Kerstin
Oct 23 '11 at 11:31


finder .





just try :) Never used Mac.
– Piotr Perak
Oct 23 '11 at 15:04





Discovered it is open . in the terminal
– Greg Kerstin
Oct 23 '11 at 23:16




open .





@GraphicAgenda open will open anything. You can open PDFs, excel, etc. Really nice command.
– sixtyfootersdude
Apr 11 '13 at 17:29





@sixtyfootersdude I use it open applications, like open -a [Application Name], favorite command
– MayorMonty
Oct 12 '16 at 1:48


open -a [Application Name]



Type start . - it will open Windows Explorer at the current location.


start .



The start command acts like a double click, so use it to open files too:


start


start index.html





this is weird. I type in "start" alone and it brings up another Cmd window. I like your answer as well.
– Greg Kerstin
Oct 23 '11 at 11:27





Add (.) after start
– Fil
Sep 14 '16 at 3:31





start [anything] will perform the same action that a double click would perform. I assume it's calling ShellExecute()
– Visser
Nov 30 '16 at 18:24


start [anything]


ShellExecute()



If you type cmd into to Location Bar, Windows will open up a command line within the folder you are browsing.


cmd





This is very helpful. Knowing this will keep me inside git-bash environment longer
– Greg Kerstin
Oct 23 '11 at 11:25





+1 very useful.How to exit from cmd. where can i learn more detail about Gitbash
– Gowri
Aug 23 '12 at 10:14







This is really awesome!
– Gorilla Moe
Oct 23 '13 at 13:23





bash.exe also work!
– Hlex
Dec 12 '15 at 5:20





Alt+D is the shortcut for selecting the Location Bar.
– Varaquilex
Mar 25 '16 at 1:42


Alt+D



If you're coming from Mac OS X or Linux background, you can also create an alias in your .bash_profile to use the open command as you would do on other *nix environments.


.bash_profile



Just add the following line to your ~/.bash_profile:


~/.bash_profile


alias open="explorer ."



Then:


~/.bash_profile



Then you can use the open command to open the current folder.


open






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

eNSMCVS thDkFygnqCH8AhobCR6 LTPyia,Qx5a,QOUfvcE,sxEdsa9bwQtr6ugmYABlX5YjcTI0,xF99VmgBCUSacVhrwZF ib4etHNnn
w BfZV ApcJcJXTV1WX34e,g9o4dwUAWQsaqbt1iNnoHH

Popular posts from this blog

Keycloak server returning user_not_found error when user is already imported with LDAP

PHP parse/syntax errors; and how to solve them?

415 Unsupported Media Type while sending json file over REST Template