I have ~/.bashrc, ~/.bash_profile, ~/.profile and similar files under system directories.

How can I run bash without running the initialization/configuration scripts

  • under ~?
  • under system directories?
  • under both above?


  • don't change the files.

  • run bash as a login or nonlogin shell (interested in both). I still allow running those files when starting Linux.

  • run bash as a interactive or noninteractive shell (interested in both)


closed as off-topic by Stephen Rauch, cas, Anthon, Romeo Ninov, Archemar Jul 31 '17 at 12:24

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Requests for learning materials (tutorials, how-tos etc.) are off topic. The only exception is questions about where to find official documentation (e.g. POSIX specifications). See the Help Center and our Community Meta for more information." – Stephen Rauch, Romeo Ninov, Archemar
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 5
    This is answered in the top 1% of the man page: are you expecting someone to type it out here for you? – jasonwryan Jul 30 '17 at 23:53
bash --noprofile

runs a Bash shell without loading any of the config scripts (both user and system-wide).

From man bash:

   -i        If the -i option is present, the shell is interactive.
   -l        Make bash act as if it had been invoked as a login shell (see INVOCATION below).


          Do  not  read  either  the  system-wide  startup  file  /etc/profile  or  any  of  the  personal initialization files ~/.bash_profile,
          ~/.bash_login, or ~/.profile.  By default, bash reads these files when it is invoked as a login shell (see INVOCATION below).

Not the answer you're looking for? Browse other questions tagged or ask your own question.