1. [4] Describe what happens for each of the following uses of the 'mv' command: a. moving a regular file onto an existing regular file b. moving a directory onto an existing regular file c. moving a directory onto another existing directory d. moving a directory onto a subdirectory within itself 2. [4] Assume that in the '/bin' directory, the 'zcat' program has a hard link count of '3! What two other files (also in this directory) are hard links to this file? How would you know for certain that these 3 files are the same identical object? 3. [2] Why do we sometimes run a command like this./update.sh instead of update.sh? 4. [2] Is it possible for two hard links to the same regular file object to have different permissions? Why or why not? 5. [2] What happens when you try to create a hard link to a directory? 6. [2] Create a new directory. In the new directory, create a new file. In the new directory, create a symbolic link to the new file with its relative path. Test that the link is really working by 'cat'ing the symbolic link. Use the mv command to move the symbolic link to another directory (either the parent or a new subdirectory. Will the symbolic link still work? Explain why or why not. What would happen if you used a hard link? Explain. Hello I am studying IT and i need help in my course operating system?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

show the outcomes as well, and the txt

1. [4] Describe what happens for each of the following uses of the 'mv' command:
a. moving a regular file onto an existing regular file
b. moving a directory onto an existing regular file
c. moving a directory onto another existing directory
d. moving a directory onto a subdirectory within itself
2. [4] Assume that in the '/bin' directory, the 'zcat' program has a hard link count of '3! What two
other files (also in this directory) are hard links to this file? How would you know for certain that
these 3 files are the same identical object?
3. [2] Why do we sometimes run a command like this./update.sh instead of update.sh?
4. [2] Is it possible for two hard links to the same regular file object to have different permissions?
Why or why not?
5. [2] What happens when you try to create a hard link to a directory?
6. [2] Create a new directory. In the new directory, create a new file. In the new directory, create a
symbolic link to the new file with its relative path. Test that the link is really working by 'cat'ing
the symbolic link. Use the mv command to move the symbolic link to another directory (either
the parent or a new subdirectory. Will the symbolic link still work? Explain why or why not. What
would happen if you used a hard link? Explain.
Hello I am studying IT and i need help in my course operating system?
Transcribed Image Text:1. [4] Describe what happens for each of the following uses of the 'mv' command: a. moving a regular file onto an existing regular file b. moving a directory onto an existing regular file c. moving a directory onto another existing directory d. moving a directory onto a subdirectory within itself 2. [4] Assume that in the '/bin' directory, the 'zcat' program has a hard link count of '3! What two other files (also in this directory) are hard links to this file? How would you know for certain that these 3 files are the same identical object? 3. [2] Why do we sometimes run a command like this./update.sh instead of update.sh? 4. [2] Is it possible for two hard links to the same regular file object to have different permissions? Why or why not? 5. [2] What happens when you try to create a hard link to a directory? 6. [2] Create a new directory. In the new directory, create a new file. In the new directory, create a symbolic link to the new file with its relative path. Test that the link is really working by 'cat'ing the symbolic link. Use the mv command to move the symbolic link to another directory (either the parent or a new subdirectory. Will the symbolic link still work? Explain why or why not. What would happen if you used a hard link? Explain. Hello I am studying IT and i need help in my course operating system?
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education