Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2004 Workshops Edbt 2004 Workshops Phd Datax Pim P2panddb And Clustweb Heraklion Crete Greece March 2004 Revised Selected Papers Lncs 3268

Authors: Wolfgang Lindner ,Marco Mesiti ,Can Turker ,Yannis Tzitzikas ,Athena Vakali

2005th Edition

3540233059, 978-3540233053

More Books

Students also viewed these Databases questions

Question

1. Identify outcomes (e.g., quality, accidents).

Answered: 1 week ago