Check Current TerminalLast updated Nov 2, 2022 Edit SourceLinuxBashTerminalSnippets1 2 basename "/"$(ps -f -p $(cat /proc/$(echo $)/stat | cut -d \ -f 4) | tail -1 | sed 's/^.* //')