Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 Practical Tasks (8 marks) Complete the following tasks, writing your answers (or what you did) in a plain text file, and get your answers
3 Practical Tasks (8 marks) Complete the following tasks, writing your answers (or what you did) in a plain text file, and get your answers marked off by your tutor before you leave. Also, do take note of the submission instructions in Section 3.4. 3.1 Task 1 (4 marks) Experiment with navigating to the following paths using the cd command. After navigating to each directory, use the ls command to look at the files in that location. Are you able to navigate to all of these paths? Does it matter what working directory you are in before running the cd command? /home/student/Documents FIT2100 -/Documents/FIT2100 ..././.././home/student After experimenting, answer the following questions in a plain txt file: (a) Which of the paths above are absolute, and which of them are relative paths? (b) What are the advantages of using absolute paths over relative paths? Why and when would you choose to use relative paths over absolute paths? (c) Write cd commands that allow you to achieve the following: navigate to one directory above the user's home directory no change to your current working directory (d) To run programs in your current directory, you will need to place a ./ in front of the name of a program - why is this required? Assuming you have an executable named gcc in your current directory, describe what might happen if we were able to run programs in the current directory without needing to prepend a . / to the program name
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