The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 10,443     Votes:  3 
Tags: command-line   bash   tty  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/1026071
Title: What's the shell session?
ID: /2018/04/18/What_s-the-shell-session_
Created: April 18, 2018
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


To see your current shell along with it’s process ID, the process ID of parents and the process ID of current command use:

$ pstree -aps $$
systemd,1 splash fastboot kaslr
  └─lightdm,1050
      └─lightdm,1294 --session-child 12 19
          └─upstart,1883 --user
              └─gnome-terminal-,10481
                  └─bash,3612
                      └─pstree,15684 -aps 3612
⇧ Why does Ubuntu enable TRIM for certain brands only? Put . ~/.bashrc and now prompts 2 files to edit indefinitely  ⇩