Exercise 01 ------------ - Part 01 mkdir soEx01 cd soEx01 mkdir src mkdir bin mkdir test cd src mkdir include mkdir lib cd .. cd test mkdir script mkdir results - Part 02 Download the file: lab01e01in.txt Copy the file in the directory src, then, using the directory src as the current directory, copy the file in the directories test, script, and results (to this extent use only absolute paths). cp lab01e01in.txt /home/myusername/soEx01/src cd /home/myusername/soEx01/src cp lab01e01in.txt /home/myusername/soEx01/test cp lab01e01in.txt /home/myusername/soEx01/test/script cp lab01e01in.txt /home/myusername/soEx01/test/results Check the existence of the files previously created, and check their rights. Use the commands more, less and cat to verify the content of the files. less /home/myusername/soEx01/test/lab01e01in.txt less /home/myusername/soEx01/test/script/lab01e01in.txt less /home/myusername/soEx01/test/results/lab01e01in.txt ls -l /home/myusername/soEx01/test/lab01e01in.txt ls -l /home/myusername/soEx01/test/script/lab01e01in.txt ls -l /home/myusername/soEx01/test/results/lab01e01in.txt Use the command diff to verify that all the files have the same content. diff /home/myusername/soEx01/src/lab01e01in.txt /home/myusername/soEx01/test/lab01e01in.txt diff /home/myusername/soEx01/src/lab01e01in.txt /home/myusername/soEx01/test/script/lab01e01in.txt diff /home/myusername/soEx01/src/lab01e01in.txt /home/myusername/soEx01/test/results/lab01e01in.txt Without changing the current (working) directory, cancel using relative paths all the files previously created. # working directory soEx01/src rm ../test/lab01e01in.txt rm ../test/script/lab01e01in.txt rm ../test/results/lab01e01in.txt Repeat the same sequence of operations starting from father directory of src, i.e., osEx01. cd ~/soEx01 cp src/lab01e01in.txt test/lab01e01in.txt cp src/lab01e01in.txt test/script/lab01e01in.txt cp src/lab01e01in.txt test/results/lab01e01in.txt less test/lab01e01in.txt ls -l test/lab01e01in.txt rm test/lab01e01in.txt less test/lab01e01in.txt ls -l test/lab01e01in.txt rm test/script/lab01e01in.txt rm test/results/lab01e01in.txt - Part 03 Executing all the commands from the root of your user (i.e., /home/username), do the following: Copy all the directory tree named osEx01 into a directory tree named osEx01backup, by using the command cp to copy individual files and the command mkdir for directories. Cancel all the content of osEx01 by using the command rm to remove individual files and the command rmdir for directories“. Repeat both the copy and the cancel operations by using the recursive versions of the commands cp and rm. Recursive versions cp -r ~/soEx01 ~/soEx01backup rm -r ~/soEx01 - Part 04 Check what they do and for what the following commands are used: pwd, wc, history * pwd /home/myusername/soEx01 (Prints the absolute path of the current working directory) * wc lab01e01in.txt 100 467 3114 lab01e01in.txt (Prints the number of rows, words, and characters of the file passed as argument, respectively) * history (Prints the last commands executed in the terminal) Use the command man to have the detailed description of the commands: man pwd man wc man history