Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Print all lines with user id of 1000 or higher in /etc/passwd. Post process the output of ls -al so that only those files that

  1. Print all lines with user id of 1000 or higher in /etc/passwd.

  2. Post process the output of ls -al so that only those files that have rwx permission for the owner are shown.

  3. Post process the output of ls -al so that only those files that have rwx permission for others are shown (owner and group may have any permission).

  4. List all file names in the current directory, as well as in any subdirectories, that contain the word "foo" anywhere in the file.

  5. List the size and names of all files/directories in the current directory whose size is 10000 bytes or more. The output should be the size and then the name (one per line), and be sorted by the size (in increasing order). You may need the tr command for this one; see the manual.

  6. List all groups of which the user "student" is a member. Recall, group membership information is in the /etc/group file.

  7. In the /etc/group file, show all groups that have more than just the default user. For example, the cdrom group has the user student, and should be an output of the filtering. The output should be a group name followed by the list of users (comma separated). Take a look at grep's -v option, and cut's --output-delimiter option.

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

Visual C# And Databases

Authors: Philip Conrod, Lou Tylee

16th Edition

1951077083, 978-1951077082

More Books

Students also viewed these Databases questions