UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

#1 2007-08-19 06:13 AM

zhn636
Member
Registered: 2007-04-24
Posts: 146

Re: unlink

if I want to delete a file in a directory whether I must unlink this file?
  what the step I must do if I want to safely delete a file ?

Offline

#2 2007-08-19 11:54 AM

i3839
Oddministrator
From: Amsterdam
Registered: 2003-06-07
Posts: 2,230

Re: unlink

Yes, use unlink to remove files, and rmdir for directories.

Only thing you need to do to be safe is being sure that you really want to delete the file.

Offline

Board footer

Powered by FluxBB