LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 06: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, 07:18 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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, 08: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, 04:31 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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, 09: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, 10:03 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
post your bashrc file
 
Old 06-02-2015, 12:18 PM   #7
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,484

Rep: Reputation: Disabled
Likely you just need to delete those 2 lines from your .bashrc file.
 
Old 06-02-2015, 01: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 01:27 PM.
 
Old 06-03-2015, 03: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, 03: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



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

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

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