| ▲ | WesolyKubeczek 3 hours ago | |
I remember reading a book, Red Hat Linux System Administration Unleashed from 2000, where it has been postulated that knowing several tools with overlapping functionality is an essential skill, as you may end up on a broken or intentionally crippled system where, say, ls is unavailable, and you may need to cobble it together from shell and awk and what have you. Back then you could indeed run a risk of having /usr nibbled by a grue such that it wouldn’t mount on the next boot, or you could get pwned and half of coreutils would turn into explosive pumpkins. I’m pretty sure we are past many of the threats listed in that book, but the skill is still useful, as can be seen. | ||
| ▲ | H4lcyon an hour ago | parent | next [-] | |
Absolutely! Here's a great resource for learning that kind of stuff btw https://gtfobins.org/ | ||
| ▲ | fragmede an hour ago | parent | prev [-] | |
I still remember /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /bin/ls using echo * to find the right ld-linux filename and then the "executable" as an argument as the get out jail card in case you ran chmod -x -R /bin /usr/bin /usr/sbin for some reason. | ||