Sie sind auf Seite 1von 11

SISTEMAS DE COMPUTACIN II

INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

23 DE AGOSTO DE 2013
ESCUELA MILITAR DE INGENIERIA INGENIERA EN SISTEMAS ELECTRNICOS, 6TO SEMESTRE, GRUPO #2

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP

Contenido
1. 1.1. 1.2. 2. 3. 4. OBJETIVOS. ............................................................................................................................................ 1 OBJETIVO GENERAL........................................................................................................................... 1 OBJETIVOS ESPECFICOS.................................................................................................................... 1 IMPLEMENTACIN. ............................................................................................................................... 1 PLAN DE PRUEBAS................................................................................................................................. 3 RECOMENDACIONES. ............................................................................................................................ 8

BIBLIOGRAFA.

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP

INFORME DE LABORATORIO #1: COMANDOS DE LINUX.


1. OBJETIVOS. 1.1. OBJETIVO GENERAL.
Programar Linux para que realice tareas de manera automtica o guiadas por el usuario de manera simplificada.

1.2. OBJETIVOS ESPECFICOS.


Programar un men para simplificar tareas mediante la lnea de comandos de LinuxUbuntu.

2. IMPLEMENTACIN.
Con ayuda de Vmware y una virtualizacin de Ubuntu escribimos en el fichero de notas:

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP

Cambiamos la extensin del archivo a X.sh, o por defecto cambiamos las propiedades con chmod 777, pero en nuestra versin de Ubuntu funciona con solo cambiar la extensin del archivo:

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP

3. PLAN DE PRUEBAS.
Haciendo funcionar nuestro men con las distintas opciones: 1.

2.

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP 3.

En este caso, volvemos al men al cerrar la calculadora. 4.

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP 5.

6.

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP Si comparamos con el men MS-DOS: FUNCION Cambiar atributos(DOS)/privilegios(Linux) de un archivo En MS-DOS En Linux Ejemplo bsico de uso en Linux

attrib

chmod

chmod +x archivo

Copiar archivos

copy

cp

cp estearchivo.txt /home/textos mv estearchivo.doc /home/textos ls clear exit date rm archivo_a_borrar.txt

Mover archivos Listar archivos Limpiar pantalla Cerrar sesin en lnea de comandos Mostrar y ajustar la fecha Eliminar archivos

move dir cls exit date del

mv ls clear exit date rm

Editar archivos de texto Comparar contenido de archivos

edit fc

vi diff

vi archivo_de_texto.txt diff archivo1 archivo2

Encontrar una cadena de texto en un archivo

find

grep

grep palabra estearchivo.txt

Formatear un disquete

format a: (si el disquete

mke2fs o mformat(2)

/sbin/mke2fs /dev/fd0 (/dev/fd0 es el equivalente de A: en Linux)

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP esta en unidad A:) Mostrar ayuda sobre el comando Crear un directorio Eliminar un directorio Ver un archivo comando /? mkdir o md rmdir o rd type man (3) mkdir rmdir cat man comando mkdir directorio rmdir directorio cat este_archivo.txt

Ver un archivo (en paginas)

more

less (4)

less estearchivo.txt

Cambiar de nombre a un archivo

ren

mv

mv estearchivo.txt otroarchivo.txt (5)

Mostrar el directorio actual Cambiar de directorio Ver la fecha Ver la cantidad de memoria (libre, en uso) Ver el espacio libre de los discos Identificar el tipo de un archivo

chdir cd ruta-directorio time mem

pwd cd rutadirectorio date free

pwd cd /home/alex date free df file lindo_dia

(a travs de DIR) df (a travs de la extensin) file

Verificar el sistema de archivos Configurar particiones de un disco

chkdsk o scandisk fsck fdisk fdisk

fsck fdisk

SISTEMAS DE COMPUTACIN II
INFORME DE LABORATORIO #2: COMANDOS DE LINUX.

Ingeniera Electrnica
6to Semestre.

Fernando Marcelo Flores Chvez 6782530 LP, Fabin Nelson Lpez Snchez 4884326 LP, Christhiane Rodrigo Molina Guzmn 479092 LP

5. CONCLUSIONES.
La elaboracin y funcionamiento del men en Linux Ubuntu es de casi igual entendimiento y programacin que en el sistema operativo MS-DOS. En este tipo de men se puede implementar todo lo necesario o bsico para realizar una determinada tarea o trabajo.

4. RECOMENDACIONES.
Realizar un repaso de los comandos ingresados, es decir, verificar que todo est bien escrito para un correcto funcionamiento.

BIBLIOGRAFA.
http://es.wikipedia.org/wiki/Virtualizaci%C3%B3n http://vmtoday.com/2012/06/vmware-themed-desktop-backgroundwallpapers/vmware_workstation_wallpaper/

Das könnte Ihnen auch gefallen