Through the document check process, through the process to check open files and so on

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.