algo util es esto, crear alias para los comandos en el bash, y asi hacerlo todo algo mas rapido.
podemos editar nuestro bash unicamente o bien el de todos los users para que tambien esten cuando nos loguemos como root (por ejemplo)
Lo tenemos en /etc/bash.bashrc
lo editamos como root, por ejemplo sudo nano /etc/bash.bashrc (si tenemos sudo instalado)
debemos descomentar las lineas que digan "completion" y agregar los alias al final, la sintaxis es esta:
con lo que ejecutando busca "nombre del paquete" sera lo mismo que apt-cache search "nombre del paquete"Código:alias busca='sudo apt-cache search'
un ejemplo:
Podemos hacer copia de seguridad antes de editar el bash.bashrc por si acaso.Código:# System-wide .bashrc file for interactive bash(1) shells. # To enable the settings / commands in this file for login shells as well, # this file has to be sourced in /etc/profile. # If not running interactively, don't do anything [ -z "$PS1" ] && return # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then * *debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, overwrite the one in /etc/profile) PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' # Commented out, don't overwrite xterm -T "title" -n "icontitle" by default. # If this is an xterm set the title to user@host:dir #case "$TERM" in #xterm*|rxvt*) # * *PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' # *;; #*) # *;; #esac enable bash completion in interactive shells if [ -f /etc/bash_completion ]; then * *. /etc/bash_completion fi alias update='sudo apt-get update' alias upgrade='sudo apt-get upgrade' alias instala='sudo apt-get install' alias reinstala='sudo apt-get install --reinstall' alias remove='sudo apt-get remove' alias purge='sudo apt-get remove --purge' alias busca='sudo apt-cache search' alias distupgrade='sudo apt-get dist-upgrade' alias la='ls -la' alias efstab='sudo nano /etc/fstab' alias exorg='sudo nano /etc/X11/xorg.conf' alias esources='sudo nano /etc/apt/sources.list' alias emtab='sudo nano /etc/mtab' alias cd..='cd ..' alias kdmstop='sudo /etc/init.d/kdm stop' alias kdmrestart='sudo /etc/init.d/kdm restart' alias kdmstart='sudo /etc/init.d/kdm start'
Código:sudo cp /etc/bash.bashrc /etc/bash.bashrc.bak
Saludos.



