Skip to content

Tag: linux

Replace characters on specific location every line

We got an exercise where we have to do certain things with the following text document: It’s all data seperated by a “|”. For this exercise, if the year of the first ascent is empty, I need to replace the “||” with “|unclimbed|” I can’t do it like this: Because …

Kubernetes on 32 bit machine

While I was running kubectl command in my ubuntu 16.04 os which is a 32 bit machine, I was getting cannot execute binary file: Exec format error Can some one tell me whether Kubernetes works on 32 bit machine or not ? Answer Currently there are no ready-made binaries for 32bit systems at: https://github.com/k…

Units of tx_queue & rx_queue in /proc/net/tcp

On a Linux 2.6.32, i’m looking at /proc/net/tcp and wondering what is the unit of tx_queue and rx_queue. I can’t find this information about receive-queue and transmit-queue in https://www.kernel.org/doc/Documentation/networking/proc_net_tcp.txt Nor in man 5 proc which shows only: The “tx_qu…

check password linux user

I am on debian 9. I have a problem to check the password of a linux user in my scripts. I realized that the different linux tools for creating and modifying a user password gave results of different pattern in /etc/shadow To create a user I have in /etc/shadow In another script I want check the password input…