Article Title: Configure an open-source security tool for the Solaris server (below ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Linux.chinaitlab.com/safe/737833.html "> the http://linux.chinaitlab.com/safe/737833.html configures open source security tools for Solaris servers (on)
4. Understand the proc file system
There is a/proc file system in the Solaris File System, and some huge files are put there. The/proc file system is not a common file system, it is an access interface to the address space of the running process. Through/proc, you can use standard Unix system calls (such as open (), read (), write (), ioctl (), and so on) to access the process address space. In fact, the Solaris ps (1) command uses/proc to get the process status.
The/proc tool is well-developed under Solaris and is located in the/usr/proc/bin directory. These tools provide a simple way to access critical data of any specified process. /Proc is attractive because it contains any information you may want to know about a process. /Proc is a directory that contains various files that reflect the kernel and process tree. These files and directories do not exist in the disk. Therefore, when you read and write these files, you actually get the relevant information from the operating system. For example:
Pldd-list dynamic databases connected by processes
Pstack-Call Stack
Pfiles-List of opened file descriptors
Ptree-process relationship tree
You can use the following command to view the port list
/Usr/proc/bin/pfiles? *?> /Tmp/pfiles. out
You can use the following command to view the process list
[1] [2] [3] [4] [5] Next page