Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
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.
these lines are in my .bashrc in my user directory as well as in the global /etc/bashrc, they both work for root, but not for a common user. (And, yes, I did restart the terminal after making the changes--it still doesn't work).
Seems like it should be an easy fix, I just can't find the answer anywhere else!
Thanks!
(Edit...)
Here's something strange: the df alias does work, just the ls doesn't. I know the syntax is correct, because it's identical to the syntax in root's bashrc and that works for root.
Here's something strange: the df alias does work, just the ls doesn't. I know the syntax is correct, because it's identical to the syntax in root's bashrc and that works for root.
Hm. Works for root. Works when issued directly. Not being clobbered. I'm stumped. 'Strange to me also'
Try putting
alias ls='echo hi'
alias foo='ls -lh'
in your .bashrc and run them. Then put it back the way you had it.
If you get 'hi' and an '-lh' listing, then I'm completely stumped. If you don't get a 'hi' but do get an '-lh' listing, then something somewhere in the chain of bash invocation is messing something up and I'd check every file in the chain. If you get a 'hi' and no '-lh' listing, then something inexplicable is goofed up with your ls command.
I still haven't actualy solved this problem, but I did discover the ll command (short for "Long List," I guess). It provides the functionality I wanted right out of the box.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.