Search K 
Appearance
Appearance
Other ways to support HackTricks:
Try Hard Security Group

The global variables will be inherited by child processes.
You can create a global variable for your current session doing:
export MYGLOBAL="hello world"
echo $MYGLOBAL #Prints: hello worldThis variable will be accessible by your current sessions and its child processes.
You can remove a variable doing:
unset MYGLOBALThe local variables can only be accessed by the current shell/script.
LOCAL="my local"
echo $LOCAL
unset LOCALset
env
printenv
cat /proc/$$/environ
cat /proc/`python -c "import os; print(os.getppid())"`/environFrom: https://geek-university.com/linux/common-environment-variables/
Change the value of this variable to 0, so when you end your session the history file (~/.bash_history) will be deleted.
export HISTFILESIZE=0Change the value of this variable to 0, so when you end your session any command will be added to the history file (~/.bash_history).
export HISTSIZE=0The processes will use the proxy declared here to connect to internet through http or https.
export http_proxy="http://10.10.10.10:8080"
export https_proxy="http://10.10.10.10:8080"The processes will trust the certificates indicated in these env variables.
export SSL_CERT_FILE=/path/to/ca-bundle.pem
export SSL_CERT_DIR=/path/to/ca-certificatesChange how your prompt looks.
Root:
.BIpeYFwO.png)
Regular user:
.Bz3Vz2-I.png)
One, two and three backgrounded jobs:
.B_ujqjAa.png)
One background job, one stopped and last command didn't finish correctly:
.D91L-MYs.png)
Try Hard Security Group

Other ways to support HackTricks: