procesamiento paralelo - introducción unix procesamiento paralelo introducci on unix javier...
TRANSCRIPT
Procesamiento ParaleloIntroduccion UNIX
Javier Iparraguirre
Universidad Tecnologica Nacional, Facultad Regional Bahıa Blanca11 de Abril 461, Bahıa Blanca, Argentina
http://www.frbb.utn.edu.ar/hpc/
25 de marzo de 2016
UNIX
• Origen en 1969
• Nosotros usamos un derivado: Linux
• Sugerimos Ubuntu o Debian
• Pueden usar el que quieran
Listando archivos
j a v i e r @ d e l f i n : ˜ / Downloads$ l sj a v i e r @ d e l f i n : ˜ / Downloads$ pwd/home/ j a v i e r / Downloadsj a v i e r @ d e l f i n : ˜ / Downloads$ l s −a lt o t a l 8drwx−−−−−− 2 j a v i e r j a v i e r 4096 Mar 12 2 1 : 0 3 .drwxr−xr−x 36 j a v i e r j a v i e r 4096 Mar 12 2 1 : 1 3 . .j a v i e r @ d e l f i n : ˜ / Downloads$ cd . .j a v i e r @ d e l f i n : ˜ $ pwd/home/ j a v i e r
Sistema
j a v i e r @ d e l f i n : ˜ $ whoamij a v i e rj a v i e r @ d e l f i n : ˜ $ hostnamed e l f i nj a v i e r @ d e l f i n : ˜ $ uname −aL i n u x d e l f i n 3.0.0−1−686−pae #1 SMP Sat Aug 27 1 6 : 4 1 : 0 3 UTC 2011 i 6 8 6 GNU/ L i n u xj a v i e r @ d e l f i n : ˜ $ d f −hF i l e s y s t e m S i z e Used A v a i l Use % Mounted onr o o t f s 227G 87G 129G 41 % /udev 2 . 0G 0 2 . 0G 0 % / devtmpfs 400M 748K 399M 1 % / run/ dev / d i s k /by−u u i d / d1ee8484−3756−4f6e−8d7e−4b96a45c5513 227G 87G 129G 41 % /tmpfs 799M 140K 799M 1 % / run /shm/ dev / sdb1 7 . 5G 54M 7 . 4G 1 % / media /JAVIER−8GB
Creando archivos
j a v i e r @ d e l f i n : ˜ / Downloads$ l sj a v i e r @ d e l f i n : ˜ / Downloads$ touch a l g o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ c a t a l g o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ nano a l g o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ c a t a l g o . t x te s t o e s e l c o n t e n i d o ! !j a v i e r @ d e l f i n : ˜ / Downloads$ l sa l g o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ l s − lt o t a l 4−rw−r−−r−− 1 j a v i e r j a v i e r 23 Mar 12 2 2 : 0 2 a l g o . t x t
Creando directorios
j a v i e r @ d e l f i n : ˜ / Downloads$ l sa l g o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ mkdir un−d i r e c t o r i oj a v i e r @ d e l f i n : ˜ / Downloads$ l sa l g o . t x t un−d i r e c t o r i oj a v i e r @ d e l f i n : ˜ / Downloads$ l s − lt o t a l 8−rw−r−−r−− 1 j a v i e r j a v i e r 23 Mar 12 2 2 : 0 2 a l g o . t x tdrwxr−xr−x 2 j a v i e r j a v i e r 4096 Mar 12 2 2 : 1 2 un−d i r e c t o r i o
Borrando
j a v i e r @ d e l f i n : ˜ / Downloads$ l s − lt o t a l 8−rw−r−−r−− 1 j a v i e r j a v i e r 23 Mar 12 2 2 : 0 2 a l g o . t x tdrwxr−xr−x 2 j a v i e r j a v i e r 4096 Mar 12 2 2 : 1 2 un−d i r e c t o r i oj a v i e r @ d e l f i n : ˜ / Downloads$ rm −r un−d i r e c t o r i o /j a v i e r @ d e l f i n : ˜ / Downloads$ l sa l g o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ rm a l g o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ l s
Editando
j a v i e r @ d e l f i n : ˜ / Downloads$ l sj a v i e r @ d e l f i n : ˜ / Downloads$ nano un−a r c h i v o . t x tj a v i e r @ d e l f i n : ˜ / Downloads$ c a t un−a r c h i v o . t x tahora e d i t o ! ! !
Algunos editores de texto
• Vi o Vim
• Emacs
• Elvis
Instalando paquetes
apt−g e t updateapt−g e t i n s t a l l qt−sdk
Historia de UNIX (Fuente: Wikipedia)
Lugares para seguir leyendo
• Ubuntu Documentation https://help.ubuntu.com/
• Norman Matloff’s Unix and Linux Tutorial Centerhttp://heather.cs.ucdavis.edu/~matloff/unix.html