yes its LSOF command .. but I need to create a script file .. by running it will write the output in a log file with the currently opened files in Linux
Durga Charan Ojha - why did you use 'Request Attention'? You can just ask about that number 38025 here by posting a comment.
The output of this simple script I suggested is showing date/time + text + number of files. If you just want the number then do this:
echo $(lsof | grep REG | wc -l) >> output.txt
Durga Ojha
ASKER
Hi Gerwin Jansen, EE MVE
Do you mean 38025 is the number of file opened in linux ?
Let say I have firefox, chrome and one libre office file opened .. is there any command to check this from ssh
so that output will show only for the opened applications
I tried only lsof - the output keeps on running .. i just closed the terminal
as said I need only output like as i know in the machine I have just opened chrome, firefox, editor
so it should show output .