Set default text editor to pico (from vi)
$ which pico
Output:
Now setup a new text editor:
export EDITOR=/usr/bin/pico
OR
export EDITOR=pico
Add above line to ~/.bashrc file:
$ vi ~/.bashrc
Append text as follows:
export EDITOR=pico
Close and save the file. There is no no need to reboot system.
Also you can add alias if you want:
alias vi=/usr/bin/pico
setting quota for users:
apt-get install quota
apt-get install quota quotatool
$ /etc/init.d/quota start
/dev/sda1 / ext3 defaults,errors=remount-ro,usrquota,grpquota 0 1
touch /quota.user /quota.group
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug