0x02. Emacs
Congrats!
- Congrats!
Now you know how to navigate into a Unix system!
It’s time to test and decide what will be your favorite text editor on your sandbox: Emacs or Vi.
During this project you will play with Emacs.
- Resources
- Learning Objectives
At the end of this project, you are expected to be able to explain to anyone, without the help of Google
- General
What is Emacs
Who is Richard Stallman
How to open and save files
What is a buffer and how to switch from one to the other
How to use the mark and the point to set the region
How to cut and paste lines and regions
How to search forward and backward
How to invoke commands by name
How to undo
How to cancel half-entered commands
How to quit Emacs
- Copyright - Plagiarism
You are tasked to come up with solutions for the tasks below yourself to meet with the above learning objectives.
You will not be able to meet the objectives of this or any following project by copying and pasting someone else’s work.
You are not allowed to publish any content of this project.
Any form of plagiarism is strictly forbidden and will result in removal from the program.
- Requirements
All tasks must be done inside the sandbox
Ubuntu 20.04The answer of a task must be in a specific file
Each answer file must contain only the command to execute in Emacs for solving the task. Example: “What is the command to write buffer to a specified file?” -> the file should contain only C-x C-w
Tasks
- 0. Create your answer directory
Navigate to
/rootand create a directory named0x02_emacs- 1. Opening
What is the command to open a file from within emacs?
Write the answer into the file
/root/0x02_emacs/opening.You can validate if the format of your answer is correct by displaying the file information:
root@hex:~# ls -l /root/0x02_emacs/opening -rw-r--r-- 1 root root 9 Nov 11 04:34 /root/0x02_emacs/opening root@hex:~#- 2. Saving
What is the command to save a file?
Write the answer into the file
/root/0x02_emacs/saving.- 3. Cutting
What is the command to cut an entire line?
Write the answer into the file
/root/0x02_emacs/cutting.- 4. Pasting
What is the command to paste?
Write the answer into the file
/root/0x02_emacs/pasting.- 5. Searching
What is the command to search forward?
Write the answer into the file
/root/0x02_emacs/searching.- 6. Undoing
What is the command to undo?
Write the answer into the file
/root/0x02_emacs/undoing.- 7.Quiting
What is the command to quit Emacs?
Write the answer into the file
/root/0x02_emacs/quitting.