Skip to content

Instantly share code, notes, and snippets.

@kirevdokimov
Last active May 18, 2020 01:34
Show Gist options
  • Save kirevdokimov/f2098fc7b7d259faa2b62968028247d2 to your computer and use it in GitHub Desktop.
Save kirevdokimov/f2098fc7b7d259faa2b62968028247d2 to your computer and use it in GitHub Desktop.
# Run process wuth given name
bash -c "exec -a MyUniqueProcessName <command> &"
# Kill process by name
pkill -f "MyUniqueProcessName"
# Show tree of processes with pids
pstree -p
# Install pstree to debian
sudo apt get install psmisc
# Run "command" silent and disowned
command 1>/dev/null 2>/dev/null & disown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment