Nano
My favourite text editor in Kali Linux. Its an easy to use editor for all types files.
The following are the common commands used for nano:
nano - To start an empty editor
nano /path/to/filename - To edit a file
nano +n /path/to/filename - To edit a file and place the cursor at the start of specific line (n)
Once into the text editor, the following commands/shortcuts:
Ctrl + G - For help page
Ctrl + X - To exit help
Ctrl + C - To cancel a command
Text editing commands:
Ctrl + C - To cancel a command
Ctrl + W - Search for text
Ctrl + K - To cut a line and keep in buffer
Ctrl + U - To uncut or paste from buffer
Ctrl + R - To insert text from a file into the current file/buffer
Ctrl + O - To save current file/buffer to disk
Ctrl + O - To exit from editor
Ctrl + Space - To move forward in editor word by word (Similar to Ctrl + Right in MS Word)
Ctrl + P & Ctrl + N - To move up and down one line at a time
_Ctrl + Y - _Previous page
Ctrl + N - Next page