Nano

Make Nano show line numbers:
sed -i ‘/# set constantshow/c\set constantshow’ /etc/nanorc

Go to the end of file:
Ctrl + w + v

Start selecting text:
Ctrl + 6