-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2006-09-21 a las 09:36 -0500, Alejandro Jiménez escribió:
pero que error te sale exactamente ???
-------------------------------------
Me referí obviamente al manual y me menciona que para eliminar directorios es con la opción -d o --directory por lo que me queda así:
rm -d .Trash y me manda el mensaje: No se puede eliminar porque [.Trash] es un directorio...
Estás intentando borrar el fichero .Trash. El rm borra contenidos de directorios, no el directorio. La opción "-d" el manual dice claramente que no funciona en todos los sistemas, y además, te da una advertencia muy importante: `-d' `--directory' Use the `unlink' function unconditionally rather than attempting to check whether the file is a directory and using `rmdir' if it is a directory. This can be useful on corrupted file systems where `unlink' works even though other, file-checking functions fail. For directories, this works only if you have appropriate privileges and if your operating system supports `unlink' for directories. Because unlinking a directory causes any files in the deleted directory to become unreferenced, it is wise to `fsck' the file system afterwards. O sea, no uses la opción -d que te cargas el sistema de ficheros.
para este comando en el manual no menciona muchas opciones por lo que solo pongo algo como esto:
rmdir .Trash y me manda el siguiente mensaje: El directorio no está vacío.
Ese si sirve para borrar el directorio, pero antes tienes que vaciarlo. Prueba esto otro: rm .Trash/* rmdir .Trash Y te funcionará a no ser que tenga subdirectorios, en cuyo caso a rm tendrás que darle la -r de recursive. Se podría hacer: rm -r --preserve-root .Trash/* Y si no te gusta la linea de comandos, pues puedes probar con Midnight Comander, mc, al estilo del clásico Norton Comander del Dos. Muy útil. - -- Saludos Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD4DBQFFEqhBtTMYHG2NR9URAgHBAJdYh7X5u/TL8mfw2miPcwKojxNaAJ9Refi5 qXnodYKEix12j8ExExk2Ug== =DW2e -----END PGP SIGNATURE-----