Question: Linux script question: Write a script to output all of the file names that have at least 2 hard links. Use the stat command similar

Linux script question: Write a script to output all of the file names that have at least 2 hard links. Use the stat command similar to the script in chapter 10.F.

note: Chapter 10.F is the picture below:

Linux script question: Write a script to output all of the file

f. Using the tool of your choice (egrep, awk, a shell script), provide an instruction using stat to obtain all files in /etc that have at least 7 hard links, stat -c "%n %h" gives you the name and hard links. Which files were found? Include in your answers the instruction or script that you wrote

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!