Docker: Are Docker links deprecated?

Docker networking is being promoted as successor – https://docs.docker.com/engine/userguide/networking/ Before the Docker network feature, you could use the Docker link feature to allow containers to discover each other. With the introduction of Docker networks, containers can be discovered by its name automatically. On whether you should stop using them – yes. The docker world is … Read more

What are meanings of fields in /proc/net/dev?

You can have a look at net/core/dev.c in the source tree to see what it means: seq_printf(seq, “%6s:%8lu %7lu %4lu %4lu %4lu %5lu %10lu %9lu ” “%8lu %7lu %4lu %4lu %4lu %5lu %7lu %10lu\n”, dev->name, stats->rx_bytes, stats->rx_packets, stats->rx_errors, stats->rx_dropped + stats->rx_missed_errors, stats->rx_fifo_errors, stats->rx_length_errors + stats->rx_over_errors + stats->rx_crc_errors + stats->rx_frame_errors, stats->rx_compressed, stats->multicast, stats->tx_bytes, stats->tx_packets, stats->tx_errors, stats->tx_dropped, … Read more

How to see Linux’ view of the RAM in order to determinate the fragmentation

Memory Fragmentation When a Linux system has been running for a while memory fragmentation can increase which depends heavily on the nature of the applications that are running on it. The more processes allocate and free memory, the quicker memory becomes fragmented. And the kernel may not always be able to defragment enough memory for … Read more

Git- How to kill ssh-agent properly on Linux [closed]

You can kill ssh-agent by running: ssh-agent -k !NB, -k argument works only if $SSH_AGENT_PID environment variable is set. eval “$(ssh-agent -s)” sets the variable, but there’re also other methods to start the agent without setting the environment variable. E.g., connecting to a remote server implicitly starts the agent without setting the variable. In this … Read more

How to Determine if LCD Monitor is Turned on From Linux Command Line

The VESA DDC connection is an I2C connection that can be used to query the presence of the monitor. Linux exposes the I2C device and userland programs can communicate directly with the monitor with code such as that at http://jaffar.cs.msu.su/oleg/ddcci/ Notice this below: Control 0xe1: +/1/1 [SAM: Power control (0 – off/1 – on)] # … Read more

Write a bash shell script that consumes a constant amount of RAM for a user defined time [closed]

Even if traditional Bash arrays are not supported, it may still be possible to create array-like variables using the eval command built into the particular shell. The following example script is based on some scripting I did when using BusyBox in an embedded Linux project. BusyBox uses the Almquist shell (also known as A Shell, … Read more