To find information about a process including all command line parameters in Unix or Linux, you can use the ps
command with the -p
option and the process ID.
The ps
command allows you to display information about processes running on the system, including the process ID, the command line arguments, and other details. The -p
option allows you to specify a process ID, and display information only for that process.
Here is an example of how you can use the ps
command to find information about a process including all command line parameters:
# Find information about process 12345 ps -p 12345 -o pid,cmd
This will display the process ID (pid
) and the command line arguments (cmd
) for process 12345
. The output will look something like this:
PID CMD 12345 /usr/bin/process -a -b -c
You can also use the -o
option to specify additional columns to display. For example, to display the process owner (user
), the start time (stime
), and the process state (state
), you can use the following command:
# Find information about process 12345 ps -p 12345 -o pid,user,stime,state,cmd
This will display the process ID, process owner, start time, process state, and command line arguments for process 12345
. The output will look something like this:
PID USER STIME STATE CMD 12345 root Mar12 S /usr/bin/process -a -b -c
Overall, the ps
command is a useful tool for finding information about processes running on a Unix or Linux system, including the command line arguments. It allows you to easily view detailed information about a process, and can be customized to display only the information you need.