Conduct the following steps for this Linux homework assignment and document the
ID: 3682262 • Letter: C
Question
Conduct the following steps for this Linux homework assignment and document the results in a word of PDF file:
1. Using your secure file transfer application, transfer the attached LinuxSampleFile.txt to your UMUC Nova account. Place the file in your home directory. (This should be your default landing location when you login.)
2. Make a directory named UMUCFiles within your home directory.
3. Make a directory named UMUCFilesBackup within your home directory.
4. Copy the LinuxSampleFile.txt to your UMUCFiles directory.
5. Move the Original LinuxSampleFile.txt to your UMUCFilesBackup directory
6. Create a symbolic link for the LinuxSampleFile.txt in the UMUCFiles directory.
7. Remove the newly created Symbolic link.
8. Determine the location of the rm command on the UMUC Nova server.
9. Compare the output of help, whatis and man pages for the head command.
10. Create your own unique alias comprised of any two sequences of Linux commands. (Hint: be sure to use type to determine an available name for your alias)
11. Redirect the output of your UMUC Nova home directory to a file named MyDirectory.out.
12. Use the cat command to display the contents of the MyDirectory.out file you created in step 11.
13. Pick any 3 "text" files on your UMUC Nova system and determine the number of words in each file.
14. Demonstrate your understanding of the grep command in a pipeline operator.
For each of the above steps, describe what you did to successfully complete the step. Provide a screen capture demonstrating the successful execution and provide additional screen shots or Linux commands as needed to demonstrate the successful operation. For example, you may need to perform an "ls" after you remove a symbolic link or file and show the results of that operation in a screen capture.
Your document should be well-organized, well-written with minimal spelling and grammatical errors. The document should include page numbers, figure titles and numbers and section titles as appropriat
Explanation / Answer
The below mentioned commands can be used. as mentioned in comment I am answering 6-14.
6)
ln -s ~/UMUCFiles/LinuxSampleFile.txt link_file
7)
m -rf link_file
8)
which rm
9)
head whatis -h
head man -h
10)
alias two_cmd="echo foo; echo bar"
11)
ls ~/ > MyDirectory.out
12)
cat MyDirectory.out
13)
wc -w file1.txt file2.txt file3.txt
14)
ls -l | grep "abc"