ps command

For security reason you may need to find out current working directory of a process. You can obtained this information by visiting /proc/pid/cwd directory or using the pwdx command. The pwdx command reports the current working directory of a process or processes.

{ 3 comments }

Generally you use ps command to find out all running process. You may also pipe out ps command output via grep command to pickup desired output. Basically you don’t want display grep command as the process. Let us run combination of ps and grep command to find out all perl processes: $ ps aux | […]

{ 20 comments }

Explains how to view all loaded device driver (modules) by Linux kernel using various command line utilities.

{ 3 comments }

Asked by Chetan Joshi Q. What is the best way to find out what shell I’m using. echo $SHELL is not so reliable. Please let me know any tiny command or trick. A. Chetan, echo $SHELL should work. But here is old good UNIX trick. Use the command ps with -p {pid} option, which selects […]

{ 28 comments }