Browsed by
Tag: tools

Linux Sync Buffer Progress Monitoring (e.g. For Copy To USB)

Linux Sync Buffer Progress Monitoring (e.g. For Copy To USB)

On my Linux system (Linux Mint), if I copy a huge file to an USB stick, then I always type “sync” in a shell command line to make sure all buffers are flushed to the USB stick before I eject the USB stick. This writing of the buffers can take quite a while (perhaps due to the huge amount of cache memory in the laptop). To monitor progress, you can type the following in a shell: It will show something…

Read More Read More

Curl Command To Measure DNS And Network Timing

Curl Command To Measure DNS And Network Timing

The curl command line tool has a reporting option which you can use to measure different bits of timing in the network handling. This can be useful to monitor or investigate network issues: Example output: You can also insert \n’s in the option to put the result on multiple lines:

Check SSL Certificate Expire From Command Line

Check SSL Certificate Expire From Command Line

If you want to check SSL Certificate expires from the Linux command line, you can do that like this: (Of course replace the www.kaper.com by the host you want to check). Here’s a full example run: If you want to see some more details (for example to get a copy of the public certificates), use: Don’t have openssl client? And you do not want to install it locally? You can also run it in docker: Note: you can use the…

Read More Read More

Running CTOP in Docker

Running CTOP in Docker

CTOP is a nice command line tool to look at running Docker containers. To prevent from having to install the ctop binary locally, and always have the latest version, I do run it inside docker. For easy execution, I created a (Linux) bash alias: Just add it to your .bashrc (or some other file you load when opening a new shell, like ~/.bash_aliases). From then on, you can just type ctop as command line command, and it will launch the…

Read More Read More

Find Kubernetes Ingress Rules

Find Kubernetes Ingress Rules

Suppose you have a kubernetes cluster, which contains a large set of ingress rules, of which many are used for the same hostname (just using different context-root’s / paths). In this case it can be hard to find out which rule is used for a certain URL. To help out in this situation I have created a Linux script to make a nice overview of paths mapped to what services by which ingress rules. You still have to read through…

Read More Read More