Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-31-2003, 03:57 AM
|
#1
|
Member
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255
Rep:
|
.bash_profile
I have to set some environment variables in ".bash_profile" but unable to find this file. Where I can find this file or if not exists how to create it and at which location?
|
|
|
08-31-2003, 04:03 AM
|
#2
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
it's in the user's directory in /home. in red hat there's a skeleton in /etc/skel/.bash_profile which i would guess is for global .bash_profile generation when users are created.
from the command line if you want to see hidden files, use:
ls -al
if you're using a file manager like konqueror or something, you need to set the file manager to view hidden files.
Last edited by megaspaz; 08-31-2003 at 04:06 AM.
|
|
|
08-31-2003, 04:08 AM
|
#3
|
Member
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255
Original Poster
Rep:
|
I am able to view hidden files with ls -al. How to unhide the hidden file? Thanks
|
|
|
08-31-2003, 04:10 AM
|
#4
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
what file manager are you using?
|
|
|
08-31-2003, 04:13 AM
|
#5
|
Member
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255
Original Poster
Rep:
|
Nautilus 2.2.1 Gnome
|
|
|
08-31-2003, 04:17 AM
|
#6
|
Senior Member
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054
Rep:
|
well i'm a kde user (konqueror) and my nautilus is a very old version (1.0.6) but on nautalis for me, just click Preferences > Advanced in the menu bar and nautilus will then show all files.
|
|
|
08-31-2003, 09:38 AM
|
#7
|
Member
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191
Rep:
|
Hello
From my childhood days in ms-dos I remember the Norton Commander. Since linux came to my desktop I returned to my roots with the Midnight Commander. It always works, shows hidden files and lets you edit files with a build in editor or an editor of your choise, e.g. vi. More info at
http://www.ibiblio.org/mc/
Last edited by koen plessers; 08-31-2003 at 09:42 AM.
|
|
|
08-31-2003, 09:49 AM
|
#8
|
Member
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255
Original Poster
Rep:
|
Actually my question was how to reset the hidden attribute of a file from command line?
|
|
|
08-31-2003, 09:59 AM
|
#9
|
LQ Addict
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661
Rep:
|
it's not an attribute. It's the . at the beginning of the file name that indicates that it is hidden. Don't remove it from .bash_profile though or your system won't find it.
|
|
|
08-31-2003, 10:01 AM
|
#10
|
Member
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255
Original Poster
Rep:
|
Oh another difference with windows attributes where you can reset hidden attributes. Thanks for you nice input.
|
|
|
All times are GMT -5. The time now is 12:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|