LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 04-20-2004, 07:28 PM   #1
Maurice Arthur
Member
 
Registered: Jun 2001
Location: Whangarei
Distribution: KDE Ubuntu 15.04 Mint17.3
Posts: 340

Rep: Reputation: 31
.bashrc No longer exists


Hi
Have deleted text files .bash_logout. bash_Profile and .brashrc from my ma user which is for English
Chen is configured useing fdisk for chinese charaters all bash files are intact in Chen user.
I was trying to remove the chinese input from ma user when using OpenOffice writer
Now when I click on Terminal in KDE Bash-2.05b appears not my original home ma path
How can I reinstall these deleted files ?
Maurice
 
Old 04-21-2004, 08:34 AM   #2
keefobeefo
LQ Newbie
 
Registered: Oct 2003
Location: UK - North West
Distribution: Various
Posts: 7

Rep: Reputation: 0
Hi Maurice,
The easiest way is to use the GUI tools to create a new (dummy) user. This creates the script files automatically. Next, use a terminal and su to login as root and copy the files from the dummy user to /home/ma. You should get the default script files which you can then edit for your own preferences. Don't forget to chown and chgrp the new files so ma owns them.
Hope this helps,
keefo.
 
Old 04-23-2004, 03:11 AM   #3
Maurice Arthur
Member
 
Registered: Jun 2001
Location: Whangarei
Distribution: KDE Ubuntu 15.04 Mint17.3
Posts: 340

Original Poster
Rep: Reputation: 31
Hi keefobeefo
Thanks for infomation
Where is the folder or file that has the line [ma@localehost.ma] $
Bash-2.05b $ is now u@localhost:$ I would like it to be original
[ma@localehost.ma] $

Have not made a dummy user that creates the script files automatically.
Terminal commands work ,ok
Maurice
 
Old 04-23-2004, 03:57 AM   #4
keefobeefo
LQ Newbie
 
Registered: Oct 2003
Location: UK - North West
Distribution: Various
Posts: 7

Rep: Reputation: 0
Maurice,
You'll find the environment variable PS1 contains the prompt format and it's normally the string "[\u@\h \W]\$", where:
\u represents username
\h represents host name
\W represents working directory
So for me it would produce:
[keefobeefo@boggo tmp]$

I suspect it's been disrupted somehow (the u@ you see suggests the first backslash has been removed). You can reset it in either .bashrc or .bash_profile - or even on the fly in a terminal session. Do other users get similar problems with prompts? If yes, then the problem is probably in /etc/bashrc. If no then you'll probably find it's been changed in .bashrc in you home directory.

I hope this helps,
keefobeefo.
 
Old 04-23-2004, 05:36 PM   #5
Maurice Arthur
Member
 
Registered: Jun 2001
Location: Whangarei
Distribution: KDE Ubuntu 15.04 Mint17.3
Posts: 340

Original Poster
Rep: Reputation: 31
.bashrc

Hi Keefobrrfo
Have edited .bashrc .Now have ma@localhost:\ma $
Thanks for information .Seems there is always some thng to learn when using Linux,but I like it all the same
Maurice
 
  


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
why this mesasge exists? alaios Programming 10 07-16-2005 04:39 PM
Why do dentist exists? irfanhab General 24 07-13-2005 06:39 PM
SIOCADDRT: File exists SIOCCADDRT: File Exists Failed to bring up eth0. opsraja Linux - Networking 0 01-10-2005 08:29 AM
/dev/tty1 no longer exists Steerpike Linux - Newbie 3 11-27-2004 11:16 AM
File already exists mickstaff Programming 3 05-13-2004 03:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 11:19 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