Question
Hi please solve it in Linux File contains (prj2_passwd) root:x:0:0:Admin:/:/bin/bash comp311ta:x:501:100:Comp311TA_Account:/home/comp311ta:/bin/bash u1142478:x:502:66:Sondos_Awashra:/home/students/comp311/u1142478:/bin/bash u1150129:x:503:66:Mohammad_Kahala:/home/students/comp311/u1150129:/bin/bash u1150279:x:504:66:Tareq_Qahoush:/home/students/comp311/u1150279:/bin/bash u1150312:x:505:66:Ahmad_Thabet:/home/students/comp311/u1150312:/bin/bash u1150357:x:506:66:Mohammad_Alqayem:/home/students/comp311/u1150357:/bin/bash u1150409:x:507:66:Ahmad_Jamal:/home/students/comp311/u1150409:/bin/bash u1150523:x:508:66:Tarik_Suid:/home/students/comp311/u1150523:/bin/bash u1152270:x:509:66:Atheer_Mohammad:/home/students/comp311/u1152270:/bin/bash u1152484:x:510:66:Mohammad_Asad:/home/students/comp311/u1152484:/bin/bash u1152679:x:511:66:Haneen_Ashkar:/home/students/comp311/u1152679:/bin/bash u1153026:x:512:66:Noor_Abuhijleh:/home/students/comp311/u1153026:/bin/bash u1161333:x:576:66:Roa'A_Injass:/home/students/comp311/u1161333:/bin/bash u1161564:x:577:66:Abdallah_Zyoud:/home/students/comp322/u1161564:/bin/bash u1162505:x:579:66:Mohammed_Issa:/home/students/comp311/u1162505:/bin/bash
Hi please solve it in Linux
File contains (prj2_passwd)
root:x:0:0:Admin:/:/bin/bash comp311ta:x:501:100:Comp311TA_Account:/home/comp311ta:/bin/bash u1142478:x:502:66:Sondos_Awashra:/home/students/comp311/u1142478:/bin/bash u1150129:x:503:66:Mohammad_Kahala:/home/students/comp311/u1150129:/bin/bash u1150279:x:504:66:Tareq_Qahoush:/home/students/comp311/u1150279:/bin/bash u1150312:x:505:66:Ahmad_Thabet:/home/students/comp311/u1150312:/bin/bash u1150357:x:506:66:Mohammad_Alqayem:/home/students/comp311/u1150357:/bin/bash u1150409:x:507:66:Ahmad_Jamal:/home/students/comp311/u1150409:/bin/bash u1150523:x:508:66:Tarik_Suid:/home/students/comp311/u1150523:/bin/bash u1152270:x:509:66:Atheer_Mohammad:/home/students/comp311/u1152270:/bin/bash u1152484:x:510:66:Mohammad_Asad:/home/students/comp311/u1152484:/bin/bash u1152679:x:511:66:Haneen_Ashkar:/home/students/comp311/u1152679:/bin/bash u1153026:x:512:66:Noor_Abuhijleh:/home/students/comp311/u1153026:/bin/bash u1161333:x:576:66:Roa'A_Injass:/home/students/comp311/u1161333:/bin/bash u1161564:x:577:66:Abdallah_Zyoud:/home/students/comp322/u1161564:/bin/bash u1162505:x:579:66:Mohammed_Issa:/home/students/comp311/u1162505:/bin/bash u1163149:x:580:66:Ibraheem_Issa:/home/students/comp311/u1163149:/bin/bash u1111308:x:581:66:Saeed_Sabah:/home/students/comp311/u1111308:/bin/bash u1160305:x:513:66:Rebhiya_Sbeih:/home/students/comp311/u1160305:/bin/bash u1160440:x:514:66:Marah_Hamad:/home/students/comp311/u1160440:/bin/bash u1160455:x:515:66:Ahmad_Basheer:/home/students/comp311/u1160455:/bin/bash u1160481:x:516:66:Suhaib_AbuGhannam:/home/students/comp311/u1160481:/bin/bash u1161357:x:517:66:Bara_Ibrahim:/home/students/comp311/u1161357:/bin/bash u1161405:x:518:66:Rawan_Alimi:/home/students/comp311/u1161405:/bin/ksh u1162147:x:519:66:Nada_Zalloum:/home/students/comp311/u1162147:/bin/bash u1162422:x:520:66:Reem_Shamasnah:/home/students/comp311/u1162422:/bin/bash u1130212:x:521:66:Ibrahim_Njoum:/home/students/comp311/u1130212:/bin/bash u1131589:x:522:66:Yara_Hussien:/home/students/comp311/u1131589:/bin/ksh u1162074:x:535:66:Sabry_Alawy:/home/students/comp311/u1162074:/bin/bash u1162213:x:536:66:Noor_Hmeidan:/home/students/comp311/u1162213:/bin/bash u1162230:x:537:66:Jehad_AlMutan:/home/students/comp311/u1162230:/bin/bash u1162309:x:538:66:Hammam_Hamad:/home/students/comp311/u1162309:/bin/bash u1162314:x:539:66:Samer_Almasloot:/home/students/comp311/u1162314:/bin/bash u1163095:x:540:66:AbdelRahim_Ahmad:/home/students/comp311/u1163095:/bin/bash u1153160:x:541:66:Muayed_Mafarjeh:/home/students/comp311/u1153160:/bin/ksh u1143191:x:542:66:Alaa_Zubaidi:/home/students/comp311/u1143191:/bin/bash u1160766:x:543:66:Ahmad_Ghannam:/home/students/comp311/u1160766:/bin/bash u1152185:x:544:66:Mahmoud_AbdelKader:/home/students/comp311/u1152185:/bin/bash u1162651:x:545:66:Aya_Khateeb:/home/students/comp311/u1162651:/bin/bash u1151283:x:546:66:Mustafa_Salah:/home/students/comp311/u1151283:/bin/ksh u1141480:x:547:66:Ahmad_Qasem:/home/students/comp311/u1141480:/bin/bash u1141648:x:548:66:Mohammad_Mohammad:/home/students/comp311/u1141648:/bin/bash u1141879:x:549:66:Rawan_Khalaf:/home/students/comp311/u1141879:/bin/bash u1142011:x:550:66:Mohammad_Fitiani:/home/students/comp311/u1142011:/bin/bash u1142608:x:551:66:Haitham_Idrees:/home/students/comp311/u1142608:/bin/bash u1142651:x:552:66:Dalal_Fukheda:/home/students/comp322/u1142651:/bin/bash u1152329:x:553:66:Ibrahim_Rifaie:/home/students/comp311/u1152329:/bin/bash u1152477:x:554:66:Rami_Salman:/home/students/comp311/u1152477:/bin/ksh u1153279:x:557:66:Yazeed_Nofal:/home/students/comp311/u1153279:/bin/bash u1160063:x:558:66:Ayah_Sa'Fin:/home/students/comp311/u1160063:/bin/bash u1160343:x:559:66:Mousa_Mtera:/home/students/comp322/u1160343:/bin/bash u1160394:x:560:66:Laith_Al-Budeiri:/home/students/comp311/u1160394:/bin/bash u1161196:x:561:66:Jeries_Nasrawi:/home/students/comp311/u1161196:/bin/bash u1161721:x:562:66:Mohammad_Dar-Ahmad:/home/students/comp311/u1161721:/bin/bash u1162344:x:563:66:Tawfiq_Abdulraziq:/home/students/comp311/u1162344:/bin/bash u1162949:x:564:66:Basil_Al-Sa`Ed:/home/students/comp311/u1162949:/bin/sh u12345:x:565:66:Hafez_AlBarghouthi:/home/students/comp311/u12345:/bin/bash u1140360:x:566:66:Rawan_Safi:/home/students/comp311/u1140360:/bin/bash u1141936:x:567:66:Areej_Rimawi:/home/students/comp311/u1141936:/bin/sh u1142984:x:568:66:Ahlam_Ghazawneh:/home/students/comp311/u1142984:/bin/bash u1150845:x:569:66:Haneen_Taweel:/home/students/comp311/u1150845:/bin/bash u1151429:x:570:66:Amer_Aldaghamin:/home/students/comp311/u1151429:/bin/bash u1151432:x:571:66:Yanal_Abdeljawwad:/home/students/comp311/u1151432:/bin/bash u1160034:x:572:66:Taqwa_AbuAsbah:/home/students/comp311/u1160034:/bin/bash u1150383:x:523:66:Rami_Yahya:/home/students/comp311/u1150383:/bin/bash u1151913:x:524:66:Ahmad_Salah:/home/students/comp311/u1151913:/bin/bash u1153216:x:525:66:Isra_Hamed:/home/students/comp311/u1153216:/bin/bash u1150383:x:523:66:Rami_Yahya:/home/students/comp311/u1150383:/bin/sh u1151913:x:524:66:Ahmad_Salah:/home/students/comp311/u1151913:/bin/bash u1153216:x:525:66:Isra_Hamed:/home/students/comp322/u1153216:/bin/bash u1160076:x:526:66:Adnan_Assali:/home/students/comp322/u1160076:/bin/bash u1160155:x:527:66:Hani_Yaaqbeh:/home/students/comp311/u1160155:/bin/sh u1160170:x:528:66:Shadi_Mohammad:/home/students/comp311/u1160170:/bin/bash u1160643:x:529:66:Fatima_Ayyash:/home/students/comp311/u1160643:/bin/bash u1160658:x:530:66:Kamaleddin_Shaer:/home/students/comp311/u1160658:/bin/bash u1160707:x:531:66:Malak_Shoubi:/home/students/comp322/u1160707:/bin/bash u1161044:x:532:66:Fida_Zohour:/home/students/comp311/u1161044:/bin/bash u1161390:x:533:66:Noor_Kharoubi:/home/students/comp311/u1161390:/bin/bash u1161444:x:534:66:Salah_Suliman:/home/students/comp322/u1161444:/bin/bash u1152901:x:582:66:Darin_Jojas:/home/students/comp322/u1152901:/bin/bash
i need solve this question but don't use arrays
Under your home directory, create a directory called project3_[university_id] and inside the directory, write a shell script called mysh. When mysh is executed, it displays the prompt: myprompt > and accepts one of the following six commands: 1. myfinger namel name2 name3 This command will display the login name, full name, home directory, and the default shell for each of the names given on the command line. If one of the names is not found, it should display an error message corresponding to that name. If myfinger is entered without any arguments, then the login name, full name, home directory, and the default shell should be displayed for all the users logged in to the system at that time. You can use the who command to retrieve all users logged in to the system. You are not allowed to use the finger command in implementing this command. You can rely on the format set by prj2_passwd file from Project 2 to implement this command. Example usage: myprompt > myfinger u1150129 Login Name: u1150129 Full Name: Mohammad Kahala Home Directory: /home/students/comp311/u1150129 Default Shell: /bin/bash myprompt>
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