Foundations of Information Management 1st Exercise Sheet Linux OS

Write the commands needed in order to complete the following instructions on Linux: 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. Open the terminal and create a new folder called “First_folder”. In that folder create two new text files “First_file” and “Second_file” with two lines of text each. Append to the “Second_file” two additional lines of text. Move “Second_file” into the user's home folder. Rename the “Second_file” file to “Second_new_file”. Go back in the “First_folder” directory. Delete the file “First_file”. Visualize “Second_new_file” using the “less” command. Add options to the “less” command so that you can visualize each row on a different line in your terminal. Write three UNIX commands on a text file called “testexec” in your home folder. Add permission to everyone to execute “testexec”. Execute this file from your terminal. Delete “First folder”. Remove permission from people on your group and outside your group to read, write or execute “testexec”. Copy “testexec” into the “Music” folder

Answer the following questions using the files provided   Write the five differences between file1 and file2 Will there be a difference in the output of these 2 commands: diff file1 file2 and diff –i file1 file2? If yes, what is the difference?

The solutions can be sent per email as a pdf file (please give your name in the file name of the pdf) or given as a sheet of paper in class. Deadline: Wednesday 26, 9:15 (send it before coming to class as email or give it at the beginning)

E-mail: fimex1112@gmail.com

Sign up to vote on this title
UsefulNot useful