Question: Need more help with this i am not getting the right solutions. On the bottom, I have included commands I found but are not working
Need more help with this i am not getting the right solutions. On the bottom, I have included commands I found but are not working or not quite right
Note- I am using a non-gui red hat unix (Linux version 2.6.18-419.el5 (mockbuild@x86-027.build.eng.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-55)) #1 SMP Wed Feb 22 22:40:57 EST 2017)
4. From your home directory, find all the files associated with group 100. Copy/paste both your command and its output, but not its standard error output. My solution: 2 such files.
5. From your home directory, use egrep/cut/sort to produce a list showing the username and real name of all the students in the /etc/passwd file; the list should be lexicographically sorted by username. Copy/paste just your command for hand-in. My output:
023906973:Hobbs Ryan Thomas 10608634:Yang Zhiqiang 11159827:Chang Jonas . . . zrkerk:"Kerk Zi Rui" . zsj25502:Zheng Jerod Shaojie zuyanhuang:Huang Zuyan
note- I have tried
4.) $ find . -gid 100
$ find .-group admin
find: .-group: No such file or directory
find: admin: No such file or directory
$ gid
-bash: gid: command not found
5.) $ cat /etc/passwd|cut -d':' -f3,1|sort -t':' -k1
cut -f 1,4 -d: /etc/passwd | sort
cut -f 1,5 -d: /etc/passwd | sort
023906973:Hobbs Ryan Thomas
10608634:Yang Zhiqiang
11159827:Chang Jonas
11188087:Ghimire Abhishek
11252383:Tu Tsao-Hsiang
^Need to add an egrep to the command per the assignment, nut not sure why. Looks to be username and real name sorted lexographically. maybe it means to egrep for student account?^
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
