mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 08:35:32 +02:00
fuser: add new examples (#2513)
This commit is contained in:
parent
37ffdcb0a7
commit
6fe6ed9641
1 changed files with 18 additions and 3 deletions
|
@ -1,8 +1,23 @@
|
|||
# fuser
|
||||
|
||||
> Display process IDs currently using files or sockets.
|
||||
> Require admin privileges.
|
||||
|
||||
- Identify process using a TCP socket:
|
||||
- Find which processes are accessing a file or directory:
|
||||
|
||||
`fuser -n tcp {{port}}`
|
||||
`fuser {{path/to/file_or_directory}}`
|
||||
|
||||
- Show more fields (`USER`, `PID`, `ACCESS` and `COMMAND`):
|
||||
|
||||
`fuser --verbose {{path/to/file_or_directory}}`
|
||||
|
||||
- Identify processes using a TCP socket:
|
||||
|
||||
`fuser --namespace tcp {{port}}`
|
||||
|
||||
- Kill all processes accessing a file or directory (sends the `SIGKILL` signal):
|
||||
|
||||
`fuser --kill {{path/to/file_or_directory}}`
|
||||
|
||||
- Find which processes are accessing the filesystem containing a specific file or directory:
|
||||
|
||||
`fuser --mount {{path/to/file_or_directory}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue