LFCS Doubt in commands

Can anyone please give me a solution for the below question. I searched for the solution everywhere but i could not find any suitable answer for it.

Hi @yalla.vishal,

Not sure if it helps but if I was you, I’m going to check by this way:

trungtran@Trungs-MacBook-Air ~ % which last         
/usr/bin/last
trungtran@Trungs-MacBook-Air ~ % ls -l /usr/bin/last
-rwxr-xr-x  1 root  wheel  151360 Aug 24 15:59 /usr/bin/last

We need to ensure that owner, anyone in the group, and anyone else has the right to execute.

Happy learning,
Trung.

Thank you very much @trung-kodekloud for your answer. This seems like the perfect logical solution for the question. I was not able to understand the question perfectly.

1 Like

Hi @yalla.vishal,

I’m glad it helped, feel free to bring up any questions you have during the learning journey.

Happy learning,
Trung.