Question
There are multiple options for text editors in Linux: vi, Nano, vim, etc. My favorite is vi. Demonstrate that you are able to use a
There are multiple options for text editors in Linux: vi, Nano, vim, etc. My favorite is vi. Demonstrate that you are able to use a text editor. File copy, move, and removal. Try not to rely on cd commands. Go to your Labs directory. Use one command to finish each step, provide screenshots of commands and results. (10 pts) a) Under your root directory, create and save a new text file using your first name as the file name. b) Create a copy of the file in the same directory using any name you like. c) Create a subdirectory backup. d) Move the original file (your first name) to backup and rename it using your last name. e) Create a copy of the backup directory (and all files in it); name it backup2. f) Delete the original directory backup. g) Rename backup2 to whatbackup h) List the files in the new directory whatbackup 2. Links commands and options (10 pts) a) Create a file named today with the text hello in it. Provide command and screenshot b) Create a hard link named hardlinktomorrow linked to today c) Create a soft link named softlinkone linked to today. Create another soft link named softlinktwo d) linked to hardlinktomorrow e) View information of the 4 files (what command should you use to produce output) how do you verify which file is a hard link and which file is a soft link? f) Use a text to edit softlinktwo and change hello to hello, world. Now, what is the content in each of the files? Provide screenshots. Are they all the same? Justify your answer. g) How do you remove all these hard and soft links? Apply the command and provide screenshots.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started