Categories: TutorialsUbuntu

Fuser Command in Linux

Introduction

Files and folders in Linux are accessed by processes of a particular identity. You must know the id of the specific process if you want to perform any action on that process.

It is among the most important tasks of Linux systems administrators. It is involved in a number of activities under supervision, signaling processes, and setting the priorities of processes on the system.

Now we’re gonna teach you to find processes by using the fuser command in Linux.

The syntax of the fuser command

The popular syntax:

$ fuser [options] [file|socket]
$ fuser [options] -SIGNAL [file|socket]
$ fuser -l

Or you can look up usage with the command:

$ fuser

Output:

Using the fuser command

1. Checking the process detail accessing

$ fuser -v .

Output:

In the above command, it displayed USER, PID, ACCESS and COMMAND.

For example, I want to check the processes accessing of file test:

$ fuser -v -m test

Output:

2. Killing signal

For example, to kill all the processes, run the command:

$ fuser -k .

Output:

Using -ki option to ask yes/no:

$ fuser -ki .

Output:

3. Listing all signals:

$ fuser -l

Output:

Conclusion

We just taught you to find processes by using the fuser command in Linux.

Thank you for reading!

Ubuntu Server Admin

Recent Posts

Advantech AOM-2721 is now Ubuntu Certified

Canonical announces that the Advantech AOM-2721 is officially joining the list of Ubuntu Certified Hardware.…

9 hours ago

Ruby and Rails Performance Roundup: The Backlog Edition

Yet again instead of tweets, a blog post. The backlog got out of hand -…

10 hours ago

How to Deploy OpenProject on Ubuntu VPS

This article provides a guide demonstrating how to deploy OpenProject on Ubuntu VPS. What is…

10 hours ago

Canonical integrates NVIDIA Nemotron 3.5 Lightning with Ubuntu for always-on AI agents

Canonical is pleased to announce that  NVIDIA’s newly introduced NVIDIA Nemotron 3.5 Lightning, an open,…

2 days ago

Xfwl4’s Second Preview Release

I’m pleased to announce the second preview release of xfwl4, Xfce’s Wayland compositor, version 4.21.1.…

2 days ago

How to Install, Secure, and Set Up MySQL on Ubuntu 26.04 LTS

If you have been using an ecommerce store to place online orders or have been…

3 days ago