We have a series of folders in the current folder which are named with permission codes (example: 522, 700, 777). I'm looking for a command that allows you to take the permission code from the folder name, and apply it to the folder and all the files it contains. Using "xargs"

A+ Guide To It Technical Support
10th Edition
ISBN:9780357108291
Author:ANDREWS, Jean.
Publisher:ANDREWS, Jean.
Chapter13: Maintaining Windows
Section: Chapter Questions
Problem 13TC
icon
Related questions
Question

We have a series of folders in the current folder which are named with permission codes (example: 522, 700, 777). I'm looking for a command that allows you to take the permission code from the folder name, and apply it to the folder and all the files it contains. Using "xargs" 

Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
MacOS
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
A+ Guide To It Technical Support
A+ Guide To It Technical Support
Computer Science
ISBN:
9780357108291
Author:
ANDREWS, Jean.
Publisher:
Cengage,
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
LINUX+ AND LPIC-1 GDE.TO LINUX CERTIF.
Computer Science
ISBN:
9781337569798
Author:
ECKERT
Publisher:
CENGAGE L