Bash cheats

From regional-training
Revision as of 20:29, 9 August 2022 by Ralph (talk | contribs) (Created page with "* locate full commandline of a process ps aux | egrep [c]loud-drive-daemon | awk '{print $11}' * kill a process by name kill $(ps aux | egrep '[n]ame.py'| awk '{print $3}') * check if process is running if egrep '[c]loud-drive-deamon' =~ =json= * https://stackoverflow.com/questions/48470049/build-a-json-string-with-bash-variables =categories= [[category:Linux category:Tips category:Programming tips category:public")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • locate full commandline of a process
ps aux | egrep [c]loud-drive-daemon | awk '{print $11}'
  • kill a process by name
kill $(ps aux | egrep '[n]ame.py'| awk '{print $3}')
  • check if process is running
if [[$ps aux | egrep '[c]loud-drive-deamon' =~

json

categories