Question
Please help! Will upvote! I am using ubuntu UNIX/Linux 1. Create a directory called memos in your HOME directory. 2. Using the vi editor, create
Please help! Will upvote! I am using ubuntu UNIX/Linux
1. Create a directory called memos in your HOME directory.
2. Using the vi editor, create a file called myfile in your HOME directory.
3. Using the cat command, append myfile a few times to create a large file (say, 10
pages). Call this file large.
5. Using the pr command and its options, format large and print it.
6. Use cp command to copy all files in your HOME directory to the memos directory.
7. Use the ln command to create another name for large.
8. Using the mv command, change the name of large to large.old.
9. Using the mv command, move large.old to memos.
10. Use the ls command and the -i and -l options to observe the changes in the i-node
numbers and the number of links when you do the following commands:
a. Change to the memos directory.
b. Create another name for myfirst; call it MF.
c. Copy myfirst to myfirst.old.
d. List all files whose filenames start with my.
e. List all files that have the extension old.
f. Modify myfile. Look at the MF file; myfile modifications are also in the MF file.
g. Change to your HOME directory.
h. Delete all files in the memos directory that have the word file as part of their file
names.
i. Delete the memos directory with all of the files remaining in it.
j. List your HOME directory.
k. Remove all the files you created in this session.
11. Show the last five lines of a file.
12. Display the first five lines of a file.
13. Save the last 30 characters of a file in another file.
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