login: root
password: q1w2e3r4t5
Prompt | Comando | Función |
---|---|---|
root@proxmox:~# | cd / | Cambiar al directorio raíz |
root@proxmox:~# | mkdir /IT | Crear el directorio IT en el directorio raíz |
root@proxmox:~# | mkdir /STI | Crear el directorio STI en el directorio raíz |
root@proxmox:~# | mkdir /ME | Crear el directorio ME en el directorio raíz |
root@proxmox:~# | lsblk | mostrar la estructura de directorios |
root@proxmox:~# | mkfs.ext4 /dev/sdb | formatear el disco sdb como ext4 |
root@proxmox:~# | mkfs.ext4 /dev/sdc | formatear el disco sdc como ext4 |
root@proxmox:~# | mkfs.ext4 /dev/sdd | formatear el disco sdd como ext4 |
root@proxmox:~# | mount /dev/sdb /IT | montar el disco sdb en el directorio IT |
root@proxmox:~# | mount /dev/sdc /STI | montar el disco sdc en el directorio STI |
root@proxmox:~# | mount /dev/sdd /ME | montar el disco sdd en el directorio ME |
root@proxmox:~# | echo "/dev/sdb /IT/ ext4 defaults 0 2" >> /etc/fstab | meter la línea enter " en el fichero fstab |
root@proxmox:~# | echo "/dev/sdc /STI/ ext4 defaults 0 2" >> /etc/fstab | meter la línea enter " en el fichero fstab |
root@proxmox:~# | echo "/dev/sdd /ME/ ext4 defaults 0 2" >> /etc/fstab | meter la línea enter " en el fichero fstab |
root@proxmox:~# | lsblk | mostrar la estructura de directorios. Comprobar que IT,STU y ME se han asignado a los discos elegidos |
nano ~/.bashrc
Contenido de fichero. Quitamas el # el tres líneas, como el ejemplo
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "`dircolors`"
alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
Activar los cambios en el archivo ~/.bashrc
exec bash