Pergunta de entrevista da empresa Amazon

You accidentally entered: cd /bin; chmod 644 chmod, how can you fix it

Respostas da entrevista

Sigiloso

4 de jun. de 2018

They were expencting the perl answer (google for it), but I didn't know it at the time so I made my own: cd /bin cp ls /tmp cat chmod>/tmp/ls /tmp/ls 755 chmod rm /tmp/ls I was told it was pretty original.

1

Sigiloso

30 de mai. de 2019

find /lib -type f -name ld*.so once you get the full path ld-2.17.so ./chmod +x ./chmod