在WSL中安装了Ubuntu,当我尝试打开任何东西时都会出现错误消息:ioctl(VT_GETSTATE):设备的ioctl不适当

时间:2020-03-04 00:35:03

标签: ubuntu windows-subsystem-for-linux

我刚刚从Mac迁移到Windows,并想继续使用终端导航系统,我安装了Ubuntu,但是简单的open命令却无法正常工作,有人可以帮我吗?when I try to open a file or just enter the command open 我正在使用Windows 10版本1909。 谢谢

1 个答案:

答案 0 :(得分:0)

我在这里找到了答案:https://superuser.com/questions/1160419/how-can-i-open-a-file-from-wsl-with-the-default-application

使用以下方法代替使用open

cmd.exe /C start <file>

然后,我为此命令添加了别名,因此仍然可以使用open命令。编写方法如下:https://ilikekillnerds.com/2017/08/create-alias-c-drive-ubuntu-bash-windows/