Question: Need some help with this i am not getting the right solutions. 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)
Need some help with this i am not getting the right solutions.
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)
1. From your home directory, find all the symbolic links currently in /tmp. My solution: 18 of them.
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
1.) find /tmp -type l | wc -l
ls -al /tmp | grep "\ ->" | wc -l
4.) find . -gid 100
5.) $ cat /etc/passwd|cut -d':' -f3,1|sort -t':' -k1 (and need solution to use egrep | cut | sort)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
