Use a terminal session to:

  1. Find the following files and directories: Put the full path names in a file called Eureka. (0.75%)

  2. Write a script called ChangeExtensions that accepts two file name extensions as arguments, and renames all files with the first extension to have the second extension. For example, ChangeExtensions txt text would change all .txt files to be .text files. Hint: read the man pages for basename. The script must check that two arguments have been provided, and exit with an error message if not. The script must check if there are any files with the first extension, and exit with an error message if there are none. If all goes well, a message must be output for each filename that is changed. (1.0%)

  3. Making files and directories Put the commands that you used to do these (including making the directories and files) into a file named MakingLinks. (0.75%)

  4. Create a directory called IveGotRights off LabTask2. Set its permissions to: Put the commands that you used to do these into a file named Permissions. (0.5%)

Answer