I was going through the questions of this site. In this particular question, I see the command lsof being used to list the files that are open for a particular user. I ran the below command in my terminal.
lsof -a -u root -d txt I am seeing a long output which are completely irrelevant (at least to me). I am finding it hard to understand the output produced. This is
mapping-d 3992 root txt REG 8,5 29728 7169187 /usr/libexec/mapping-daemon clock-app 4005 root txt REG 8,5 88048 7169216 /usr/libexec/clock-applet mixer_app 4007 root txt REG 8,5 53484 7169197 /usr/libexec/mixer_applet2 gnome-scr 4078 root txt REG 8,5 168628 1337742 /usr/bin/gnome-screensaver notificat 4081 root txt REG 8,5 34732 1324168 /usr/libexec/notification-daemon gnome-ter 4219 root txt REG 8,5 309400 1318348 /usr/bin/gnome-terminal gnome-pty 4221 root txt REG 8,5 12384 1899888 /usr/lib/vte/gnome-pty-helper bash 4222 root txt REG 8,5 735932 196459 /bin/bash firefox 15551 root txt REG 8,5 121288 2424613 /usr/lib/firefox/firefox npviewer. 15790 root txt REG 8,5 174364 1996912 /usr/lib/nspluginwrapper/npviewer.bin bash 15908 root txt REG 8,5 735932 196459 /bin/bash lsof 16014 root txt REG 8,5 129820 1323233 /usr/sbin/lsof lsof 16015 root txt REG 8,5 129820 1323233 /usr/sbin/lsof I was expecting, if I had opened a txt file as the root user, only that file's information would be displayed, if I run the lsof command. Can someone please help me in understanding what this command actually produces as the output?