I am running Ubuntu Server 8.04 (hardy), and when I login remotely i can't see the colors when using ls, however after I type "bash" into the shell I see colors, I've already checked my .bashrc and all the colors are enabled by default (colors=auto), and I've checked "echo $SHELL" and "which bash", and they both report /bin/bash however as I already mentioned I don't see colors until I enter "bash" into shell
Why might this be?
Ssh – Ubuntu-Server bash colors not appearing on login
bashcolorshellssh
Related Topic
- Ubuntu – How to start bash shell in ubuntu – change directory, open tabs, run commands
- Bash – Both bashrc and bash_profile won’t seemingly source? VirtualMin Clean install
- Linux – Can’t log in via SSH to any accounts using /bin/bash shell on Synology NAS
- Linux SFTP – Use .bashrc Without Breaking SFTP
- Ubuntu – Straight forward way to run ssh-agent and ssh-add on login via SSH
- Ssh – bashrc not loaded in /bin/bash shell
Best Answer
You need to either
Input your commands directly into ~/.bash_profile
Source your .bashrc from your ~/.bash_profile
e.g.
.bashrc is used for interactive shells, .bash_profile is used for login shells.