About 115,000 results
Open links in new tab
  1. Force programs bind to an interface, not IP address

    May 8, 2021 · A few suggestions: (1) If you're going to replace socket(), you should comply with its API contract. If it fails, then set errno to one of the values with which socket() can fail and return -1. (2) I'd …

  2. How to make NetworkManager use `/etc` configs and where `/run ...

    Dec 16, 2024 · Much like systemd, configurations in /run/ are automatically generated. If you want to turn off automatic profiles for a given network interface (to force yourself to create a profile to connect …

  3. Terminating an infinite loop - Unix & Linux Stack Exchange

    To kill the outer loop I usually add a sleep command and press CTRL-C some more times: while :; do LONGTIME_COMMAND; sleep 1; done. Please notice: the colon behind while is interpreded as …

  4. Endless loop when connected to OpenVPN - Unix & Linux Stack …

    Feb 27, 2024 · I connected my university-vpn via openvpn on Windows, Ubuntu and Manjaro. Windows worked instantly, no configuration was needed. When using any Linux-System, connecting to the vpn …

  5. endless loop in until loop for unix script - Unix & Linux Stack Exchange

    Jul 3, 2023 · I am doing a unix script using until loop.The idea of my script is it need to continuously verify the url status whether is up or down.When its up, it will exit the loop. In my script, I will use c...

  6. shell - curl url call in for loop? - Unix & Linux Stack Exchange

    Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers.

  7. How can I force /dev/random to block? - Unix & Linux Stack Exchange

    Mar 6, 2022 · What's replenishing my entropy so well, and how can I find the specific source of randomness? As of kernel 5.6, /dev/random obtains randomness from the kernel's CRNG, which is …

  8. Why does `tail -c 4097 /dev/zero` exit immediately instead of ... - linux

    Apr 16, 2025 · @terdon, they said it there: "since /dev/zero is an endless stream". tail -c is supposed to print the last N bytes, but you can't find the "last" bytes of an endless stream. Of course, when …

  9. Purpose of /dev/zero? - Unix & Linux Stack Exchange

    Jan 31, 2013 · 64 /dev/zero is a special file (in this case, a pseudo-device) that provides an endless stream of null characters (so hex 0x00)? That's why your cat is not outputting anything (but try …

  10. what is the easiest way to configure serial port on Linux?

    Nov 13, 2015 · In Windows command prompt to configure a serial port, I can simple use: mode com1: 9600,n,8,1 or to read the configuration: mode com1: Are there similar commands in Linux? What …