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 05-29-2015, 07:55 PM   #1
DRAGSTER_TUNER
Member
 
Registered: Apr 2009
Posts: 33

Rep: Reputation: 0
cant take out alias message when log as root


Hi guys....i need help with an annoying thing!

everytime i log as root gimme this message:

bash: alias: -o: not found
bash: alias: allow_other: not found
bash: alias: /media/GalaxyS: not found
bash: alias: -u: not found
bash: alias: /media/GalaxyS: not found
bash: alias: -u: not found
bash: alias: /media/GalaxyS: not found
bash: alias: -u: not found
bash: alias: /media/GalaxyS: not found
bash: alias: source: not found
bash: alias: /root/.bashrc: not found


I've tried:

root@supercharger:/home/supercharger# unalias -o

but:

bash: unalias: -o: invalid option
unalias: usage: unalias [-a] name [name ...]
root@supercharger:/home/supercharger#

root@supercharger:/home/supercharger# unalias /media/GalaxyS

bash: unalias: /media/GalaxyS: not found
root@supercharger:/home/supercharger#

unalias -a doesnt work as well

How to remove this messages from the system?
 
Old 05-29-2015, 08:18 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,197

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
sounds like you've got a bad alias command in one of the bash start up files start with~/.bashrc and cooment out any alias commands until you find the offending one
 
Old 05-30-2015, 09:07 AM   #3
DRAGSTER_TUNER
Member
 
Registered: Apr 2009
Posts: 33

Original Poster
Rep: Reputation: 0
Try to find the folder ./bashrc and it does not exist in my home user folder...

Have another clue?
 
Old 05-30-2015, 05:31 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,197

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
its not folder its a file $HOME/.bashrc $HOME is your home folder, check the bash man page for the various startup files, which one is run varies depending how you are looging in etc, default files are in /etc look for bashrc and profile.
 
Old 06-02-2015, 10:52 AM   #5
DRAGSTER_TUNER
Member
 
Registered: Apr 2009
Posts: 33

Original Poster
Rep: Reputation: 0
Actually, i dont know if is an alias problem....

The problem is i made an echo command without the file exists...the gimme the error above...

thats the two commands:

echo "unalias android-disconnect="fusermount -u /media/GalaxyS"" >> ~/.bashrc source ~/.bashrc

echo "unalias android-connect="mtpfs -o allow_other /media/GalaxyS"" >> ~/.bashrc
 
Old 06-02-2015, 11:03 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,197

Rep: Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867Reputation: 867
post your bashrc file
 
Old 06-02-2015, 01:18 PM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,707

Rep: Reputation: Disabled
Likely you just need to delete those 2 lines from your .bashrc file.
 
Old 06-02-2015, 02:26 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
In an existing or new terminal run
Code:
bash --norc
and then remove, or #Remark out the 2 echo unalias lines from $HOME/.bashrc
and save and exit or exit with save your $HOME/.bashrc
type
Code:
source $HOME/.bashrc
Messages should be gone.

Last edited by Habitual; 06-02-2015 at 02:27 PM.
 
Old 06-03-2015, 04:08 PM   #9
DRAGSTER_TUNER
Member
 
Registered: Apr 2009
Posts: 33

Original Poster
Rep: Reputation: 0
Dudes thanx a lot...

i find the hidden file .bashrc and delete the last lines were was the annoying alias...

solved

 
Old 06-03-2015, 04:10 PM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Glad it worked out!
 
  


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
Rootsh stopped log in /var/log/message niraj.vara Linux - Software 1 06-27-2014 05:11 AM
neat command not working azx_get_response timeout message in /var/log/message ninadshaha Red Hat 1 02-19-2008 03:32 PM
Strange Repeating Error message in /var/log/message lucktsm Linux - Security 2 10-27-2006 09:29 AM
message, message.1 in /var/log/ can be deleted for space? phpsharma Linux - Newbie 4 11-17-2004 01:23 PM
/var/log/kern.log message dimkal Linux - Hardware 1 05-08-2004 07:57 AM

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

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