1. Cree la siguiente estructura de directorios (como subdirectorio del directorio home del usuario fedora) y consigne los pasos realizados.
[liveuser@localhost ~]$ mkdir -p carreras/analista
[liveuser@localhost ~]$ mkdir -p carreras/ingenieria
[liveuser@localhost ~]$ mkdir -p carreras/licenciatura
[liveuser@localhost ~]$ mkdir -p materias/laboratorios/digitales
[liveuser@localhost ~]$ mkdir -p materias/matematica
[liveuser@localhost ~]$ mkdir -p materias/matematica/algebra
[liveuser@localhost ~]$ mkdir -p materias/matematica/calculo
[liveuser@localhost ~]$ tree
.
|-- carreras
| |-- analista
| |-- ingenieria
| `-- licenciatura
|-- materias
| |-- laboratorios
| | `-- digitales
| `-- matematica
| |-- algebra
| `-- calculo
2. Copie 5 archivos del directorio /etc a matematica. Consigne el comando utilizado.
[liveuser@localhost ~]$ cp /etc/group /etc/yum.conf /etc/passwd /etc/fstab /etc/profile materias/matematica
3. Mueva 2 archivos del directorio matematica a calculo.
[liveuser@localhost ~]$ cd materias/matematica
[liveuser@localhost matematica]$ mv fstab passws materias/matematica/calculo
4. Copie y renombre, en una sola orden, un archivo del directorio calculo a digitales.
[liveuser@localhost calculo]$ cd
[liveuser@localhost ~]$ cp materias/matematica/calculo/fstab materias/laboratorios/digitales/tablasdefs
5. Renombre el directorio laboratorio como investigacion. Consigne el comando utilizado.
[liveuser@localhost ~]$ cd materias
[liveuser@localhost materias]$ ls
laboratorios matematica
[liveuser@localhost materias]$ mv laboratorios investigacion
[liveuser@localhost materias]$ ls
investigacion matematica
6. Elimine el directorio algebra. Consigne el comando utilizado.
[liveuser@localhost ~]$ tree
.
|-- carreras
| |-- analista
| |-- ingenieria
| `-- licenciatura
|-- Desktop
| `-- liveinst.desktop
|-- Documents
|-- Downloads
|-- materias
| |-- investigacion
| | `-- digitales
| | `-- tablasdefs
| `-- matematica
| |-- algebra
| |-- calculo
| | |-- fstab
| | `-- passwd
| |-- group
| |-- profile
| `-- yum.conf
|-- Music
|-- Pictures
|-- Public
|-- Templates
`-- Videos
18 directories, 7 files
[liveuser@localhost ~]$ rmdir materias/matematica/algebra
[liveuser@localhost ~]$ tree
.
|-- carreras
| |-- analista
| |-- ingenieria
| `-- licenciatura
|-- Desktop
| `-- liveinst.desktop
|-- Documents
|-- Downloads
|-- materias
| |-- investigacion
| | `-- digitales
| | `-- tablasdefs
| `-- matematica
| |-- calculo
| | |-- fstab
| | `-- passwd
| |-- group
| |-- profile
| `-- yum.conf
|-- Music
|-- Pictures
|-- Public
|-- Templates
`-- Videos
17 directories, 7 files
[liveuser@localhost ~]$
7. Copie el directorio (incluyendo subdirectorios) materias a carreras. Consigne el comando utilizado.
[liveuser@localhost carreras]$ cp -r materias carreras
8. Visualice el contenido del archivo ntp.conf del directorio /etc utilizando primero el comando more y luego el comando less.
9. Visualice el contenido del archivo hosts del directorio /etc. Utilice el comando cat.
10. Visualice “página por página” el contenido del archivo warnquota.conf del directorio /etc.
11. Renombre 2 archivos del directorio matematica como datos01.txt y datos02.txt.
[liveuser@localhost ~]$ cd materias/matematica
[liveuser@localhost matematica]$ ls
calculo group profile yum.conf
[liveuser@localhost matematica]$ mv profile datos01.txt
[liveuser@localhost matematica]$ mv yum.conf datos02.txt
[liveuser@localhost matematica]$ ls
calculo datos01.txt datos02.txt group
12. Mueva el directorio laboratorio al directorio analista.
el directorio laboratorio fue cambiado de nombre por investigacion.
[liveuser@localhost materias]$ mv investigacion ../carreras/analista
13. Copie, en una sola orden, los archivos del directorio /bin al directorio carreras.
[liveuser@localhost ~]$ cp /bin/* materias
14. Elimine 2 de los archivos copiados en el ítem anterior.
15. Liste los archivos del directorio /bin cuyo nombre inicie con la cadena “dbus”.
[liveuser@localhost ~]$ ls /bin/bdbus*
ls: cannot access /bin/bdbus*: No such file or directory
16. Liste los archivos del directorio /etc que tenga extensión conf.
[liveuser@localhost ~]$ ls /etc/*.conf
/etc/asound.conf /etc/libuser.conf /etc/readahead.conf
/etc/atmsigd.conf /etc/logrotate.conf /etc/report.conf
/etc/dnsmasq.conf /etc/mke2fs.conf /etc/request-key.conf
/etc/dracut.conf /etc/mtools.conf /etc/resolv.conf
/etc/fprintd.conf /etc/nscd.conf /etc/rsyslog.conf
/etc/gai.conf /etc/nsswitch.conf /etc/sestatus.conf
/etc/host.conf /etc/ntp.conf /etc/sos.conf
/etc/krb5.conf /etc/pam_smb.conf /etc/sysctl.conf
/etc/ldap.conf /etc/pbm2ppa.conf /etc/updatedb.conf
/etc/ld.so.conf /etc/pm-utils-hd-apm-restore.conf /etc/usb_modeswitch.conf
/etc/lftp.conf /etc/pnm2ppa.conf /etc/wvdial.conf
/etc/libaudit.conf /etc/prelink.conf /etc/yum.conf
[liveuser@localhost ~]$ ^C
17. Liste, usando el formato largo, el contenido del directorio fedora.
en este sistema el directorio fedora no existe como directorio inicial.
total 48
drwxrwxr-x. 6 liveuser liveuser 4096 Sep 7 19:35 carreras
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:24 Desktop
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:25 Documents
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:25 Downloads
drwxrwxr-x. 3 liveuser liveuser 4096 Sep 7 19:46 materias
-rw-rw-r--. 1 liveuser liveuser 4549 Sep 7 19:34 more
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:25 Music
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:25 Pictures
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:25 Public
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:25 Templates
drwxr-xr-x. 2 liveuser liveuser 4096 Sep 7 18:25 Videos
[liveuser@localhost ~]$
18. Liste los archivos ocultos del directorio fedora, ¿cómo se indica en Linux los archivos ocultos?
los archivos ocultos se reconocen porque su nombre comienza con .
[liveuser@localhost ~]$ ls -a
. .config .gconf .local .pulse
.. .dbus .gconfd materias .pulse-cookie
.bash_history Desktop .gnome2 more .recently-used.xbel
.bash_logout .dmrc .gnome2_private .mozilla Templates
.bash_profile Documents .gtk-bookmarks Music Videos
.bashrc Downloads .gvfs .nautilus .xsession-errors
.cache .esd_auth .ICEauthority Pictures
carreras .fontconfig .imsettings.log Public
[liveuser@localhost ~]$
20.
[liveuser@localhost ~]$ ls
carreras Documents materias Music Public Videos
Desktop Downloads more Pictures Templates
[liveuser@localhost ~]$ rm -r carreras
[liveuser@localhost ~]$ ls
Desktop Downloads more Pictures Templates
Documents materias Music Public Videos
[liveuser@localhost ~]$
No hay comentarios:
Publicar un comentario