Scenario / Questions
I would like to have
alias ll="ls -l"
to be system wide.
How is that done on Ubuntu?
Find below all possible solutions or suggestions for the above questions..
Add it in to
/etc/bashrc. This will (or should) get called on login by every user who uses bash.
# echo "alias ll='ls -l'" >> /etc/bash.bashrc
and make sure that this file is executed whenever an user enters a shell by adding the following in
# Source global definitions if [ -f /etc/bash.bashrc ]; then . /etc/bash.bashrc fi
If your user’s $HOME/.bashrc contains the usual
if [ -f /etc/bashrc ]; then . /etc/bashrc fi
Then put it in /etc/bashrc. If it doesn’t then put it in /etc/profile from where it will at least be read for login shells.
Kubernetes Free Online Tutorial, Kubernetes Beginner Tutorial
DevOps Free Online Tutorial, DevOps Beginner Tutorial
Ansible Free Online Tutorial, Ansible Beginner Tutorial
Docker Free Online Tutorial, Docker Beginner Tutorial
Openstack Free Online Tutorial, Openstack Beginner Tutorial
Disclaimer: This has been sourced from a third party syndicated feed through internet. We are not responsibility or liability for its dependability, trustworthiness, reliability and data of the text. We reserves the sole right to alter, delete or remove (without notice) the content in its absolute discretion for any reason whatsoever.