Settings

Theme

Random Unix chores, but I can't use Google

codeofhonor.substack.com

3 points by the_jesus_villa 3 years ago · 2 comments

Reader

the_jesus_villaOP 3 years ago

Exactly what it sounds like, me trying to do basic tasks without Googling. It was fun and interesting for me, maybe it will be for you. Really I'm curious how bad I really did, so any corrections for things I did poorly are very appreciated!

  • BeefWellington 3 years ago

        Third task: Calculate the size of a directory and its contents
    
    The "du" command is your friend here.

    The real miss here is in trying to do it without googling but not bothering to search manpages. They're there for a reason. If you're unsure of what to look for, "man -k <keyword>" to search.

    For filtering networks, netfilter has a "limit" module that can be used to, for example, automatically limit all remote IPs to a set number of connections, rather than trying to piecemeal block bad actors. You can also do things like rate limit new connections, etc. Because it works off the chain-based approach, any known-good systems can be separately allowed through first (or allowed unlimited connections) before the limiting rule is applied.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection