BASH: disable shell builtin

发布时间 2023-03-25 13:26:08作者: ascertain

 

enable

 

 

 

 

 

 

Use the `env` command. Env is a command which launches another program with a possibly modified environment. Because env is a program, it doesn't have access to shell builtins, alias, and whatnot

 

env -i --chdir=/etc/ pwd