Environment and Shell Variables

Easy…it’s very simple! Environment and Shell variables are very easy to manage. You just have to know a few concepts. What are Environment Variables? They are just a chunk of memory in shell sessions, in the form of variables, used to aid programs. For example, imagine, you are running a program who needs to know the home directory of the user running it. In this case, the program/process could make…

Read more »

Diference between su and su –

Yeah, there’s a diference between su and su –. A while ago i stumbled upon this particularity when i didn’t know what difers between both. But it turns out to be really simple. The “switch user” command First things first. So what the “switch user” command does? Man pages, typically say: su allows to run commands with substitute user and group ID.man pages Which means, you can temporarily, run commands…

Read more »

Bash Login Files Main Diferences

When configuring users login, you should know the bash login files main diferences. As so, you should ask yourself: is it for a login shell or a subshell? OK, so what’s a login shell? A login shell is the first shell you log on to when you reach the server. It does not matter if it is ssh, or in the server itself. If it’s your first login, then it’s…

Read more »