Skip to content

Is it possible to get command arguments now executing?

I want to declare aliases which append argument if no argument specified. For example, I expected executing vimtutor with no argument is replaced to vimtutor ja.utf-8, but it doesn’t work properly. So, I tried some tests on bash shell. And I understood it is impossible to get command arguments now executing i…

How to access a port exposed from a docker container?

Above outputs show that the port 5000 has been exposed (I hope). Now when I do from the host machine: What is the way to access that port since it is exposed and the container is running? Answer First of all, check if you have an application, listening to the port inside your container. Just try to connect to…

Delphi 10.3 Linux exclusive file access

How can I lock a file in Linux with a filestream? Creating a filestream like in the example below works perfectly in Windows, the file is locked and cannot be deleted or written to in other sessions until the stream is freed. Under Linux I can delete the file or write to it in an other session without any pro…

Make DateTime.Now Display European Format Globally on Linux

I’m running a .NET Core app which contains DateTime.Now.ToString(). When on my PC it displays European date format (dd/mm/yy) but when running on a Linux VM located in the US it displays American date format (mm/dd/yy) despite the timezone on the VM being GMT. How can I make it display only European dat…