Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Linux (Introduccion - Instalacion y Procesos)
Linux (Introduccion - Instalacion y Procesos)
SISTEMASOPERATIVOSI IntroduccinalSOGNU/Linux
CARLOSMANUELTOLEDO
cmtoledo@dachary.edu.ar
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
FundamentosdeLinux
SistemasOperativosI
INTRODUCCION
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN QUEESLINUX? LinuxisacloneoftheoperatingsystemUnix,writtenfromscratchby Linus Torvalds with assistance from a looselyknit team of hackers acrosstheNet.ItaimstowardsPOSIXandSingleUNIXSpecification compliance. It has all the features you would expect in a modern fullyfledged Unix, including true multitasking, virtual memory, shared libraries, demand loading, shared copyonwrite executables, proper memory management,andmultistacknetworkingincludingIPv4andIPv6. Although originally developed first for 32bit x86based PCs (386 or higher), today Linux also runs on (at least) the Compaq Alpha AXP, SunSPARCandUltraSPARC,Motorola68000,PowerPC,PowerPC64, ARM,HitachiSuperH,IBMS/390,MIPS,HPPARISC,IntelIA64,DEC www.kernel.org VAX,AMDx8664,AXISCRIS,andRenesasM32Rarchitectures.
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN
SISTEMABANCARIO,JUEGOS,ETC
(bash,gcc,cp,mv,ls,mkdir,ln,etc)
Hardware
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN
USUARIOS UTILERIAS
Modo usuario
(bash,cp,mvdu,df,etc.)
BIBLIOTECASESTANDAR
(open,close,fork,excve,etc.)
SISTEMAOPERATIVO
(Admdeprocesos,memoria,filesystem,etc.)
Modo ncleo
HARDWARE
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN
SHELLYPROGRAMASDESISTEMA APLICACIONESDEUSUARIO
BIBLIOTECAESTANDAR
INTERFACEDELLAMADASALSISTEMA
KERNEL
ADMINISTRADOR DELFS
ADMINISTRADOR DEMEMORIA
PLANIFICADOR
OTROS
DRIVER TARJETARED
HARDWARE
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN DISTRIBUCIONES Esunacombinacindesoftwarelistoparaserutilizado. Esta combinacin lo realizan empresas u organizaciones y los distribuyenpormnimassumasdedineroogratis. Sepuedenobtenerdesdeelsitiodecadaempresauorganizacin,ya seadescargndoloocomprandounCDROM.
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN DISTRIBUCIONES Mandrake(www.madrake.com) RedHat(www.redhat.com) Fedora(fedora.redhat.com) Slackware(www.slackware.com) Debian(www.debian.org) SuSE(www.suse.com) Knoppix FreeSCO CoyoteLinux YellowDog(SPARC) PPCLinux(PowerPc) UnitedLinux UTUTOGNU/Linux
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN CARACTERSTICAS Multitarea Accesomultiusuario Multiprocesador Independenciadearquitectura Ejecucinconcargapordemanda Memoriavirtual Cachdinmicadediscoduro Bibliotecascompartidas SoporteparaelestndarPOSIX1003.1 Modoprotegido. Soporteparatecladosyfuenteslocales Diferentessistemasdeficheros SoporteTCP/IP,SLIPyPPP Soportahilosenelkernelyenelespaciodeusuario
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN
1 2 1 2
MEMORIA FISICA
MEMORIAVIRTUAL
3 4 5 6 7 8 9 10 11
3 4 5 6 7
DISCORGIDO
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
INTRODUCCIN www.isolinux.org www.3dwm.org www.hispalinux.org www.vivalinux.com.ar www.li.org www.linux.org www.linux.org.ar http://bulmalug.net www.kernel.org http://lucas.hispalinux.es/ www.gnu.org http://sal.kachinatech.com/index.html www.ltdp.org/LDP/tlk www.unixsup.com/unixlinux/libros.html www.rpmfind.org www.ibm.com/linux
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
PARTICIONAMIENTO
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
PARTICIONAMIENTO
FAT32
NTFS
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
PARTICIONAMIENTO
Particin1 Particin2 Particin3 Particin4
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
PARTICIONAMIENTO
Disco(hda)sinformato
Particinprimaria(hda1)
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
PARTICIONAMIENTO
Disco(hda)sinformato
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
PARTICIONAMIENTO
Particin extendida
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
COMANDOSBSICOS
la
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
COMANDOSBSICOS
uptime Muestraalusuarioeltiempoquellevaejecutndoseelsistemadesdeel ltimo arranque, cantidad de usuarios conectados y la carga del mismo. whoami Informasobreelnombredelusuarioqueloejecuta. whoami
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
DOCUMENTACIN man Abreviaturademanual.Ayudaenlnea. man[seleccin_manual]nombre_programa seleccin_manual: 1Herramientas/comandosdelusuario. 2Llamadasalsistema. 3Llamadasabibliotecas. 4Archivosespeciales,informacindecontroladoresy dispositivos. 5Archivosdeconfiguracin(Ej.:/etc/passwd) 6Juegos. 7Paquetes(miscelneas). 8Herramientasdeadministracindelsistema. nNuevoselementos.
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
Primerfiladesplegadaporlsindicalacantidaddebloquesdel
dispositivodealmacenamientoqueocupaelarchivo.
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
COMANDOSBSICOS
Opciones(Poseemsde26) l: (long) listado largo, muestra hora y fecha de la ltima modificacin, permisos,propietarios,enlaces,etc. a:Muestratodoslosarchivos,inclusivelosocultos. A:Idem,soloqueignoralosdirectoriosespeciales(.)y(..) 1:Listadodeunasolacolumna. d:Listalosnombresdelosdirectoriosenvezdelosarchivoscontenidosen l. F: brinda informacin si son directorios(/), archivos ejecutables (*) y links (@). color: similar a F solamente que distingue a los archivos por medio de colores. h:DespliegaeltamaodelosarchivosenformatoenKb,Mb,Gb,envezde hacerloenbytes(Facilitalalecturayconversindeunidades) i:muestraelnmerodeinodondice. R:Listadorecursivodetodoslosarchivosysubdirectorios. r:ordeninverso. S:ordenalosarchivosportamao. CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar t:ordenalosarchivosporfechademodificacin.
SistemasOperativosI
SEGURIDAD
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
SEGURIDAD
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
FYLESYSTEM Elpseudosistemadearchivo/proc [number] Hay un subdirectorio numrico para cada proceso en ejecucin; el nombre delsubdirectorioeselIDdelproceso. cmdline cwd:Enlacealdirectoriodetrabajodelproceso environ: fd
mem El dispositivo /dev/mem es la memoria fsica antes de que se hagacualquiertraduccindedirecciones,peroaquelficheromemes lamemoriaalaqueaccedeelproceso stat Informacindeestadodelproceso.Estaesusadaporps cpuinfo InformacinsobrelaCPUylaarquitecturadelsistema
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
Interrupts Este es usado para registrar el nmero de interrupciones para cadaIRQ. kcore Esteficherorepresentalamemoriafsicadelsistemaysuformato eseldeunficherocore.
SistemasOperativosI
FYLESYSTEM
loadavg Losnmerosdecargamediadanelnmeropromediodetrabajos enlacoladeejecucinenlosltimos1,5y15minutos.Usadoporuptime meminfo Este es usado por free(1) para informar de la cantidad de memorialibreyusadaenelsistema.Losdatossedanenbytes. modules Lista de mdulos que han sido cargados por el sistema (Igual a lsmod) pci Es una lista de todos los dispositivos PCI encontrados durante la inicializacindelncleoysusconfiguracionesrespectivas. self Este directorio hace referencia al proceso que est accediendo al sistemadeficheros/procyesidnticoaldirectoriode/proccuyonombrees elPIDdelmismoproceso. uptime Este fichero contiene dos nmeros: los segundos que el sistema llevafuncionandoylossegundosgastadosenelproceso' . idle'
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
SHELL:LAINTERFACEDELUSUARIO CONELSISTEMAOPERATIVO
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
SHELL
USUARIOS UTILERIAS
Modo usuario
(bash,cp,mvdu,df,etc.)
BIBLIOTECASESTANDAR
(open,close,fork,excve,etc.)
SISTEMAOPERATIVO
(Admdeprocesos,memoria,filesystem,etc.)
Modo ncleo
HARDWARE
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
SHELL Manejodemultitarea(nomultitarea). RedireccionamientodeE/Sestndaryerror estndar. Proporciona Expansindenombredearchivosoexpresiones regulares(usodemetacaracteres). Manejodepipes(tuberas). Manejodeprocesosensegundoplano. Interactiva Modalidades Nointeractiva
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
ps
Listatodoslosprocesosdelsistema,suestado,tamao,nombre, propietario.tiempodeCPU,tiempodereloj,etc.
ps[opciones]
Opciones: a:Muestratodoslosprocesosconlaterminalcontrolando,exceptoel procesodeusuarioactual. r:Muestralosprocesosenejecucin. x:Muestralosprocesossinterminalcontrolando. u:Muestralospropietariosdelosprocesos f:Visualizalarelacinpadrehijodelosprocesos l:Listadoenformatolargo A:Todoslosprocesos N:Contrarioalaseleccin. ww:muestralosparmetrosdelalneadecomandos. CARLOSMANUELTOLEDO
cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS Cabeceras: PPID:PIDdelpadre USER:Propietariodecadaproceso PID:Identificadordeproceso %CPU:PorcentajedeCPUocupadoporelproceso. %MEM:Porcentajedememoriaocupadaporelproceso. VSZ:Cantidaddememoriavirtualocupadaporelproceso. RSS:Cantidaddememoriaresidenteocupadaporelproceso. TYY:Terminalcontroladoporelprocesos. STARToS:Fechaenqueelprocesoarranc. TIME:CantidaddetiempogastadoenCPU. COMMAND:Nombredelcomandoyparmetros STAT:Estadodelprocesos.
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
kill
Envasealesalosprocesosenejecucin.ElSO,pordefecto, proporcionaacadaprocesounconjuntoestndardemanejadores deseales. Sealpordefectoes15(terminar)
kill[seal]PID
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
killproc/killall killproc[seal]path
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
SistemasOperativosI
ADMINISTRACINDEPROCESOS
nice
Cambialaprioridaddeunproceso. LaprioridadesenLinuxvandesde20(mximaprioridad)hasta19 (mnimaprioridad). Losprocesosdeusuarioutilizanvaloresde0a19(0pordefecto).
nicen10nombre_proceso nicen10top
CARLOSMANUELTOLEDO cmtoledo@dachary.edu.ar
CursoFundamentosdeLinux
CARLOSMANUELTOLEDOCARLOSCESAROEGG
cmtoledo@dachary.edu.aroeggcc@hotmail.com www.dachary.edu.ar
BIBLIOGRAFA
SistemasOperativosModernos AndrewS.Tanenbaum EditorialPrenticeHall Linux CsarMartnPrez,IsmaelPrezCrespo EditorialAnaya SistemasOperativosConceptosbsicos AbrahamSilberschatzJamesL.Peterson PeterB.Galvin EditorialAddisonWesleyLongman SistemasOperativos AbrahamSilberschatzPeterB.Galvin EditorialAddisonWesleyLongman ManualdeAdministracindeLINUX SteveShah EditorialMcGrawHill ConfiguracindesistemasLinux DanielL.Morril
BIBLIOGRAFA
AprendaLinuxcomosiestuvieseenprimero GarcadeJaln,Aguinaga,Mora Delaserieaprendacomosiestuvieseenprimero SeguridadenUNIX PaperofUNIXsecurity ManPage DocumentacinGNU/Linux LINUXinanutshellAdesktopquickreference SellenSiever EditorialOReilly&Associates,Inc. ProyectoINSFLUG www.influg.org ElentonodeprogramacinUNIX BrianW.KernighanRobPike EditorialPrenticeHall AdministracindeSistemasLinuxGuaavanzada M.CarlingStephenDeglerJamesDennis EditorialPrenticeHall