小编The*_*007的帖子

如何重置 powershell 中的所有别名

我最近将别名设置为非命令,因为我不知道如何使用设置别名。我想知道如何重置所有别名而不影响 powershell 附带的默认别名。

我尝试使用Remove-Alias但它返回给我这个错误:

PS C:\Users\me\Desktop\Projet\> Remove-Alias lua
Remove-Alias : The term 'Remove-Alias' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a 
path was included, verify that the path is correct and try again.
At line:1 char:1
+ Remove-Alias lua
+ ~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (Remove-Alias:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

powershell bash shell command-line

2
推荐指数
1
解决办法
1679
查看次数

标签 统计

bash ×1

command-line ×1

powershell ×1

shell ×1