domingo, noviembre 12, 2006

 

Tarea 2

Tarea HardLink y SoftLink
Alumno: Douglas Yovanny Velasquez Escoto
Cuenta: 971269
HardLink
#ln archivo harklink
#ls -lai
total 4
3303 drwxr-xr-x 2 root operator 80 Oct 28 12:08 .
3302 drwxr-xr-x 3 root operator 96 Oct 28 10:49 ..
3306 -rw-r--r-- 2 root operator 26 Oct 28 12:07 archivo
3306 -rw-r--r-- 2 root operator 26 Oct 28 12:07 harklink
#chmod +x archivo
total 4
3303 drwxr-xr-x 2 root operator 80 Oct 28 12:08 .
3302 drwxr-xr-x 3 root operator 96 Oct 28 10:49 ..
3306 -rwxr-xr-x 2 root operator 26 Oct 28 12:07 archivo
3306 -rwxr-xr-x 2 root operator 26 Oct 28 12:07 harklink
#chmod -r harklink
total 4
3303 drwxr-xr-x 2 root operator 80 Oct 28 12:08 .
3302 drwxr-xr-x 3 root operator 96 Oct 28 10:49 ..
3306 --wx--x--x 2 root operator 26 Oct 28 12:07 archivo
3306 --wx--x--x 2 root operator 26 Oct 28 12:07 harklink
* Por lo tanto se afectan uno y el otro

SoftLink
#ln -s archivo softlink
ln: softlink: Function not implemented

*Minix no soporta un enlace blando
pero probandolo en linux
$ln -s archivo softlink
97373 drwxr-xr-x 2 douglas douglas 4096 Oct 28 12:08 .
96577 drwxr-xr-x 3 douglas douglas 4096 Oct 28 10:49 ..
97382 -rw--r--r- 2 douglas douglas 41 Oct 28 12:07 archivo
97375 lrwxrwxrwx 2 douglas douglas 7 Oct 28 12:07 softlink -> archivo
$ chmod -r archivo
$ ls -lai
97373 drwxr-xr-x 2 douglas douglas 4096 Oct 28 12:08 .
96577 drwxr-xr-x 3 douglas douglas 4096 Oct 28 10:49 ..
97382 -rw------- 2 douglas douglas 41 Oct 28 12:07 archivo
97375 lrwxrwxrwx 2 douglas douglas 7 Oct 28 12:07 softlink -> archivo
$ chmod +x softlink
$ ls -lai
97373 drwxr-xr-x 2 douglas douglas 4096 Oct 28 12:08 .
96577 drwxr-xr-x 3 douglas douglas 4096 Oct 28 10:49 ..
97382 -rwx--x--x 2 douglas douglas 41 Oct 28 12:07 archivo
97375 lrwxrwxrwx 2 douglas douglas 7 Oct 28 12:07 softlink -> archivo

*Solo se afecta el archivo original

Comments: Publicar un comentario



<< Home

This page is powered by Blogger. Isn't yours?