Skip to content

Tag: linux

Docker node cannot find file on mounted volume

I’m trying to run a docker container that has a volume mounted on it that contains ssl keys/files. I keep getting a file not found error when I’ve triple-looked at all the directories and the error and can’t seem to wonder what is going on. To start off, here’s the portion of my code t…

SSD vs. tmpfs speed

I made a tmpfs filesystem in my home directory on Ubuntu using this command: Then I wrote this Python program: The result: I am confused about this result. Isn’t the tmpfs a file system based on RAM and isn’t RAM supposed to be notably faster than any hard disk, including SSDs? Furthermore, I noti…

Changing linux user password from Golang not working

I need a one-liner from inside a go routine to change a user’s password in linux. The command that WORKS from the command line: But this doesn’t work from my Go program. I have tried substituting other one-liner commands, such as: drm file.txt, touch file.txt, etc. And those all work. The Go progr…

How to replace unicode character in file?

I’m reading one file using java and using “u0001” as a field separator. This file is present in linux machine. But when I do head filename, I can’t see “u0001” as field separator in file. May I know please how can I see the field separator in file on terminal ? How to repla…

io.h not found CLion in Ubuntu 20.04

I am trying to run a c++ code however, io.h is not found. It is shown as Additionally, I am getting a bunch of weird problems (for a code that is rather > 16 years old): or or or or or or I wonder if these are related to io.h not being found. I have CLion 2020.2.3 and Answer Add