Arquivos Bash - / etc / profile vs ~ / arquivo .bash_profile [duplicado]

0

Alguém sabe qual é a diferença entre o arquivo / etc / profile e o arquivo ~ / .bash_profile? Qual deles é executado primeiro?

    
por Justin 04.11.2014 / 15:32

1 resposta

0
   When bash is invoked as an interactive login shell, or as a  non-inter‐
   active  shell with the --login option, it first reads and executes com‐
   mands from the file /etc/profile, if that file exists.   After  reading
   that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
   in that order, and reads and executes commands from the first one  that
   exists  and  is  readable.  The --noprofile option may be used when the
   shell is started to inhibit this behavior.

Isso foi tirado textualmente de man bash . O homem é seu amigo:)

    
por roadmr 04.11.2014 / 15:49