I personally like the format of ps and being the kind of person that likes to come up with one line tools, I created this little snippet.
{ TPID=$$; while [[ $TPID -ne 1 ]]; do ps -f $TPID | tail -n1; TPID=$(ps h -o ppid -p $TPID); done; ps -f $TPID|tac; } | tac
Saving it to use later we get this.
#!/bin/bash { TPID=${1:-$$}; while [[ $TPID -ne 1 ]]; do ps -f $TPID | tail -n1; TPID=$(ps h -o ppid -p $TPID); done; ps -f $TPID | tac; } | tac
This is what the two commands output.