LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-19-2004, 05:28 AM   #1
orly
LQ Newbie
 
Registered: Aug 2004
Posts: 5

Rep: Reputation: 0
How do I edit .profile?


Hi,

It's my first day working with Linux... I am installing some SW and in the
README file it says:

Add these lines to your .profile or .bash_profile files (if using
sh or bash): ....

How do I do it? I'm not even sure if I have bash or sh.

Thanks.
 
Old 08-19-2004, 05:35 AM   #2
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Open a terminal (you can, can't you?)
write:

ls -a

andyou'llget a list of all thefiles in your home directory. You'll be able to see which file youhave to edit (.profile or .bash_profile

then type (for example)

emacs .profile

(change emacs for the editorofyour choice) Make and save changes and you're ready...
 
Old 08-19-2004, 01:40 PM   #3
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Another way is to force a GUI editor to read the file.
For example, open Text Editor (or Kedit, Kate, whatever).
Then File->Open... and wiggle to the file you want
opened.

If you click the file from any file manager (My Home,
My Computer, whatever), the file association, defined
in the control center, overrides.

Sheng-Chieh
 
Old 08-19-2004, 02:50 PM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
there's one snag though... your file manager must be configured to see hidden files (the ones that start with a dot)
 
  


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
How do I edit my profile? Ingla LQ Suggestions & Feedback 5 11-15-2005 10:28 PM
non roaming profile on a roaming profile system fieldyweb Linux - Newbie 1 10-03-2005 01:27 PM
Edit /ect/profile with root? Tony33221 Linux - Security 11 09-04-2005 07:02 PM
Where is .profile ???? garlam Slackware 3 09-18-2004 12:22 PM
where is my .profile ? rob99 Linux - Newbie 2 04-07-2003 11:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:49 PM.

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
Open Source Consulting | Domain Registration