LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-01-2003, 03:00 PM   #1
spuppett
Member
 
Registered: Feb 2003
Posts: 47

Rep: Reputation: 15
Angry Screwed up huge


I was setting up my classpath and path for java, and all was going well, untill....

I looked a page from my instructor on how to set up the Paths and the .bashrc and .bash_profile files were diffrent than mine. Being the *genius* I am, I re-did mine to like like his, make corrections for path names. When I tried to do an ls, command not found. can'd do anything now. What can I do?

Any help would be nice. I don't want to re-install again for this. I tried re-installing a shell that was on the disk, but nothing. I'm a newbie, as you can tell. I'm running Mandy 9.0 by the way.

Thanks
 
Old 03-01-2003, 03:22 PM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Well you can create another user as root and copy this user's files over, it will leave you pretty much at defaults, I assumed you screwed up users files not system wide files such as /etc/profile, right??? Or you can use the absolute path to the commands and programms, or you can edit the PATH again. Again I assumed you put something like this in your user's dot file (be it .bash_profile for instance) -
PATH=/path/to/java/for/instance
export $PATH
you just nulled out all the path defined system wide to /path/to/java/for/instance, what you needed to do was
PATH=$PATH:/path/to/java/for/instance
export $PATH
 
Old 03-01-2003, 03:26 PM   #3
spuppett
Member
 
Registered: Feb 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Yeah it was local to me(user). I'll try that. Thanks much
 
Old 03-01-2003, 03:31 PM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
A few tips: if opt for copying other users files do it as root and don't forget to change ownership to your hurt user, I'd strongly suggest using adduser command line tool to create user account, and you can delete the unwanted afterwards user with userdel, and to become root from console use
/bin/su -
a dash there on porpuse, it'll load root's environment, but I guess you already know it by heart, right?
 
Old 03-01-2003, 05:13 PM   #5
spuppett
Member
 
Registered: Feb 2003
Posts: 47

Original Poster
Rep: Reputation: 15
Got 'er Whooped. Thanks for your help.
 
Old 03-01-2003, 10:19 PM   #6
cuckoopint
Member
 
Registered: Feb 2003
Distribution: Debian
Posts: 797

Rep: Reputation: 30
wouldn't it have been easier to edit your ~/.bashrc again?

assuming, 'ls' didn't work after you edited...I'm thinking you made something like:
alias ls=some_cr@p_here

changing it back should have done the job....right?
 
Old 03-01-2003, 11:21 PM   #7
spuppett
Member
 
Registered: Feb 2003
Posts: 47

Original Poster
Rep: Reputation: 15
the problem wasn't the alias. it wouldn't do ls. My alias was lst="ls -l". I got her solved though, thanks for your help.

Spuppett
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Very huge problem...need help wardialer SUSE / openSUSE 7 04-24-2005 02:47 PM
I need a HUGE program decentpakistani Linux - Software 4 04-15-2005 07:13 AM
Huge Huge Problem With Forums!!! The_Insomniac Linux - General 1 06-07-2004 08:15 AM
This site is getting huge... Genesee General 14 10-23-2003 12:43 PM
huge fonts polarcat Linux - Newbie 7 03-14-2001 10:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:40 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
Open Source Consulting | Domain Registration