How to select entire file for copy and paste?

Hi,

Is there a way to select everything in a file like a ctrl + a in a notepad?

Thanks

It would depend on the editor you are using. Emacs, vi, vim, nano, ...

@Cosmid , which OS (windows/linux/unix/macos..../) which editor ....