Txt

Byte sized tech know-how.

  • Home
  • About

Tag Archives: unmount

04 Jan

Find Open File in a Given Directory

Find the process that’s opened the file from a specified directory. You can use this if you cannot unmount a USB drive and want to know which file is open.


lsof +D /media/usb

Original Article

admin Posted in Command Line, Linux command, file, folder, Linux, lock, lsof, open, umount, unmount, usb 1 Comment

Post navigation

Categories

  • Code
  • Command Line
  • Configuration
  • CSS
  • HTML
  • internet
  • JavaScript
  • Linux
  • Mobile
  • Perl
  • PHP
  • Python
  • Ruby
  • Uncategorized

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Fruitful theme by fruitfulcode Powered by: WordPress
↑