You are on page 1of 7
a2 CentOS CREANDO CARPETAS © 1. Dentro de nuestra consola de Linux generamos el siguiente comando # ed /home eee ee wey feetitet te ts ae 2.- Procedemos a crear una carpeta con el nombre Prueba para ello agregamos el siguiente cédigo # mkdir Prueba erie remo ene ey 3. Agregamos el siguiente cédigo para ver si se ha creado la carpeta # Is, Pee eee cess aT fee ee eae es) 4. Ingresamos a la carpeta prueba con el comando # ed /prueba. ee eee ees er ery fetes rea tctsT! 5. Creamos dos carpetas dentro de Prueba una con el nombre Hardware y la otra con el nombre software con los siguientes comandos: # mkdir Hardware y # mkdir Software eee cess eee re es ferret ity ems t eee tee tet fereitet Eee reel) 6.- Verificamos si se han creado las carpetas con el comando #Is ree ree ees as feet ese ae PROF. MARIO ANTONIO HUAPALLA MORALES. 1 © a ‘az CentOS 7.- Cambiamos de directorio al directorio raiz con el comando # cd ../ ese rrstcest) 8.- Ahora procedemos a crear varias carpetas dentro de la carpeta Software con los siguientes ‘comandos: * it mkdir /home/Prueba/Software/Windows ‘* #mkdir /home/Prueba/Software/Linux * itmkdir /home/Prueba/Software/OSX [root@localhost homelt mkdir /home/Prueba/Sof tuare/Mindow: itt ates eT tomes ie att fecetitet ee tees eat hee Cane env reas ements eetae eer 9. Procedemos a crear las siguientes carpetas dentro de la carpeta Hardware con los siguientes ‘comandos: ‘¢ ftmkdir /home/Prueba/Hardware/Monitor ‘* #mkdir /home/Prueba/Hardware/Case ¢ #mkdir /home/Prueba/Hardware/Teclado * #mkdir /home/Prueba/Hardware/Mouse ‘¢ ft mkdir /home/Prueba/Hardware/Impresora eee rem tees er ne eee Sere er ee Es tet ets ete tee ctr fittest mot he tem ne ress) Tr tet emt aot hee ry he nee tees ite ets ete teat ea Lenny fee tet ecm tes 10.- Ahora procedemos a crear las siguientes carpetas dentro de la carpeta Case con los siguientes ‘comandos: ‘* ftmkdir /home/Prueba/Hardware/Case/Placa ¢ it mkdir /home/Prueba/Hardware/Case/Procesador PROF. MARIO ANTONIO HUAPALLA MORALES. 2 a2 CentOS ¢ itmkdir /home/Prueba/Hardware/Case/Disco ¢ mkdir /home/Prueba/Hardware/Case/Memoria © eee ee res en ne teem ar ee eee ed fritter test ent he tee sry he nee nea teet on ferret derey tie femetdeet ht? ones a Tee ea ate Se ie eon cesT) rons) itt ets eT he teee ety ee treet Teed t 11. Mostraremos la informacién de las carpetas que hemos creado utilizando varios comandos: © #is-R eerie neem ee rucba/Marduare/Case/Disco Ce ey Reet eree atte} Se eee eee Prueba/Harduare/Impreso ee eee Prueba/Harduare/Mo Peasy cag eR ea an Prueba/Sof tware/0SX Te Ter oe eyes eee PROF. MARIO ANTONIO HUAPALLA MORALES. 3 © a2 CentOS © ffls-R| grep “” een cers es ee rey ie teezes ba/Hardware/Case/Disco ba/Harduare/Case/Memor ia eterna’ ioe terete SVie meats Sie meri eye tees Syie memssttey) See Parnes raed ba/Sof tuare/Windous es Cees ae non aevte Mite aye eae aise ee eee, eba/Harduare/Case/Proce yea errs ie ea trees yee eee tees aye maceshto ves ears eras aes PROF. MARIO ANTONIO HUAPALLA MORALES. 4 a2? CentOS © fls-R| grep “$” | sed -e'5/:$//' -e's/[MIMVIV/-/e [root@localhost homelt Is oy en os P oer ey ks M eared ¢ ffls-R| grep “:S” | sed -e's/:$//' -e's/[-IVI"V/-/g -e's/*/ / eae) arte ero Sere aes a eee carry PROF. MARIO ANTONIO HUAPALLA MORALES. wz CentOS Ss HIs—R | grep “:$” | sed -e's/:S//" -2's/[-IVI*V/-/e' -e's/*/ ' -e's/-/|/" Prey rears ae bee : eae) atte etd Pores aes ee Seared eer eect ies ae PROF. MARIO ANTONIO HUAPALLA MORALES. <2 CentOS PRACTICA CALIFICADA 1L.- Grear la siguiente estructura de carpetas y mostrarlas como érbol. ‘* Continentes © América + Norte ‘* Estados Unidos © Canads = Sur © Pert © Lima = Lima © Argentina © Buenos Aires © Brasil © Rio de Janeiro © Colombia © Bogota * Centro © Panama © Costa Rica © Europa * Alemania "Holanda + Inglaterra * Italia © Asia + Japén * Corea © Del Norte © Del Sur © Africa + Cameriin + Nigeria © Oceania "Nueva Zelanda PROF. MARIO ANTONIO HUAPALLA MORALES. lima @

You might also like