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.
I use ps command to find out all running process on my Linux and Unix system. The ps command shows information about a selection of the active processes on shell. You may also pipe out ps command output through grep command to pick up desired output.
Explains how to view all loaded device driver (modules) by Linux kernel using various command line utilities.
Asked by Chetan Joshi:
Question: What is the best way to find out what shell I am using on Linux? The echo $SHELL is not so reliable. Please let me know any tiny command or trick.