15,026
edits
m (Planetoid 已移動頁面 CmdHere 至 Open command window here) |
(→OS: {{Win}}: + cygwin) |
||
| Line 14: | Line 14: | ||
<ref>[https://www.howtogeek.com/howto/15781/open-a-file-browser-from-your-current-command-promptterminal-directory/ Open a File Browser From Your Current Command Prompt/Terminal Directory]</ref> | <ref>[https://www.howtogeek.com/howto/15781/open-a-file-browser-from-your-current-command-promptterminal-directory/ Open a File Browser From Your Current Command Prompt/Terminal Directory]</ref> | ||
* Keyin {{kbd | key=explorer .. }} on the command prompt, it will open the upper folder in the file explorer | * Keyin {{kbd | key=explorer .. }} on the command prompt, it will open the upper folder in the file explorer | ||
=== Open a Cygwin window from the current File Explorer directory === | |||
[https://www.cygwin.com/ Cygwin] | |||
* (1) Go to your "Send To" folder: {{kbd | key=<nowiki>C:\Users\<your_user_name>\AppData\Roaming\Microsoft\Windows\SendTo</nowiki>}} (2) Create a shortcut having this in the Target field: {{kbd | key=<nowiki>C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd \"$0\" ; exec bash"</nowiki>}}<ref>[https://stackoverflow.com/questions/9637601/open-cygwin-at-a-specific-folder windows - Open Cygwin at a specific folder - Stack Overflow]</ref> | |||
=== Open a File Explorer from the current Cygwin directory === | |||
* Keyin {{kbd | key=<nowiki>explorer "$(cygpath -w .)"</nowiki>}} on the Cygwin command, it will open the current folder in the file explorer<ref>[https://cygwin.com/cygwin-ug-net/cygpath.html cygpath]</ref> | |||
* Keyin {{kbd | key=<nowiki>explorer "$(cygpath -w ~)"</nowiki>}} on the Cygwin command, it will open the Cygwin user home folder e.g. {{kbd | key=<nowiki>C:\cygwin64\home\User</nowiki>}} in the file explorer <ref>[https://stackoverflow.com/questions/9637601/open-cygwin-at-a-specific-folder windows - Open Cygwin at a specific folder - Stack Overflow]</ref> | |||
== OS: {{Mac}} == | == OS: {{Mac}} == | ||