[LBo] Running shell script

jsl06 at myrealbox.com jsl06 at myrealbox.com
Sun Jan 7 21:58:19 CET 2007


Jisaro,
     Thanks for the explanation.  I looked for /etc/.bashrc and 
/$HOME/.bashrc in my distribution (slackware 10.2) and couldn't find them. 
Slackware uses /etc/profile and I added /$HOME/.bash_profile to add the 
directory for my scripts (I don't remember where I found the 
instructions).  These must be the standard ways of accomplishing this 
since bash can be invoked with --noprofile and --norc.

                           James Laney
                       <jsl06 at ispwest.com>
                       <jsl06 at myrealbox.com>

On Sat, 6 Jan 2007, Jisao wrote:


>> 
> Usually, in /etc, you find configuration files for your whole system, among 
> other things. If you use the command: 
> user at computer:~$ cat /etc/bash.bashrc
>
> the output shows you the contents of the file.   In Debian Etch, here is the 
> first line of the file /etc/bash.bashrc (lines starting with # indicate 
> comments):
>
> # System-wide .bashrc file for interactive bash(1) shells.
>
>
> As for $HOME .bashrc, it is the configuration file for that specific user. 
> It starts with :
>
> # ~/.bashrc: executed by bash(1) for non-login shells.
>
> The tilde indicates the home of the user.
>
>
> To summarize (for Bash first timers):  Look at the contents of both files by 
> using the cat command.  To list the files:
>
> user at computer:~$ ls -al | grep "bash" user at computer:~$ ls -al /etc | grep 
> "bash" 
> (the pipe limits the quantity of output you get from that command to a more 
> manageable size)
>
> then
>
> user at computer:$cat /etc/bash.bashrc
> user at computer:$cat ~/.bashrc
>
> To scroll the screen if the output is too long, use the key combos 
> shift+PageUp or shift+PageDown.
>
>
> Jisao
>
>
>
>
>
> -- 
> QnA mailing list - To post: QnA at linuxbasics.org
> Site: http://LinuxBasics.org
> List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
>


More information about the QnA mailing list