Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Part 2: Pefer to the given file mypasswd, write the proper aingle Linux command to perform each of the following tasks. For each task recond
Part 2: Pefer to the given file mypasswd, write the proper aingle Linux command to perform each of the following tasks. For each task recond the task number and the corresponding answer in a file named (part2 answers). 1. Question\#1:Display the login names (e.g,, u1180111) of all users whose first name is hamed (all cases) and default shell is ksh. 2. Question\#2: Display the last names of all unique users (all cases) with comp322 as part of their home directory sorted by the numerical value of their user id numbers in descending order. 3. Question\#3: Select all the users (full name, separated by a space ) whose shell is sh shell and save them to a file called sh-passwd. 4. Question \#4:List the full names sorted in ascending order (i.e., first name and last name separated by a space) of the 10th to 15th users in the flle. 5. Question\#5: Display the unique first names of all users (all cases) whose last names end with the letter ' n ' or ' m ' save the result to mnSorted.txt file 6. Question\#6: List the full names (all in capital letter) sorted in descending order of all users whose shell is NOT ksh shell . 7. Question\#7: List first names of all users (sorted based on ID number in ascending) , the user that have a login name starts with u115. 8. Question\#8:Display all files in (ete) directory does not contain word passwd in these files page by page at screen 9. Question\#9: Display the number of files in directory /ete that end with the word conf 10. Question\#10: List the initials (i.e., the first letter of the first name followed by the first letter of the last name) of all users that have sh as their default shell. Submission : To successfully submit your solution to this project and be considered for grading, you MUST upload three artifucts as a reply to the designated ITC message before the deadline: 1. A seript log named project2 funiversity id].log containing the steps you followed to do the required tasks. Similar to what you do in regular lab tasks. 2. Two files part 1 answers and part2 .answers. Important Notes: A. You should do all the work above completely on your own. Working with anybody else on any part of this project will result in a zero grade. B. No projects will be accepted after the specified deadline for any reason. C. Projects that do not have the corresponding log file turned in will NOT be graded. Part 2: Pefer to the given file mypasswd, write the proper aingle Linux command to perform each of the following tasks. For each task recond the task number and the corresponding answer in a file named (part2 answers). 1. Question\#1:Display the login names (e.g,, u1180111) of all users whose first name is hamed (all cases) and default shell is ksh. 2. Question\#2: Display the last names of all unique users (all cases) with comp322 as part of their home directory sorted by the numerical value of their user id numbers in descending order. 3. Question\#3: Select all the users (full name, separated by a space ) whose shell is sh shell and save them to a file called sh-passwd. 4. Question \#4:List the full names sorted in ascending order (i.e., first name and last name separated by a space) of the 10th to 15th users in the flle. 5. Question\#5: Display the unique first names of all users (all cases) whose last names end with the letter ' n ' or ' m ' save the result to mnSorted.txt file 6. Question\#6: List the full names (all in capital letter) sorted in descending order of all users whose shell is NOT ksh shell . 7. Question\#7: List first names of all users (sorted based on ID number in ascending) , the user that have a login name starts with u115. 8. Question\#8:Display all files in (ete) directory does not contain word passwd in these files page by page at screen 9. Question\#9: Display the number of files in directory /ete that end with the word conf 10. Question\#10: List the initials (i.e., the first letter of the first name followed by the first letter of the last name) of all users that have sh as their default shell. Submission : To successfully submit your solution to this project and be considered for grading, you MUST upload three artifucts as a reply to the designated ITC message before the deadline: 1. A seript log named project2 funiversity id].log containing the steps you followed to do the required tasks. Similar to what you do in regular lab tasks. 2. Two files part 1 answers and part2 .answers. Important Notes: A. You should do all the work above completely on your own. Working with anybody else on any part of this project will result in a zero grade. B. No projects will be accepted after the specified deadline for any reason. C. Projects that do not have the corresponding log file turned in will NOT be graded
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