Monday, April 21, 2014

Ubuntu Quick configuration script for easy customization

echo "alias ?='ls -ltr'" >> ~/.bashrc
echo "alias .='ls -pwd'" >> ~/.bashrc
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'
xbacklight -set 10 
wget -q -O - | bash
gsettings set com.canonical.desktop.interface scrollbar-mode normal

Adding command alias to Ubuntu

Alias command provides user to user simple shortcut keys in the console instead of lengither commands. For example, you may use '?' instead of 'ls -ltr'.

Command alias provide faster actions in console.

What you have to do is to add your alias definitions to ~/.bashrc file.

alias ?='ls -ltr'
alias .='pwd'
alias g='gvim'
alias gd='gvim -d'