Refer to a comment here I wanted to ask to the poster the question where to copy the .bashrc file to. Because copying it to the home of the user does not enable the auto color ls command.
Please, can someone also tell me how to raise comments on a post if you do not have 50 reputation points yet?
alias? What version of Ubuntu are you using? When did the colours disappear? Is this your local system or are you accessing via SSH? – Zanna Mar 31 '18 at 11:06- alias does not give any output.
- It's Ubuntu 14.04.
- It is hosted on AWS.
- I am using ssh.
- Colors work fine when I su
to a user who is in sudoer list.
- This started happening when I enabled an existing user on ssh. Earlier when I used to su
the shell loaded allowed bash history which also stopped now. I enabled bash history by running this command [https://askubuntu.com/a/325812/671438]
– user30994 Mar 31 '18 at 14:55aliasto do with this? I donot have a high skill on Linux. Could you please be a little specific what I have to do. – user30994 Mar 31 '18 at 15:38lscolours appear by default because of an alias in your.bashrcwhich is only read by interactive shells. I don't really know about SSH, less about AWS, but the shell you are using is not reading.bashrcfor some reason. I don't know how to make that happen (that's why I'm not answering your question) but as a workaround you can set the alias yourself or just runlswith the optionls --color=auto– Zanna Mar 31 '18 at 16:05.bashrcon the remote system – Zanna Apr 01 '18 at 08:28.bashrc... did youcpthe/etc/skel/.bashrcfile to that user's home directory? – Zanna Apr 01 '18 at 19:30