When using nano in the terminal, to do the "write file append" command, it lists the keystroke "M-A".
I am completely confused what this key command actually means. I read somewhere that it means Alt-A, which didn't work.
What am I supposed to use?
EDIT: I think the problem is because when I hit Alt-A, it opens my Xubuntu terminal windows Menu > Tabs menu item.
So by default the supplied xubuntu / xfce terminal has hotkeys that step on nano's hotkeys? Is this correct or have I modified them and forgot?
M-A means ALT+A. But that does not directly appends the contents to the file selected.
ALT+A toggles the mode of modification of file between "write to file" and "append to file" as shown in the following images.
After you toggle to the desired command, press Enter.
This will append the contents to the file.
A test example using the
append
write file output option.Starting conditions:
Now,
nano cccc
, and then Ctrl+O, followed by CTRL+X, followed by Esc then A but change this:To this:
And then Enter followed by CTRL+X
See this:
Note: There are other key combinations to achieve the same end result. See the help file within
nano
, a segment extracted below: