Question
Write Commands 1. The command chmod ugo-wr+x file1 changes the permission of file1. How do you use the chmod command in octal notation to have
Write Commands
1.The command chmod ugo-wr+x file1 changes the permission of file1. How do you use the chmod command in octal notation to have the same result?
2. Write a command to order the file /etc/passwd on GID (primary) and UID (secondary) so that users with the same GID are placed together. Users with a lower UID shall be placed higher in the list.
3.Write a shell command to store The total number of lines in a file called foo into a variable count.
4.Write one shell pipeline to merge the content of two files (file1, file2), sort their contents and display all the lines which start with the word Chapter on the console.
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