更好的 Windows 命令?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10083/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:05:46  来源:igfitidea点击:

better command for Windows?

windowsmacoscommand-lineterminal

提问by James A. Rosen

While I grew up using MSWindows, I transitioned to my much-loved Mac years ago. I don't want to start a flame war here on operating systems. I do, however, want a terminal a litle closer to what I'm used to.

虽然我是使用 MSWindows 长大的,但几年前我转而使用我深爱的 Mac。我不想在操作系统上开始一场激烈的War。但是,我确实想要一个更接近我习惯的终端。

I'm not asking for full POSIX support - I don't have the patience to install Cygwin - but I miss tabbed terminals, being able to easily cut and paste, and my good friends ls, mkdir, rm, et al. (For these last ones, I could always put .bat files on my path, but that's going to get old fast.)

我不是要求完全支持 POSIX - 我没有耐心安装 Cygwin - 但我想念标签式终端,能够轻松剪切和粘贴,以及我的好朋友ls, mkdir, rm, 等。(对于最后这些,我总是可以将 .bat 文件放在我的路径上,但这会很快变老。)

Anybody have a terminal application for MSWindows XP ?

有人有 MSWindows XP 的终端应用程序吗?

采纳答案by McDowell

Some more options:

还有一些选择:

MSYS: a Minimal SYStem providing a POSIX compatible Bourne shell environment, with a small collection of UNIX command line tools. Primarily developed as a means to execute the configure scripts and Makefiles used to build Open Source software, but also useful as a general purpose command line interface to replace Windows cmd.exe.

MSYS:一个最小系统,提供了一个兼容 POSIX 的 Bourne shell 环境,带有一小部分 UNIX 命令行工具。主要作为执行用于构建开源软件的配置脚本和 Makefile 的手段而开发,但也可用作替代 Windows cmd.exe 的通用命令行界面。

GNU utilities for Win32: ports of common GNU utilities to native Win32. In this context, native means the executables do only depend on the Microsoft C-runtime (msvcrt.dll) and not an emulation layer like that provided by Cygwin tools.

Win32 的 GNU 实用程序:将常见的 GNU 实用程序移植到本机 Win32。在这种情况下,本机意味着可执行文件只依赖于 Microsoft C 运行时 (msvcrt.dll),而不是像 Cygwin 工具提供的仿真层。

回答by DevelopingChris

I'm using powershell, its awesome to keep you from going crazy, and it has rm and mkdir and ls. Tabbed terminals is still not in powershell, and copy paste is similar to cmd, but its way better than cmd.exe.

我正在使用powershell,它可以防止你发疯,它有 rm 、 mkdir 和 ls 。选项卡式终端仍然不在powershell中,复制粘贴类似于cmd,但比cmd.exe更好。

回答by Adam Haile

PowerCmdis great, with a ton of features including tabs, cut/copy/past, etc.

PowerCmd很棒,有很多功能,包括选项卡、剪切/复制/过去等。

Consoleis also a great replacement and is a bit more stripped down than PowerCmd (which can sometimes be a little toofeature rich.

Console也是一个很好的替代品,并且比 PowerCmd 更加精简(有时功能过于丰富。

Also, with both of these, if you have powershell installed, it is possible to run powershell from withing either.

此外,对于这两个,如果您安装了 powershell,则可以从其中之一运行 powershell。

回答by Brendan

If you are a bit of a Pythonista then iPythonis tough to beat. It has some of the more common shell commands coded in (i.e. ls, pwd, cd etc.), can also run any other shell command by prefixing with '!' (i.e. !latex file.tex) but also is a full Python shell with history, tab-complete, multiline editor support, logging etc. etc.

如果您有点 Pythonista,那么iPython很难被击败。它有一些更常见的 shell 命令(即 ls、pwd、cd 等),也可以通过前缀“!”来运行任何其他 shell 命令。(即!latex file.tex)也是一个完整的 Python shell,具有历史记录、选项卡完成、多行编辑器支持、日志记录等。

Moreover, you can install iPython back on your UNIX boxes as well as Windows meaning your environment can follow wherever you go.

此外,您可以将 iPython 重新安装到您的 UNIX 机器和 Windows 上,这意味着您的环境可以随处可见。

回答by EpicDavi

There is a new-ishopen source Console Emulator called cmder. It looks really nice and has some advanced features that make it nicer to use. You can also use powershell with it. Best of all, it's portable!

有一个新- ISH开源游戏机模拟器称为cmder。它看起来非常漂亮,并具有一些高级功能,使其更易于使用。您也可以将 powershell 与它一起使用。最重要的是,它是便携的!

回答by Mark Biek

I've never found anything I like more than Cygwin.

我从来没有发现比 Cygwin 更让我喜欢的东西。

I also went ahead and installed Cygwin/X w/ Openbox so I can get something like this:

我还继续安装了带有 Openbox 的 Cygwin/X,所以我可以得到这样的东西:

alt text

替代文字

It's got multiple workspaces inside the main Openbox window so I can easily have up to 20 non-overlapping xterms that I can easily cycle through.

它在主 Openbox 窗口中有多个工作区,因此我可以轻松拥有多达 20 个不重叠的 xterm,我可以轻松地循环浏览。

回答by Pat

I use Consolewith unxutils

我使用带有unxutils 的控制台

Console for the tabs and easier to manage select/copy/paste

选项卡的控制台,更易于管理选择/复制/粘贴

unxutils for ls, rm, grep, uniq, sort ... and other goodness.

用于 ls、rm、grep、uniq、sort ... 和其他优点的 unxutils。

回答by Iain Holder

PowerShell is amazing, however for anything other than the most basic commands there is a learning curve when switching from bash etc.

PowerShell 很棒,但是对于最基本的命令以外的任何其他命令,从 bash 等切换时都有一个学习曲线。

I went back to using cygwin.

我回去使用cygwin。

回答by Stu

I know you said you don't want to install anything, but I strongly suggest you give Services For Unix a shot:

我知道你说过你不想安装任何东西,但我强烈建议你试一试 Unix 服务:

http://technet.microsoft.com/en-us/interopmigration/bb380242.aspx

http://technet.microsoft.com/en-us/interopmigration/bb380242.aspx

回答by EndangeredMassa

PowerShellis worth looking into.

PowerShell值得研究。