比ping更強大的命令_製作更好,更漂亮但功能更強大的Windows命令列
比ping更強大的命令
I've blogged before, in fact in 2004, (!) that Windows is missing the text mode boat. There is a massive opportunity for a great, nay, awesome and pretty, command line on Windows. If someone cracks this problem, they're gonna be heroes.
實際上,我在2004年就寫過部落格(!) ,說Windows缺少文字模式boat 。 在Windows上有一個巨大的機會,可以提供一個很棒的,討厭的,很棒的,漂亮的命令列。 如果有人破解了這個問題,他們將成為英雄。
I love iTerm2 and its tabs, its font handling, its simple elegance. I want this on Windows. In 2011 I found Console2, and then in 2012 I moved to ConEmu, a great tabbed terminal for Windows. Even then, it's not "pretty." I love these guys, and the ConEmu is truly an amazing and configurable piece of software, but it was written by developers for developers. I have to change the fonts to Consolas for the main font and Segoe UI for the rest to make it tolerable. Am I being petty and focusing on looks? Absolutely. Gorgeous and functional software is why Mac companies like
我喜歡iTerm2及其標籤,字型處理,簡單優雅。 我想要在Windows上。 2011年,我找到了Console2 ,然後在2012年,我搬到了ConEmu,這是Windows的出色選項卡式終端。 即使那樣,它也不是“漂亮”的。 我喜歡這些人,ConEmu確實是一款了不起的可配置軟體,但是它是由開發人員為開發人員編寫的。 我必須將字型更改為Consolas作為主要字型,將Segoe UI更改為其餘字型,以使其可忍受。 我是個小人物,專注於容貌嗎? 絕對。 功能強大且功能強大的軟體是Mac之類的
Here's some command line utilities that augment and help - but don't yet complete save - the Windows Command Line.
以下是一些命令列實用程式,它們可以增強和幫助Windows命令列(但尚未完成儲存) 。
碰杯 (Clink)
I just learned about Clink and I'm hooked. It's hooked as well, directly into your cmd.exe window! *rimshot*
我剛剛瞭解了Clink ,因此迷上了。 它也直接掛在您的cmd.exe視窗中! * rimshot *
We all know that there's Cygwin for a bash-like experience in Windows, but Click is a small utility that brings some of those productivity and editing features into cmd.exe directly!
我們都知道Cygwin可以在Windows中提供類似bash的體驗,但是Click是一個小型實用程式,可以將其中的某些生產力和編輯功能直接帶入cmd.exe!
Bash-like line editing from GNU's Readline library. Read more on Readline's keyboard shortcuts.
來自GNU Readline庫的Bash式行編輯。 在Readline的鍵盤快捷鍵上瞭解更多資訊。
- Better path completion (TAB). 更好的路徑完成(TAB)。
Paste from clipboard (Ctrl-V). Oh yes.
從剪貼簿貼上(Ctrl-V)。 哦是的
- Support for the completion of executables/commands, and environment variables. 支援完成可執行檔案/命令和環境變數。
Undo/Redo (Ctrl-_ or Ctrl-X, Ctrl-U)
撤消/重做(按Ctrl - _或Ctrl-X鍵,Ctrl-U)
Improved command line history.
改進的命令列歷史記錄。
- Persists across sessions. 跨會話堅持。
- Searchable (Ctrl-R and Ctrl-S). 可搜尋(Ctrl-R和Ctrl-S)。
History expansion (e.g. !!, ! , and !$).
歷史擴充套件(例如!! , ! 和!$ )。
The most significant change that Clink makes is to Tab Completion, moving to a more Bash-y "show them the choices" mode rather than the DOS-like "make them cycle through everything." Here I've pressed TAB over 2013-0 and Clink is showing me what I can choose from.
Clink所做的最重要的更改是“ Tab Completion”(製表符完成),轉向一種更為Bash-y的“向他們展示選擇”模式,而不是像DOS一樣的“使它們遍歷一切”。 在這裡,我在2013-0期間按下了TAB鍵,Clink向我展示了我可以選擇的內容。
PowerShell ISE (PowerShell ISE)
Surprise! You already have this on your Windows computer. Ya, it freaked me out also. You can even hide the script pane if you want (Ctrl-R) and just use PowerShell ISE as a console! You get auto completion (see the Directory intellisense below), coloring, aliases and all the power of PowerShell.
驚喜! 您已經在Windows計算機上安裝了它。 是的,它也嚇壞了我。 如果需要,甚至可以隱藏指令碼窗格(Ctrl-R),只需將PowerShell ISE用作控制檯即可! 您將獲得自動完成功能(請參閱下面的目錄智慧感知),顏色,別名和PowerShell的所有功能。
Sure, it's not bash, but that may be a good thing. You may not have been exposed to PowerShell and the prospect may frighten you, but try it for a bit. They've aliased the obvious commands "ls" does what you'd expect as does "dir." Moving around will feel like any command prompt.
當然,這不是bash,但這可能是一件好事。 您可能沒有接觸過PowerShell,前景可能使您感到恐懼,但請嘗試一下。 他們已經為明顯的命令“ ls”和“ dir”做了別名。 到處走動就像任何命令提示符一樣。
Not to mention if you are using PowerShell you already get a full debugger experience.
如果你不使用PowerShell的你已經得到一個完整的除錯經驗就更不用說了。
It won't win any awards for good looks (again, I come back to the importance of fonts, whitespace, and good typography...get a designer) but it is extremely functional and you already have it!
它不會因外觀好而獲得任何獎項(再次,我回到字型,空白和良好的排版的重要性...找一位設計師),但是它功能非常強大,而且您已經擁有了!
E ()
I've talked about ConEmu before, but I'll bring some of that over here. ConEmu takes your command prompt and adds tabs, status bar details, admin tabs, freakin' taskbar progress bars on copies (which is hot), and deep support for FarManager (Norton Commander anyone?)
之前我已經討論過ConEmu ,但是這裡我將介紹其中的一些內容。 ConEmu會顯示您的命令提示符,並在副本上新增選項卡,狀態列詳細資訊,管理選項卡,freakin'工作列進度條(很熱門) ,以及對FarManager的深入支援(Norton Commander有人嗎?)
ConEmu is definitely a huge jump for console usability on Windows. The feature that really blew me away was Progress Bar integration. If you're familiar with Windows 7 you are likely familiar with the way that progress bars are overlaid over a Windows 7 Taskbar button. ConEmu looks at the current application running and some heuristics and overlays progress. Madness. Do a chkdsk and watch the progress bar. Love this little detail.
ConEmu絕對是Windows控制檯可用性的巨大飛躍。 真正讓我驚訝的功能是Progress Bar整合。 如果您熟悉Windows 7,則可能會熟悉進度條在Windows 7工作列按鈕上的覆蓋方式。 ConEmu會檢視當前正在執行的應用程式以及一些啟發式方法和覆蓋進度。 瘋狂。 進行chkdsk並檢視進度欄。 喜歡這個小細節。
適用於Windows或Cygwin的Git (Git for Windows or Cygwin)
If you want a Linux-like experience on Windows with a nice shell, Cygwin has long been a choice. However, since the release of Git for Windows most folks I know just install it and use the Git Bash. If you get Cygwin proper you'll get a much more complete "fake Linux" through their very competent set of command line tools, but for most, Git Bash will suffice.
如果您想在Windows上使用精美的外殼在Linux上體驗Linux,那麼Cygwin一直是一個不錯的選擇。 但是,自從Windows版Git發行以來,我知道大多數人都只是安裝它並使用Git Bash。 如果正確使用Cygwin,您將通過他們非常稱職的命令列工具集獲得更完整的“偽Linux”,但是對於大多數人來說,Git Bash就足夠了。
What about SSHing? That's a fundamental part of command-line life for folks connecting to remote Unix machines. For me, I have a Linux farm I run on Azure that I often need to ssh into.
SSHing呢? 對於那些連線到遠端Unix機器的人們來說,這是命令列生活的基本組成部分。 對我來說,我有一個經常在Azure上執行的Linux場,我經常需要將其轉換為。
Random: I like to say I 'shoosh' into the machines, but folks keep looking at me weird. I thought this was a thing?
隨機:我想說我“瘋狂”到機器中,但是人們一直看著我很奇怪。 我以為這是事情嗎?
However, the SSH clients for Windows suck. Ok, they don't suck, but they are ugly. It's scandalous how ugly. Mad respect to PuTTY for being awesome and super functional, but it's like running Windows 95 in a window every time I launch it. Here's some better SSH clients, including a fork of PuTTY itself.
但是,Windows的SSH客戶端很爛。 好的,它們不吮吸,但是很醜。 這真醜陋。 對PuTTY的出色表現和超級功能感到瘋狂,但就像我每次啟動Windows 95時都在一個視窗中執行。 這是一些更好的SSH客戶端,包括PuTTY本身的分支。
Bitvise SSH客戶端-更重要的是,從命令列使用SSH (Bitvise SSH Client - more importantly, SSH from the command line)
The Bitvise SSH Client is free for personal use and works great. There's a whole GUI, and, bless them, it's not pretty. However! There's also a command line version which is the REAL treasure. I just want to type ssh and be on my way.
Bitvise SSH客戶端免費供個人使用,並且效果很好。 有一個完整的GUI,並且祝福他們,這並不漂亮。 然而! 還有一個命令列版本,這是真正的寶藏。 我只想輸入ssh即可。
In fact, I made a batch file called "ssh.bat" and put it in my PATH that just has this inside: "stermc %1" this means I can just type ssh [email protected]:port and be on my way. This is, for me, WAY easier than putty for most things. Bitcise is definitely worth checking out.
實際上,我製作了一個名為“ ssh.bat”的批處理檔案,並將其放在僅包含以下內容的PATH中:“ stermc%1”,這意味著我只需鍵入ssh user @ hostname:port即可。 對我來說,在大多數情況下,這比膩子要容易得多。 Bitcise絕對值得一試。
貓咪 (Kitty)
Kitty is a fork of version 0.62 of the original PuTTY. There's also a portable version that I've put in my Dropbox utils folder (which is in my PATH) so it's on every machine I have automatically. Kitty has some nice features like Send to Tray, transparency, session launching (so you don't need Pageant), and lots of little poweruser features like "rolling up" the app if you Ctrl-Click on the Title Bar.
Kitty是原始PuTTY版本0.62的叉子。 我在Dropbox的utils資料夾(位於PATH中)中也放置了一個行動式版本,因此它會自動存在於我擁有的每臺計算機上。 Kitty具有一些不錯的功能,例如傳送到紙盤,透明性,會話啟動(因此您不需要Pageant)以及許多高階使用者功能,例如在按住Ctrl鍵的同時單擊標題欄上的“滾動”應用程式。
Kitty also can integrate into your browser to handle ssh:// links, which is a nice touch.
Kitty還可以整合到您的瀏覽器中以處理ssh://連結,這很不錯。
What console app improvers have I missed? What do you use on Windows? Sound off in the comments.
我錯過了哪些控制檯應用程式改程序序? 您在Windows上使用什麼? 在評論中聽起來不錯。
Sponsor: Big thanks to the folks at RedGate for sponsoring the feed this week. Take a moment and check out their free download of Deployment Manager! Easy release management: Deploy your .NET apps, services and SQL Server databases in a single, repeatable process with Red Gate’s Deployment Manager. There’s a free Starter edition, so get started now!
贊助商:非常感謝RedGate的人們本週贊助了feed。 花點時間檢查一下他們免費下載的Deployment Manager! 輕鬆的釋出管理:使用Red Gate的Deployment Manager在一個可重複的過程中部署.NET應用程式,服務和SQL Server資料庫。 有免費的簡化版,請立即開始!
關於斯科特 (About Scott)
Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.
斯科特·漢塞爾曼(Scott Hanselman)是前教授,前金融首席架構師,現在是演講者,顧問,父親,糖尿病患者和Microsoft員工。 他是一位失敗的單口相聲漫畫家,一個玉米種植者和一本書的作者。
About 關於 Newsletter 時事通訊 Hosting By 主持人比ping更強大的命令