[linux] How do i get the process group id of a particular application

Trying to set the priority of brave but htop only lists PID


You can run:

$ ps -Ao gid,fname | grep brave
# Output:
# 1000 brave

# -A all processes
# -o gid,fname specifies output format to include the group id and process name only
1 Like