Fuser-Files, directories, sockets to find the programs that use them
When uninstalling a USB, prompt the device is busy, this time you can use Fuser-k directory to kill the process under the USB path, and then uninstall the OK.
You can also use Fuser-k directory to view the file system, or sockets, and so on, by how many programs are used.
Lsof-Lists the open files. You can query the files and devices that are opened or used by a program
1. Lsof Abc.txt shows the process of opening the file Abc.txt 2. Lsof-i: 22 knows what program 22 port is running now 3. LSOF-C ABC shows that the ABC process now opens the file 4. Lsof-g GID shows the process of attribution to GID 5. Lsof +d/usr/local/Displays the file 6 that is opened by the process in the directory. Lsof-p 1000 (view open file for process with process ID 1000)
Pidof-Find the PID that runs the program
Through the document check process, through the process to check open files and so on