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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
05-29-2015, 07:55 PM
|
#1
|
Member
Registered: Apr 2009
Posts: 33
Rep:
|
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?
|
|
|
05-29-2015, 08:18 PM
|
#2
|
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,197
|
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
|
|
|
05-30-2015, 09:07 AM
|
#3
|
Member
Registered: Apr 2009
Posts: 33
Original Poster
Rep:
|
Try to find the folder ./bashrc and it does not exist in my home user folder...
Have another clue?
|
|
|
05-30-2015, 05:31 PM
|
#4
|
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,197
|
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.
|
|
|
06-02-2015, 10:52 AM
|
#5
|
Member
Registered: Apr 2009
Posts: 33
Original Poster
Rep:
|
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
|
|
|
06-02-2015, 11:03 AM
|
#6
|
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,197
|
post your bashrc file
|
|
|
06-02-2015, 01:18 PM
|
#7
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,707
Rep:
|
Likely you just need to delete those 2 lines from your .bashrc file.
|
|
|
06-02-2015, 02:26 PM
|
#8
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
In an existing or new terminal run 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.
|
|
|
06-03-2015, 04:08 PM
|
#9
|
Member
Registered: Apr 2009
Posts: 33
Original Poster
Rep:
|
Dudes thanx a lot...
i find the hidden file .bashrc and delete the last lines were was the annoying alias...
solved
|
|
|
06-03-2015, 04:10 PM
|
#10
|
LQ Veteran
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Rep:
|
Glad it worked out!
|
|
|
All times are GMT -5. The time now is 02:48 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|