Eedede

Disponível somente no TrabalhosFeitos
  • Páginas : 7 (1649 palavras )
  • Download(s) : 0
  • Publicado : 2 de abril de 2013
Ler documento completo
Amostra do texto
Exercicios Propostos

1)
diogo@DiogoUbuntu:~$ mkdir PL
diogo@DiogoUbuntu:~$ ls
Desktop Documents Downloads examples.desktop Music Pictures PL Public Templates Videos
diogo@DiogoUbuntu:~$ mkdir PL/trab1
diogo@DiogoUbuntu:~$ tree
├── Desktop
├── Documents
├── Downloads
│   ├── SO_modelo_PL.odt
│   └── Trabalho_Pratico_no_1.pdf
├── examples.desktop
├── Music
├──Pictures
├── PL
│   └── trab1
├── Public
├── Templates
└── Videos

10 directories, 3 files

diogo@DiogoUbuntu:~$ cd PL/trab1
diogo@DiogoUbuntu:~/PL/trab1$ pwd
/home/diogo/PL/trab1
diogo@DiogoUbuntu:~/PL/trab1$

2)
diogo@DiogoUbuntu:/$ ls -l
total 96
drwxr-xr-x 2 root root 4096 Mar 10 23:04 bin
drwxr-xr-x 3 root root 4096 Mar 10 23:11 boot
drwxr-xr-x 2 rootroot 4096 Mar 10 22:20 cdrom
drwxr-xr-x 15 root root 4160 Mar 11 20:23 dev
drwxr-xr-x 135 root root 12288 Mar 11 20:23 etc
drwxr-xr-x 3 root root 4096 Oct 9 15:59 home
lrwxrwxrwx 1 root root 32 Mar 10 23:08 initrd.img -> boot/initrd.img-3.5.0-25-generic
lrwxrwxrwx 1 root root 33 Mar 10 23:06 initrd.img.old -> /boot/initrd.img-3.5.0-25-generic
drwxr-xr-x 23 root root4096 Mar 10 23:04 lib
drwx------ 2 root root 16384 Mar 10 22:17 lost+found
drwxr-xr-x 3 root root 4096 Mar 10 23:40 media
drwxr-xr-x 2 root root 4096 Oct 9 15:59 mnt
drwxr-xr-x 2 root root 4096 Oct 17 15:56 opt
dr-xr-xr-x 182 root root 0 Mar 11 20:23 proc
drwx------ 3 root root 4096 Mar 10 23:39 root
drwxr-xr-x 22 root root 780 Mar 11 20:39 run
drwxr-xr-x 2 rootroot 12288 Mar 10 23:12 sbin
drwxr-xr-x 2 root root 4096 Jun 11 2012 selinux
drwxr-xr-x 2 root root 4096 Oct 17 15:56 srv
dr-xr-xr-x 13 root root 0 Mar 11 20:23 sys
drwxrwxrwt 9 root root 4096 Mar 11 20:45 tmp
drwxr-xr-x 10 root root 4096 Oct 17 15:56 usr
drwxr-xr-x 14 root root 4096 Mar 11 12:02 var
lrwxrwxrwx 1 root root 29 Mar 10 23:08 vmlinuz ->boot/vmlinuz-3.5.0-25-generic
lrwxrwxrwx 1 root root 29 Mar 10 23:06 vmlinuz.old -> boot/vmlinuz-3.5.0-25-generic

3)
diogo@DiogoUbuntu:~/PL/trab1$ pwd
/home/diogo/PL/trab1

4)
a)
diogo@DiogoUbuntu:~/PL/trab1$ mkdir sala
diogo@DiogoUbuntu:~/PL/trab1$ cd sala
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador1
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador2diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador3
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador4
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador5
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador6
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador7
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador8
diogo@DiogoUbuntu:~/PL/trab1/sala$ mkdir computador9
diogo@DiogoUbuntu:~/PL/trab1/sala$ cddiogo@DiogoUbuntu:~$ cd PL
diogo@DiogoUbuntu:~/PL$ tree
└── trab1
└── sala
├── computador1
├── computador2
├── computador3
├── computador4
├── computador5
├── computador6
├── computador7
├── computador8
└── computador9

b)
diogo@DiogoUbuntu:~$ cd PL/trab1/sala
/computador1
diogo@DiogoUbuntu:~/PL/trab1/sala/computador1$ mkdir docentediogo@DiogoUbuntu:~/PL/trab1/sala/computador1$ mkdir aluno
diogo@DiogoUbuntu:~$ cd PL/trab1/sala/computador2
diogo@DiogoUbuntu:~/PL/trab1/sala/computador2$ mkdir alunos
diogo@DiogoUbuntu:~/PL/trab1/sala/computador2$ mkdir docente
diogo@DiogoUbuntu:~$ cd PL/trab1/sala/computador3
diogo@DiogoUbuntu:~/PL/trab1/sala/computador3$ mkdir alunos
diogo@DiogoUbuntu:~/PL/trab1/sala/computador3$ mkdir docentediogo@DiogoUbuntu:~$ cd PL/trab1/sala/computador4
diogo@DiogoUbuntu:~/PL/trab1/sala/computador4$ mkdir alunos
diogo@DiogoUbuntu:~/PL/trab1/sala/computador4$ mkdir docente
diogo@DiogoUbuntu:~$ cd PL/trab1/sala/computado5
diogo@DiogoUbuntu:~/PL/trab1/sala/computador5$ mkdir alunos
diogo@DiogoUbuntu:~/PL/trab1/sala/computador5$ mkdir docente
diogo@DiogoUbuntu:~$ cd PL/trab1/sala/computador6...
tracking img