2010/6/7 Pablo Fredrikson <[email protected]>: > 2010/6/7 CruX <[email protected]>: >> On Mon, 2010-06-07 at 11:58 -0300, Pablo Fredrikson wrote: >>> Que tal, sin querer le hice unlink a un archivo (que no era un enlace >>> simbolico) Y ME LO BORRO!?!?! >> >> man unlink: >> <snip> >> unlink - call the unlink function to remove the specified file >> </snip> >> >> man 2 unlink: >> <snip> >> NAME >> unlink - delete a name and possibly the file it refers to >> >> SYNOPSIS >> #include <unistd.h> >> >> int unlink(const char *pathname); >> >> DESCRIPTION >> unlink() deletes a name from the file system. If that name was >> the last link to a file and no processes have the file open the file is >> deleted and the space it was using is made available for reuse. >> >> If the name was the last link to a file but any processes still >> have the file open the file will remain in existence until the last file >> descriptor referring to it is closed. >> >> If the name referred to a symbolic link the link is removed. >> >> If the name referred to a socket, fifo or device the name for it >> is removed but processes which have the object open may continue to use >> it. >> </snip> >> >> Qué esperabas que hiciera unlink? Borrar un link simbólico se hace con >> rm. >> >> -- >> CruX (aka Sebastián Cruz) >> Jabber: crux @ lugmen . org . ar >> Blog: http://blog.macumba.homelinux.org >> GPG FP: 5D35 54C4 ABA7 DED9 133F 5272 04F7 13E3 B03D 64C4 >> > > Esperaba que me dijera > > unlink no puede borrar el archivo ya que no es un enlace simbolico > Eso es Windows Vista/7 style...
> > Toda mi vida use unlink para borrar enlaces simbolicos y rm para > borrar archivos, pensaba que unlink no me iba a dejar borrar un > archivo normal > > Bueno my bad :( ya que estamos, estoy buscando como recuperarlo, pero > no tiene mucho sentido ya que no era importante, pero bueno, quería > comentarlo para aquel que no sepa :p > > Gracias > > -- > Pablo Fredrikson > -- http://boris.insert-coin.org AADB 52A9 8C6B 1C73 D0C4 570E 952C 2DC1 D1D0 A4E7 gpg --keyserver pgp.mit.edu --recv-key D1D0A4E7
