Spin up remote server

1. Login to a root account using root credentials ssh root@myserver.com 2. Create a new user admin adduser admin 3. Add the user to sudoers usermod -aG sudo admin Make sure the user got the privileges: sudo -l -U admin 4. [Read More]
ssh  linux 

Difference between /etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profile and ~/.bashrc

Oftentimes, linux user need to manually edit $PATH environment variable. Linux has several places where $PATH can be modified, such as per-system /etc/profile and per-account ~/.bash_profile, ~/.bash_login, ~/.profile and ~/.bashrc. In this article we describe the difference between the files and answer the concrete question: which of them should be used to modify $PATH variable. [Read More]
linux