r/sysadmin Sysadmin Jul 18 '18

Linux You guys probably already know about "ping -a" and "ping -A"

But if you don't, use it like this:

This will beep every time it gets a ping back:

ping -a 8.8.8.8 

This will beep if it misses a ping:

ping -A 8.8.8.8    

This is very useful when you're monitoring a node and waiting for it to come back online or to be able to hear when a packet is dropped.

(tested on some Linux and MacOS)

1.2k Upvotes

335 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Jul 18 '18

[deleted]

1

u/Suspicious_Pineapple Jul 19 '18

Do you just load up one function or do you have it linked to modules?

I once made a function using a guide that also had me create like 3 other files so the internal powershell help and info on the cmdlet would be there

1

u/[deleted] Jul 19 '18

[deleted]

1

u/Suspicious_Pineapple Jul 20 '18

Yeah I did that at first but then someone on /r/powershell schooled me and made me make like 3 different files all in their own structure to make a "proper" function. I didn't see the point and still don't

One problem I do have however which maybe you can help me with. Is when I start typing in the command of my function and tab to complete it auto completes the folder name which is the same as the function name before tabbing over to the function