Professional Documents
Culture Documents
#env or #printenv
----------------------------------------------------
[root@localhost ~]# ps -e | grep bash
3420 pts/0 00:00:00 bash
[root@localhost ~]# terminator
bash: terminator: command not found...
^C
[root@localhost ~]# bash
[root@localhost ~]# ps -e | grep bash
3420 pts/0 00:00:00 bash
4301 pts/0 00:00:00 bash
[root@localhost ~]# pstree -s -p 4301
systemd(1)───sshd(1150)───sshd(3363)───sshd(3413)───bash(3420)───bash(4301)───pstre
e(4326)
[root@localhost ~]# echo $NAME
whoami
[root@localhost ~]#
[root@localhost ~]# unset NAME // to unset the value of variables
shell variable
NAME="pwd" // not use export keyword
set //to see all configured shell variables
[root@localhost ~]# set
[root@localhost ~]# set |less
[root@localhost ~]# set |grep nameok
nameok=pwd
ALIASE
the purpose of aliase is to indicate some string with some other name
[root@localhost ~]# alias cl=clear
to remove alias
unalias cl
PATH VARIABLE
program/command look excutable here
export PATH="$PATH:/home/joakim" //to update the path
or add it in /etc/environment