File-Handling Commands

Keystrokes

Command name

Description

C-x C-f

find-file

Find file and read it.

C-x C-v

find-alternate-file

Read another file; replace the one read with C-x C-f.

C-x i

insert-file

Insert file at cursor position.

C-x C-s

save-buffer

Save file (may hang terminal; use C-q to restart).

C-x C-w

write-file

Write buffer contents to file.

C-x C-c

save-buffers-kill-emacs

Exit Emacs.

C-z

suspend-emacs

Suspend Emacs (use exit or fg to restart).

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.