Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(16%) Assume you are running the following commands on the mypasswd file which has any number of lines (at least 50) of the following

image text in transcribed

(16%) Assume you are running the following commands on the mypasswd file which has any number of lines (at least 50) of the following format: u1192345:x:520:66:Muhammd_Subhi:/home/comp311/u1192345:/bin/bash Write a single command to do each of the following: 1- display the last names of all users whose default shell is ksh and whose first name is Samer (all cases) 2- display the first and last names of all comp231 users after changing last names that are "hamdi"(all cases) to "newname" 3- display the user id numbers of all users whose last name is hamdan (all cases) 4- display the last names of all the users whose first names starts with the letter 'd' or 'D'.

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

Data Communications and Networking

Authors: Behrouz A. Forouzan

5th edition

73376221, 978-0073376226

Students also viewed these Computer Network questions