0

I'm new to Linux, and I need to know if there is a way to check which service or program is using a particular configuration file.

A different deployment on the server is failing, and the error message is:

file /opt/deployment/dev/deploy.cfg busy 

This means that the file deploy.cfg is busy.

  1. How may I tell who or what keeps the file busy.
  2. How would I make the file "not busy".
1
  • You can try man lsof Commented Aug 18, 2022 at 17:51

1 Answer 1

0

Try lsof command and see what program is using a particular file, for example: lsof /opt/deployment/dev/deploy.cfg

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.