Get the command line of a process without the ps command.

Posted: February 22, 2016. At: 11:22 AM. This was 2 years ago. Post ID: 8755
Page permalink.
WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters. These cookies expire two weeks after they are set.

To get the command line of a process without the ps command, and the PID of the command is known, use this command. This example is using a process with a PID of 3380.

[email protected]:~$ cat /proc/3380/cmdline 

This will show the command line of the process without using the ps command. So blocking the ps command on a Linux system will not stop users from gaining information about the command-line switches used by a certain process.

No comments have been made. Use this form to start the conversation :)

Leave a Reply