micro

micro

TLDR

Open a file

$ micro [file]
copy

Cut the entire line

$ Ctrl + K
copy

Search for a pattern in the file (press Ctrl + N/Ctrl + P to go to next/previous match)

$ Ctrl + F "[pattern]" <Enter>
copy

Execute a command

$ Ctrl + E [command] <Enter>
copy

Perform a substitution in the whole file

$ Ctrl + E replaceall "[pattern]" "[replacement]" <Enter>
copy

Quit

$ Ctrl + Q
copy

Copied to clipboard
sandbox