Open command window here: Difference between revisions
Jump to navigation
Jump to search
Command Prompt/Terminal ⇋ File Explorer (OS: Win
Cygwin window ⇋ File Explorer (OS: Win
Terminal window ⇋ Finder (OS: macOS
mNo edit summary |
|||
| Line 26: | Line 26: | ||
== Terminal window ⇋ Finder (OS: {{Mac}}) == | == Terminal window ⇋ Finder (OS: {{Mac}}) == | ||
=== Open a Command Terminal from the current Finder directory === | === Open a Command Terminal from the current Finder directory === | ||
* {{Gd}} [http://zipzapmac.com/Go2Shell Go2Shell - ZipZapMac] ([https://itunes.apple.com/tw/app/go2shell/id445770608?l=zh&mt=12 Go2Shell:在 Mac App Store 上的 App]) | * {{Gd}} [https://blog.gtwang.org/mac-os-x/open-terminal-here-in-mac-os-finder/ Mac OS 在 Finder 的目前目錄中開啟終端機 - G. T. Wang] | ||
* [https://gist.github.com/dragon788/34e9a9945b70dfcc49c6b9f5a202e43c Applescript to launch iTerm2 Version 3+ from OS X Finder via keyboard shortcut or Toolbar] | |||
* [http://zipzapmac.com/Go2Shell Go2Shell - ZipZapMac] ([https://itunes.apple.com/tw/app/go2shell/id445770608?l=zh&mt=12 Go2Shell:在 Mac App Store 上的 App]) | |||
* [https://github.com/jbtule/cdto GitHub - jbtule/cdto: Finder Toolbar app to open the current directory in the Terminal (or iTerm, X11)] | * [https://github.com/jbtule/cdto GitHub - jbtule/cdto: Finder Toolbar app to open the current directory in the Terminal (or iTerm, X11)] | ||
=== Open a Finder from the current Command Terminal directory === | === Open a Finder from the current Command Terminal directory === | ||
Revision as of 18:32, 24 November 2017
Quick to open the command prompt/terminal window.
Command Prompt/Terminal ⇋ File Explorer (OS: Win
)
Open a Command Prompt/Terminal from the current File Explorer directory
(1) Press Keyin alt + d to switch to the path bar of file explorer. (2) Enter cmd in the PATH bar and press ENTER key to open the console window. Tested on Windows 7, 8, 10.[1][2]
- cmdhere powertoy for windows xp
- create the cmd.exe shortcut ( c:\windows\system32\cmd.exe ) and set the start location manually
Open a File Explorer from the current Command Prompt/Terminal directory
- Keyin explorer . on the command prompt, it will open the current folder in the file explorer
- Keyin explorer .. on the command prompt, it will open the upper folder in the file explorer
Cygwin window ⇋ File Explorer (OS: Win
)
Open a Cygwin window from the current File Explorer directory
- (1) Go to your "Send To" folder: C:\Users\<your_user_name>\AppData\Roaming\Microsoft\Windows\SendTo (2) Create a shortcut having this in the Target field: C:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico C:\cygwin64\bin\bash.exe -l -c "cd \"$0\" ; exec bash"[4]
Open a File Explorer from the current Cygwin directory
- Keyin explorer "$(cygpath -w .)" on the Cygwin command, it will open the current folder in the file explorer[5]
- Keyin explorer "$(cygpath -w ~)" on the Cygwin command, it will open the Cygwin user home folder e.g. C:\cygwin64\home\User in the file explorer [6]
Terminal window ⇋ Finder (OS: macOS
)
Open a Command Terminal from the current Finder directory
Mac OS 在 Finder 的目前目錄中開啟終端機 - G. T. Wang- Applescript to launch iTerm2 Version 3+ from OS X Finder via keyboard shortcut or Toolbar
- Go2Shell - ZipZapMac (Go2Shell:在 Mac App Store 上的 App)
- GitHub - jbtule/cdto: Finder Toolbar app to open the current directory in the Terminal (or iTerm, X11)
Open a Finder from the current Command Terminal directory
- Keyin open . on the terminal prompt, it will open the current folder in the finder
- Keyin open .. on the terminal prompt, it will open the upper folder in the finder
Further reading
References
- ↑ Quickly Open a Command Prompt from the Windows Explorer Address Bar.
- ↑ Windows 7:在命令提示字元視窗中快速切換路徑 @ 學不完.教不停.用不盡 :: 痞客邦 PIXNET ::
- ↑ Open a File Browser From Your Current Command Prompt/Terminal Directory
- ↑ windows - Open Cygwin at a specific folder - Stack Overflow
- ↑ cygpath
- ↑ windows - Open Cygwin at a specific folder - Stack Overflow