LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 08-31-2003, 03:57 AM   #1
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Rep: Reputation: 30
.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?
 
Old 08-31-2003, 04:03 AM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 08-31-2003, 04:08 AM   #3
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
I am able to view hidden files with ls -al. How to unhide the hidden file? Thanks
 
Old 08-31-2003, 04:10 AM   #4
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
what file manager are you using?
 
Old 08-31-2003, 04:13 AM   #5
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
Nautilus 2.2.1 Gnome
 
Old 08-31-2003, 04:17 AM   #6
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 08-31-2003, 09:38 AM   #7
koen plessers
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30
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.
 
Old 08-31-2003, 09:49 AM   #8
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
Actually my question was how to reset the hidden attribute of a file from command line?
 
Old 08-31-2003, 09:59 AM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
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.
 
Old 08-31-2003, 10:01 AM   #10
sikandar
Member
 
Registered: Aug 2003
Distribution: Linux AS & RH 9
Posts: 255

Original Poster
Rep: Reputation: 30
Oh another difference with windows attributes where you can reset hidden attributes. Thanks for you nice input.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.bash_profile dimi Linux - General 1 08-23-2005 08:00 PM
.bash_profile nguye103 Linux - Software 3 10-22-2004 01:48 PM
where is ~/.bash_profile? Jskill007 Slackware 4 09-17-2004 11:04 PM
need .bash_profile example true_atlantis Slackware 2 02-07-2004 06:27 PM
.bash_profile Wasim Haider Linux - General 2 09-16-2002 07:12 AM


All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration