Command line debian - addissu/cmd-processes GitHub Wiki

  • Notes

  • *memory/ address 
    
  • *cpu cycle (also known as cpu time)
    
  • *cpu priority ER NI nice value -> to assign a different value 
    
  •  example to lower the priority of a process:
    
  •  renice 16 -p <PID> can put -p in the square brackets
    
  •  where is <PID> is the process of id
    
  •  example: renice 20 -1919 
    
  • identity: PID (process id) and user example: student@mysql-debian:$ ps aux | grep term student 1950 0.0 2.5 411436 26972 ? Sl 13:15 0:00 /usr/lib/gnome-terminal/gnome-terminal-server student 2435 0.0 0.2 12728 2260 pts/0 S+ 13:22 0:00 grep term student@mysql-debian:$ grep comd is assorting command which is assorting for grep terminal
    | (pipe command to draw line down ) | | | | | | | | |-------- ful;l path of the command that start | |------this is the process ID (PID) |----------------this is user id of the owner of the process (UID) pstree gives output of every process begining with the first process and which process initialized others

  • student@mysql-debian:$ pstree systemd─┬─ModemManager─┬─{gdbus} │ └─{gmain} ├─NetworkManager─┬─dhclient │ ├─{NetworkManager} │ ├─{gdbus} │ └─{gmain} ├─accounts-daemon─┬─{gdbus} │ └─{gmain} ├─acpid ├─agetty ├─apache2───5*[apache2] ├─at-spi-bus-laun─┬─dbus-daemon │ ├─{dconf worker} │ ├─{gdbus} │ └─{gmain} ├─at-spi2-registr───{gdbus} ├─atd ├─avahi-daemon───avahi-daemon ├─bluetoothd ├─colord─┬─{gdbus} │ └─{gmain} ├─cron ├─cups-browsed ├─cupsd ├─2*[dbus-daemon] ├─dbus-launch ├─dleyna-renderer───{gdbus} ├─evolution-calen─┬─{dconf worker} │ ├─{evolution-calen} │ ├─{gdbus} │ ├─{gmain} │ └─2*[{pool}] ├─evolution-sourc─┬─{gdbus} │ └─{gmain} ├─exim4 ├─gconfd-2 ├─gdm3─┬─Xorg │ ├─gdm-session-wor─┬─2*[gdm-session-wor─┬─{gdbus}] │ │ │ └─{gmain}] │ │ ├─x-session-manag─┬─applet.py───{gmain} │ │ │ ├─evolution-alarm─┬─{cal-client-dbu+ │ │ │ │ ├─{dconf worker} │ │ │ │ ├─{evolution-alar+ │ │ │ │ └─{gdbus} │ │ │ ├─gnome-settings-─┬─{dconf worker} │ │ │ │ ├─{gdbus} │ │ │ │ ├─{gmain} │ │ │ │ └─{pool} │ │ │ ├─gnome-shell─┬─{JS GC Helper} │ │ │ │ ├─{JS Sour Thread} │ │ │ │ ├─{dconf worker} │ │ │ │ ├─{gdbus} │ │ │ │ ├─{gmain} │ │ │ │ ├─{pool} │ │ │ │ └─{threaded-ml} │ │ │ ├─nm-applet─┬─{dconf worker} │ │ │ │ └─{gdbus} │ │ │ ├─ssh-agent │ │ │ ├─tracker-miner-a─┬─{gdbus} │ │ │ │ └─{gmain} │ │ │ ├─tracker-miner-f─┬─{dconf worker} │ │ │ │ ├─{gdbus} │ │ │ │ └─{gmain} │ │ │ ├─tracker-miner-u─┬─{gdbus} │ │ │ │ └─{gmain} │ │ │ ├─zeitgeist-datah─┬─{gdbus} │ │ │ │ ├─{gmain} │ │ │ │ └─{pool} │ │ │ ├─{dconf worker} │ │ │ ├─{gdbus} │ │ │ └─{gmain} │ │ ├─{gdbus} │ │ ├─{gmain} │ │ └─{pool} │ ├─{gdbus} │ ├─{gdm SIGUSR1 cat} │ └─{gmain} ├─gnome-keyring-d─┬─{dconf worker} │ ├─{gdbus} │ ├─{gmain} │ └─{timer} ├─gnome-shell-cal─┬─{cal-client-dbus} │ ├─{dconf worker} │ ├─{gdbus} │ └─{gnome-shell-cal} ├─gnome-terminal-─┬─bash───pstree │ ├─gnome-pty-helpe │ ├─{dconf worker} │ ├─{gdbus} │ └─{gmain} ├─goa-daemon─┬─{gdbus} │ ├─{gmain} │ └─{pool} ├─gsd-printer─┬─{gdbus} │ └─{pool} ├─gvfs-afc-volume─┬─{gdbus} │ └─{gvfs-afc-volume} ├─gvfs-goa-volume───{gdbus} ├─gvfs-gphoto2-vo───{gdbus} ├─gvfs-mtp-volume───{gdbus} ├─gvfs-udisks2-vo─┬─{gdbus} │ └─{gmain} ├─gvfsd───{gdbus} ├─gvfsd-burn─┬─{gdbus} │ └─{pool} ├─gvfsd-fuse─┬─{gdbus} │ ├─{gvfs-fuse-sub} │ └─2*[{gvfsd-fuse}] ├─gvfsd-metadata───{gdbus} ├─minissdpd ├─mission-control─┬─{dconf worker} │ └─{gdbus} ├─mysqld_safe───mysqld───16*[{mysqld}] ├─ntpd ├─packagekitd─┬─{gdbus} │ └─{gmain} ├─polkitd─┬─{gdbus} │ └─{gmain} ├─2*[pulseaudio─┬─{alsa-sink-ES137}] │ └─{alsa-source-ES1}] ├─rpc.idmapd ├─rpc.statd ├─rpcbind ├─rsyslogd─┬─{in:imklog} │ ├─{in:imuxsock} │ └─{rs:main Q:Reg} ├─rtkit-daemon───2*[{rtkit-daemon}] ├─start-pulseaudi───xprop ├─2*[systemd───(sd-pam)] ├─systemd-journal ├─systemd-logind ├─systemd-udevd ├─tracker-extract─┬─{dconf worker} │ ├─{gdbus} │ ├─{gmain} │ └─10*[{pool}] ├─tracker-store─┬─{dconf worker} │ ├─{gdbus} │ ├─{gmain} │ └─4*[{pool}] ├─udisksd─┬─{cleanup} │ ├─{gdbus} │ ├─{gmain} │ └─{probing-thread} ├─upowerd─┬─{gdbus} │ └─{gmain} ├─vmtoolsd───{gmain} ├─vmtoolsd ├─vmware-vmblock-───2*[{vmware-vmblock-}] ├─wpa_supplicant ├─zeitgeist-daemo───{gdbus} └─zeitgeist-fts─┬─cat ├─{gdbus} └─{gmain} for a visualization of process inheritance

    su cat/etc/passwd

⚠️ **GitHub.com Fallback** ⚠️