There is a command-line option to see what files are open with gedit? If I open two files in gedit (file1 and file2) and in terminal I use the command:
ps ax | grep-v grep | grep gedit
I get only the first file opened. (5944 pts/0 S+ 0:01 gedit /home/file1)
Using this command I do not see that file2 is also open in gedit. It is another way?
lsof
doesn't know about any open files related togedit
even ifstrace
shows they have been opened.ps -C gedit
to search for an known app and avoid to double grep.code
ps -C gedit PID TTY TIME CMD 5964 tty1 00:00:01 gedit/code
Where is informations about file1 and file2 ?