wsl -h显示以下内容: --exec, -e <CommandLine> Execute the specified command without using the default Linux“不使用默认的Linux shell”是什么意思(即,如果不使用默认的shell,它还将使用什么?)。此外,作为示例,我现在有三种可能的方法来从我的PowerShell提示符运行Linuxls (即,这将不是ls的Get-ChildItem别名,而是通过WSL的Linux</
我刚接触OS和其他Linux发行版(Ubuntu,CentOS,RHEL)用户。$ ls --color=autousage: ls [-ABCFGHLOPRSTUWabcdefghiklmnopqrstuwx1]我还阅读了ls的手册页,我发现ls -G是彩色输出的推动者。所以,现在还好,但是我有点烦,因为我在我所有的<
我正在linux.I上编写一个简单的shell程序,我在shell中实现了用户给出的许多命令。但我不知道如何发出命令来编写这个command.what,我的意思是当用户发出一个简单的命令,即ls or date,我只是在shell systtem("ls")中编写。我将字符串(由用户提供)的值与ls进行了比较,如果为true,则实现它。例如cin>>s;
if(s=="<