How to start a shell without any user configuration?

后端 未结 3 574
有刺的猬
有刺的猬 2020-12-12 15:54

I need to use a \"clean\" shell (e.g. bash) under Linux/OSX terminal without any user configuration, but it reads config info from some files (e.g ~/.bashrc) every time it s

3条回答
  •  臣服心动
    2020-12-12 16:45

    Running bash --noprofile --norc still inherited from parent process. Based on a similar question I found that the way I interpreted this question env -i bash --norc --noprofile was what I would want.

提交回复
热议问题