Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago. Improve this question I have this file name: I would like to extract the final 7 numbers and put…
Why does rsync create ~ files?
I run the following daily crontab: It creates these files: Anyone know why it creates these tilde (~) files? Also anyone know a quick way to delete them? Answer Anyone know why it creates these tilde (~) files? That would be because of the -b option you are specifying to rsync. Its purpose is to request exact…
How to get Docker desktop on Ubuntu?
I am new to Docker/Kubernetes and trying to see if there is a way to get ‘Docker Desktop’ like functionality on Ubuntu, which is my primary development machine. All I know from my search is that the ‘Docker Desktop’ is only from Windows and Mac. It contains many useful tools bundled to…
search and rename and mv all files from directories and subdirectories
i have a lot of files 30k directories, 21k files inside direrctories and subdirerctories of txt files with the same name i want to search for all files inside a lot of subdirerctories and than rename them to other unique name to move them to other directory. This command not showing the duplicate files Answer…
Is it possible to run vstest on a Linux machine via a release pipeline through Azure TFS
I am working on a release pipeline that should deploy our project artifacts and run tests over them. The agent is on a Ubuntu machine. So far I couldn’t find a way to run tests over Ubuntu because as microsoft docs say we should install either the Visual Studio or Visual Studio Test Platform using an in…
Which system call does the Linux file command use?
Do you know which system call the Linux file command uses to determine the type of file? On the command line, if you use the file command it will reply with something like: dev-1:~/$ file download.png download.png: PNG image data, 724x 724, 8-bit/color RGBA, non-interlaced Is this an entire routine that does …
Searching two patterns in files that appear in the same file but may not appear on the same line
From a directory, I need to find all files that contain a decimal numbers say 42.7 AND the keyword “foo” or “goo”. How could I achieve that? Suppose I have a directory with three files The search command should give file1.txt and file3.txt. What is a search command to achieve this? i s…
The std::filesystem current_path returns the root one
I just wanna to print the current path and its content, via std::filesystem::path::current_path (the compiler is emcc this one). Some code below: And for windows it works fine, the output looks like: However, whether for Linux subsystem or for docker container with Ubuntu image it just prints the root directo…
Understanding getaddrinfo function in C
I’m new to C and socket programming, just a question on getaddrinfo function. The function prototype of getaddrinfo is: and getaddrinfo returns a result that points to a linked list of addrinfo structures, each of which points to a socket address structure that corresponds to host and service. Below is …
Change hostname to null in linux [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …