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

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!