Question
Problem : You are new to the Linux world and want to make sure that the input received is in correct octal format for the
Problem: You are new to the Linux world and want to make sure that the input received is in correct octal format for the chmod permissions command. The octal number system using values 0 to 7. The chmod command accepts three octal numbers to set the permission values.
Procedure: read in the 3 digits from the user for the octal permission command, check if each digit is within the range and then state if those three numbers make a valid octal number for the chmod command.
Example: 0 6 3 yes, 063 is a valid octal number for the chmod command
9 0 2 no, 902 is not a valid octal number
____________________________________________________________________________________________________
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