3. Cutting

Learn how to cut text in emacs using keyboard shortcuts

Category: Introduction to Terminal

Cutting files in emacs

To cut text in emacs, use Ctrl + w.

Create a new file /root/0x02_emacs/cutting. using

emacs /root/0x02_emacs/cutting

cutting

Save the file by running Ctrl + x, Ctrl + s

Verify the changes by running the cat command.

cat /root/0x02_emacs/cutting

The above command will display the content of the file, in the terminal.

Table Of Content