bash .profile questions

bash .profile questions

Post by Sylvain Bari » Tue, 20 Jan 1998 04:00:00




Quote:> Login Slackware v 2.0.30

> Bash shell is using '/etc/profile' for all users on the system.  As I
> understand it, there should be a hidden file '.profile' in the users directory
> that bash will look for to use at login.  Using ls -a and ls -A, did NOT see
> one in my /home/username directory.

> questions:
>         1)  How to create/edit hidden files

vi .filename    Where's the starting dot is what makes hidden files.

Quote:>         2)  Is my documentation correct about the '.profile' file

Under Linux bash, the right name is .bash_profile

Quote:> Thanx...

You're welcome.

Sylvain Baril

--

*** Powered by LINUX ***

 
 
 

bash .profile questions

Post by Just Little Ole » Wed, 21 Jan 1998 04:00:00


Login Slackware v 2.0.30

Bash shell is using '/etc/profile' for all users on the system.  As I
understand it, there should be a hidden file '.profile' in the users directory
that bash will look for to use at login.  Using ls -a and ls -A, did NOT see
one in my /home/username directory.

questions:
        1)  How to create/edit hidden files
        2)  Is my documentation correct about the '.profile' file

Thanx...

++++++++++++++++++++++++++++++++++++++++++

www.geocities.com/HotSprings/4882/

Come by and Visit
++++++++++++++++++++++++++++++++++++++++++

 
 
 

bash .profile questions

Post by John Tsangar » Wed, 21 Jan 1998 04:00:00


 I am not all too knowledgable about these things.. but yes.. there should be a .profile or a .bash_profile in your home directory.  

If there is not.. don't fret.  That doesn't mean there is something wrong with your system.  

You can create it by simply typing "vi .profile" And as to everything that you can put into it I will leave for someone more knowledgable than I to explain.

John

 
 
 

bash .profile questions

Post by William Lew » Wed, 21 Jan 1998 04:00:00




Quote:>        1)  How to create/edit hidden files

Under UNIX, a "hidden" file is just one that starts with a dot. Other
than that there's nothing special about them. It's a minor *
between ls and the shell --- ls won't list them unless you use -[aA],
and the shells won't expand wildcards to them unless they have to. :-)

Quote:>        2)  Is my documentation correct about the '.profile' file

Yep. Bourne-like shells (bash is Bourne-like) run .profile when you log in.
Bash will also run .bashrc whenever a subshell is started --- sometimes
it's better to put a command in .bashrc.

--

 PGP 0x27F772C1: 0C 0D 10 D5 FC 73 D1 35  26 46 42 9E DC 6E 0A 88

 
 
 

bash .profile questions

Post by Tim Mora » Thu, 22 Jan 1998 04:00:00


Golly,

You know I never thought about this before. What determines the files
to be put in a users directory?

Regards,
Tim

(It's been a couple of years since I've run adduser. Linux fragile?
Bah!)


> Login Slackware v 2.0.30

> Bash shell is using '/etc/profile' for all users on the system.  As I
> understand it, there should be a hidden file '.profile' in the users directory
> that bash will look for to use at login.  Using ls -a and ls -A, did NOT see
> one in my /home/username directory.

> questions:
>         1)  How to create/edit hidden files
>         2)  Is my documentation correct about the '.profile' file

> Thanx...

> ++++++++++++++++++++++++++++++++++++++++++

> www.geocities.com/HotSprings/4882/

> Come by and Visit
> ++++++++++++++++++++++++++++++++++++++++++

 
 
 

bash .profile questions

Post by Robert Savo » Thu, 22 Jan 1998 04:00:00


: Golly,

: You know I never thought about this before. What determines the files
: to be put in a users directory?

: Regards,
: Tim

: (It's been a couple of years since I've run adduser. Linux fragile?
: Bah!)

Hmm, all of the default files generated with adduser are copies of the
files located in /etc/skel.

--
Robert Savoie
Information Systems Manager
Global Direction Inc.

 
 
 

bash .profile questions

Post by Josh Fishm » Wed, 28 Jan 1998 04:00:00





>>        1)  How to create/edit hidden files

>Under UNIX, a "hidden" file is just one that starts with a dot. Other
>than that there's nothing special about them. It's a minor *
>between ls and the shell --- ls won't list them unless you use -[aA],
>and the shells won't expand wildcards to them unless they have to. :-)

>>        2)  Is my documentation correct about the '.profile' file

>Yep. Bourne-like shells (bash is Bourne-like) run .profile when you log in.
>Bash will also run .bashrc whenever a subshell is started --- sometimes
>it's better to put a command in .bashrc.

I've read that things which are not shell-specific (like programs that
you want to run at startup) should be put in .profile, while things
which are shell-specific should be put in .<shell>rc (eg .bashrc,
.tcshrc) so if you ever start up a csh (why you would want to is the
subject of another rant :-) it won't get confused by bash-specific
stuff. So, for example, put "alias ..." in .bashrc, "export ..." in
.bashrc, but put "fetchmail" or other non-shell-built-in commands in
.profile.

To answer an earlier post, the "normal" hidden files are copied
from /etc/skel when you run "adduser".

And finally, to make changes which will affect all users, edit
/etc/profile and /etc/bashrc, which apply to all logins & users.

  - Josh

--
   O<      ( (          [  Better   ]
 _NH >=O    ) )         [   Living  ]
<_>-<_   + :::::-.      [  Through  ]
 HCl<O>     :::`-'      [ Chemistry ]

 
 
 

bash .profile questions

Post by M.A. Pow » Sun, 01 Feb 1998 04:00:00



> I've read that things which are not shell-specific (like programs that
> you want to run at startup) should be put in .profile, while things
> which are shell-specific should be put in .<shell>rc (eg .bashrc,
> .tcshrc) so if you ever start up a csh (why you would want to is the
> subject of another rant :-) it won't get confused by bash-specific
> stuff. So, for example, put "alias ..." in .bashrc, "export ..." in
> .bashrc, but put "fetchmail" or other non-shell-built-in commands in
> .profile.

As I understand it, the general rule for shell .login/.profile/...rc
files is that interactive stuff should go into .login and
non-interactive stuff should go into .[a-z]rc.  The .[a-z]rc file is
read every time you create a subshell, e.g., when you run a script; so
you don't want interactive stuff in there.  But you do want to be sure
that anything you expect to use in a subshell is in there -- because
what you put into .login is not re-read when you start a subshell.

mp

--
 +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+  
 | sheep, n.  A stupid woolly creature, meant to be fleeced; a dupe;   |
 | an individual who uses 'no-spam' headers in UseNet newsgroups.      |
 +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
 | Linux 2.0.32 -> AMD 5x86-133  | pgpk -a finger://teleport.com/looie |
 +=-=-=-=-=+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

 +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

 
 
 

1. BASH BASH BASH BASH BASH BASH BASH BASH BASH BASH

Is there a proper fixed bash on any of the FTP sites out there?

I know there bash is on the usual sites but I don't know if they are
bugged or not :(

Regards,

Neil.

--


------------------------------------| Edinburgh, EH14 2DE, United Kingdom
**Domino: There`s nothing you can do when you`re the next in line: Domino**

2. FireGL

3. changing bash profile into csh profile?

4. test

5. Question on Bash Profile

6. unix2dos error

7. BASH "profile" question

8. Apache - lcok file

9. bash .profile portability

10. Help Me Set Bash Profile

11. BASH: how to interrupt .profile with cntl-c?

12. Bash doesn't trap cntl-c while reading .profile

13. Stupid BASH BASH EXPORT PS1 and path to X Question