BASH: disable shell builtin

 

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

 

 

 

posted @ 2023-03-25 13:20  ascertain  阅读(14)  评论(0编辑  收藏  举报