Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed below are some of the most basic commands when it comes to system analysis and debugging server issues such as:
- Finding out bottlenecks.
- Disk (storage) bottlenecks.
- CPU and memory bottlenecks.
- Network bottlenecks.
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. It reports the current working directory of a process or processes. Find out out working directory for a process Run ps aux to find out PID [...]
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 | [...]
Explains how to view all loaded device driver (modules) by Linux kernel using various command line utilities.
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 [...]