I am using a Debian Virtual Box with the Bash shell and I am trying to use the ps command with the -c switch to find an ID of a process by searching its name. This is what I write:ps -c processnameIt then tell me: error: unsupported option (BSD syntax)This is the URL for the website that told me to use the syntax I am currently using: Understanding the kill command, and how to terminate processes in linuxAny help?
ps command not working properly?
debian;command line;ps
Try this syntax instead.ps -A | grep processNameIf your results include the process grep, remove it with:ps -A | grep processName | grep -v grepIn my experience most linux programs work the same (ps) but there are differences that will always creep up.Check YOUR current version with the manual pages for the correct syntax for your installation.man psbtw: Check the man page for grep to make it not case sensitive.man grep