Questions tagged [open-files]
Dealing with files that are currently opened in a program
139 questions
0
votes
1
answer
663
views
How to check what service is using a particular configuration file?
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 ...
0
votes
1
answer
861
views
Too many open files error, but only when accessing through a mounted disk
I am having a problem where once I try to copy something from a mounted unit on a windows dfs server (Windows server 2012), I get the "Too many open files" errors from linux, but ONLY if I ...
1
vote
0
answers
208
views
How to find all the unclosed files of a process?
I'm trying to debug if my app keeps opened files somewhere in the code. I thought of using strace for that but all of the previous topics (like this one) were talking about only opened files. While ...
1
vote
1
answer
548
views
are there any limit in increase number of openfile in linux?
i want to increase the number of openfile, and on google there are so many ex about it, but there are plenty of number too.
so, are there any limit in increase number of openfile in linux?
2
votes
2
answers
900
views
Are there "non-standard" streams in Linux/Unix?
The so-called "standard streams" in Linux are stdin, stdout, and stderr. They must be called "standard" for a reason. Are there non-standard streams? Are those non-standard streams ...
4
votes
2
answers
474
views
While working on a file in a gui application, how to quickly open the parent directory of a file in the file browser?
I am coming fro MacOS system, and in that system I am addicted to one specific function: while working with (almost) any file, in (almost) any application, I can click in the title bar of the window ...
1
vote
1
answer
153
views
what is the meaning of backslash in /etc/security/limits.conf
/etc/security/limits.conf looks like this
#<domain> <type> <item> <value>
#
#* soft core 0
#* hard rss ...
-2
votes
1
answer
139
views
Is there a comprehensive list of all the ways to view a file's contents in linux? [closed]
Is there a comprehensive list of all the ways to view a file's contents in linux, including both methods like cat as well as methods like whiptail where it isn't the reason it was created for?
I know ...
1
vote
1
answer
1k
views
How to open and read a character device as binary file?
I'm working with USB and I want to read the content of usb device descriptor in /dev/bus/usb/00x/00y - it is a character device.
I used fopen to open it as a binary file with "rb" parameter. ...
3
votes
0
answers
335
views
Calculating MAX NOFILE and MAX NPROC on Linux Servers
Is there any formula or basis that we can consider to calculate hard and soft limits for NPROC and NOFILE? My system is currently using 4096 for NOFILE which is the default value, and we recently had ...
-4
votes
1
answer
844
views
Linux 'lsof' command return large value
I'm using a linux server with tomcat 9.0.24. When I stop the tomcat server,
following output will return for 'lsof | wc -l' command
fdmt@fdm-3-136 apache-tomcat-9.0.24]$ lsof | wc -l
1203
fdmt@fdm-3-...
0
votes
1
answer
2k
views
How can we count/list all files opened by a specific program/COMMAND? [duplicate]
We can list only files opened by a specific PID as
lsof -p 1000
lsof -p 1000 | wc -l
How can we list/count the files opened by a specific program/COMMAND (e.g., java)?
And so much better, if we can ...
2
votes
1
answer
2k
views
how to verify current open files on specific service
on our rhel server 7.6 version we have the following systemctl service
/etc/systemd/system/test-infra.service
and the value of LimitNOFILE is
systemctl show test-infra.service | grep LimitNOFILE
...
-1
votes
1
answer
316
views
Locking a file to (over)writing [closed]
I have a poorly designed build script that always overwrites files that it shouldn't; if I edit these files and then run the script, it overwrites their content and, thus, the build fails.
How can I &...
3
votes
0
answers
291
views
open with ... causes one program to appear multiple times
I have a: fresh installation of Linux mint 20 cinnamon a week ago (luv it)
and i have 3d ays ago installed okular for pdfs.
My Problem: when i want to open a file, that is unknown to the system with ...