#!/bin/bash

( echo "$ ls /proc" ; ls -x /proc) | less
clear
cd /proc/self
( echo "$ cd /proc/self" ; cd /proc/self ; echo "$ ls" ; ls -x ) | less
clear
( echo "Find the current working directory of a process" ;echo "$ ls -l cwd"; ls -l /proc/self/cwd ) | less
clear
( echo "See the enironmental varibles of a process"; echo "$ cat environ"; cat /proc/$PPID/environ ) | less
clear
( echo "Which binary is running?"; echo "$ ls -l exe"; ls -l /proc/self/exe ) | less
clear
( echo "If you have a memory adress for the error you can find out what is there"; echo "$ cat maps"; cat /proc/self/maps ) | less -S
clear
echo "and much much more..."
echo "End of Demo"
read -sn 1 x

