On Fri, Mar 24, 2017 at 2:44 PM, Scott scottro@nyc.rr.com
[LINUX_Newbies] <LINUX_Newbies@yahoogroups.com> wrote:
> On Fri, Mar 24, 2017 at 07:11:01PM +0100, 'highskywhy@yahoo.de' highskywhy@yahoo.de [LINUX_Newbies] wrote:
>> the problem is NOT
>>
>> system files
>>
>> we wanna delete in win and libnux HTM files.
>>
>> RM brings the message: file is in use
>
> Then you have to figure out what is using it and temporarily stop the
> process. ps -aux|grep -i htm might help.
lsof is also your friend:
bladernr@galactica:/tmp$ tail -f testfile &
[1] 7731
bladernr@galactica:/tmp$ 1,2,3
bladernr@galactica:/tmp$ lsof |grep testfile
tail 7731 bladernr 3r REG
8,2 6 4068243 /tmp/testfile
shows that testfile is currently opened by tail.
Posted by: J <dreadpiratejeff@gmail.com>
Reply via web post | • | Reply to sender | • | Reply to group | • | Start a New Topic | • | Messages in this topic (25) |
No comments:
Post a Comment