在 Windows 机器上练习 Unix

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3983412/
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 15:27:23  来源:igfitidea点击:

Practice Unix on Windows Machine

windowsshellunixscriptingwindows-vista

提问by t0mcat

I want to practice Unix (mostly KornShell (ksh) scripting and VI editor) on a windows Vista machine. What is the best solution for this? I do not like Cygwin. So anything other than Cygwin which gives the closest feel of Unix Environment without re-installing the OS.

我想在 Windows Vista 机器上练习 Unix(主要是 KornShell (ksh) 脚本和 VI 编辑器)。什么是最好的解决方案?我不喜欢 Cygwin。因此,除了 Cygwin 之外的任何东西都可以在不重新安装操作系统的情况下提供最接近 Unix 环境的感觉。

Thanks.

谢谢。

回答by mellowsoon

You can set up a virtual machine using VMware Player. http://www.vmware.com/products/player/It lets you run a real *nix environment inside of Windows. It's free, and fairly easy to use.

您可以使用 VMware Player 设置虚拟机。http://www.vmware.com/products/player/它可以让您在 Windows 中运行真正的 *nix 环境。它是免费的,而且相当容易使用。

回答by Andy White

I think Cygwin is really the easiest way to get what you're asking for, but another option might be MinGW. (Minimalist GNU for Windows).

我认为 Cygwin 确实是获得所需内容的最简单方法,但另一种选择可能是MinGW。(适用于 Windows 的极简主义 GNU)。

If you just want to practice with specific command-line utilities, you could also look at: Unxutils.

如果您只想练习特定的命令行实用程序,您还可以查看: Unxutils

Like others have said, you could also use a VM to install some type of Unix/Linux OS, like Ubuntu.

就像其他人所说的那样,您也可以使用 VM 来安装某种类型的 Unix/Linux 操作系统,例如 Ubuntu。

回答by chepe263

Solo es una sugerencia:

Solo es una sugerencia:

Why don't try instaling a virtual machine and then some unix?

为什么不尝试安装虚拟机,然后安装一些 unix?

Just a little suggestion

只是一点建议

回答by Stephen P

Get vimfor Windows for vi practice (then get vim for your actual Unix box) and get Cygwin for a shell environment plus Unix utilities.

获取适用于 Windows 的vim进行 vi 练习(然后获取用于实际 Unix 机器的 vim)并获取用于 shell 环境和 Unix 实用程序的 Cygwin。

回答by David Watson

http://www.elitter.net/

http://www.elitter.net/

Free shell accounts.

免费壳账户。

回答by steinar

I would say the bestway to practice it on your Windows machine is to install a virtual machine (e.g. virtual box, it's free) and set up Linux on that one. Then have them communicate through e.g. a shared folder.

我想说在你的 Windows 机器上练习它的最好方法是安装一个虚拟机(例如virtual box,它是免费的)并在那个虚拟机上设置 Linux。然后让他们通过例如共享文件夹进行通信。

But then there often are Windows clones of many of the most popular software on Unix/Linux systems.

但是在 Unix/Linux 系统上经常有许多最流行软件的 Windows 克隆。

回答by Ryan Berger

If you want a good alternative to Cygwin, try UWIN.

如果你想要一个好的 Cygwin 替代品,试试UWIN

More information on it can be found here.

可以在此处找到有关它的更多信息。

回答by Xk0nSid

I highly suggest that you download a version of unix. Here are some suggestions:
1. OpenBSD
2. NetBSD
3. FreeBSD

我强烈建议您下载一个 unix 版本。这里有一些建议:
1. OpenBSD
2. NetBSD
3. FreeBSD

After downloading one of these, use virtualbox or vmware and install them in a virtual machine.
1. VirtualBox
2. VMware Player
This way you can easily run UNIX in a virtual environment and practice it easily. It's the most convenient method.
Also if you want you can install arch Linux which is very small and then install ksh shell in it using pacman and then change your default shell from bash to korn by this command chsh -s /bin/ksh. You can do all this in other Linux distributions too. Also if you are only looking for working with shell and vim you can use Ubuntu-serverthen install KornShell in it as well using sudo apt-get install ksh. It's entirely up to you which option do you wanna take.

下载其中之一后,使用 virtualbox 或 vmware 并将它们安装在虚拟机中。
1. VirtualBox
2. VMware Player
这样你就可以在虚拟环境中轻松运行UNIX,轻松练习。这是最方便的方法。
此外,如果您愿意,您可以安装非常小的 arch Linux,然后使用 pacman 在其中安装 ksh shell,然后通过此命令将默认 shell 从 bash 更改为 korn chsh -s /bin/ksh。您也可以在其他 Linux 发行版中执行所有这些操作。此外,如果您只想使用 shell 和 vim,您可以使用Ubuntu-server然后在其中安装 KornShell 以及使用sudo apt-get install ksh. 完全取决于您想采取哪种选择。