The file is locked by a process, java in my case. I only want the lock to be released.
lsof | grep /home/user/workspace1
A temporary solution was to 'End Process' from 'System Monitor'.
But terminating java(Java Virtual Machine) would terminate all other programs using java. So how shall I release the lock held by any process. For the same purpose Windows has an application called 'Unlocker'.
Best Answer
Try lockf.