lsof

lsof

 

The lsof command shows you the files that are opened by a command. Here all of the processes associated with /dev/tty1 are listed.

 

gam_serve 7668 mike 56r DIR 3,1 4096 213306 /var/lib/update-notifier/user.d

gam_serve 7668 mike 57r DIR 3,1 4096 229378 /var/lib/dpkg

gam_serve 7668 mike 58r DIR 3,1 4096 229723 /var/cache/apt/archives/partial

gam_serve 7668 mike 59r DIR 3,1 40960 213002 /var/cache/apt/archives

gam_serve 7668 mike 60r DIR 3,1 4096 229729 /var/lib/apt/lists/partial

gam_serve 7668 mike 61u unix 0xc1ea06e0 16121 socket

gam_serve 7668 mike 62r DIR 3,1 4096 164297 /home/mike/Desktop/book

gam_serve 7668 mike 63r DIR 3,1 4096 164312 /home/mike/Desktop/book/Commands

xscreensa 7676 mike cwd DIR 3,1 4096 2 /

xscreensa 7676 mike rtd DIR 3,1 4096 2 /

xscreensa 7676 mike txt REG 3,1 218264 1245493 /usr/bin/xscreensaver

xscreensa 7676 mike mem REG 3,1 58716 836298 /usr/share/fonts/truetype/ttf-bitstream-vera/VeraBd.ttf

xscreensa 7676 mike mem REG 3,1 605432 836325 /usr/share/fonts/truetype/freefont/FreeSerif.ttf

xscreensa 7676 mike mem REG 3,1 65932 836296 /usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf

xscreensa 7676 mike mem REG 3,1 31972 745625 /usr/lib/libXcursor.so.1.0.2

xscreensa 7676 mike mem REG 3,1 34516 753716 /lib/tls/i686/cmov/libnss_files-2.3.2.so

xscreensa 7676 mike mem REG 3,1 32348 753721 /lib/tls/i686/cmov/libnss_nis-2.3.2.so

xscreensa 7676 mike mem REG 3,1 73304 753713 /lib/tls/i686/cmov/libnsl-2.3.2.so

xscreensa 7676 mike mem REG 3,1 28420 753714 /lib/tls/i686/cmov/libnss_compat-2.3.2.so

xscreensa 7676 mike mem REG 3,1 129972 745570 /usr/lib/libexpat.so.1.0.0

xscreensa 7676 mike mem REG 3,1 65256 737904 /usr/lib/libz.so.1.2.2

xscreensa 7676 mike mem REG 3,1 447212 743696 /usr/lib/libfreetype.so.6.3.5

xscreensa 7676 mike mem REG 3,1 154916 745604 /usr/lib/libfontconfig.so.1.0.4

xscreensa 7676 mike mem REG 3,1 1222116 753708 /lib/tls/i686/cmov/libc-2.3.2.so

xscreensa 7676 mike mem REG 3,1 18300 753709 /lib/tls/i686/cmov/libcrypt-2.3.2.so

xscreensa 7676 mike mem REG 3,1 9152 753710 /lib/tls/i686/cmov/libdl-2.3.2.so

xscreensa 7676 mike mem REG 3,1 30360 753690 /lib/libpam.so.0.76

xscreensa 7676 mike mem REG 3,1 68884 745615 /usr/lib/libXft.so.2.1.1

xscreensa 7676 mike mem REG 3,1 51760 820968 /usr/X11R6/lib/libXext.so.6.4

xscreensa 7676 mike mem REG 3,1 802576 820962 /usr/X11R6/lib/libX11.so.6.2

xscreensa 7676 mike mem REG 3,1 316976 820981 /usr/X11R6/lib/libXt.so.6.0

xscreensa 7676 mike mem REG 3,1 85680 820483 /usr/X11R6/lib/libICE.so.6.3

xscreensa 7676 mike mem REG 3,1 31804 820485 /usr/X11R6/