Skip to content
Advertisement

Tag: ubuntu

How do I create the same directory in every subdirectories in bash?

I’ve been trying to create the directory “a” inside all the subdirectories of “example”. What I tried is the following: But it doesn’t take the ‘*’ as a wildcard, returning mkdir: can not create «example/*/a» directory: It doesn’t exist file or directory Note that I have too much subdirectories in example, so I can’t do it by creating a list.

Unable to open ‘/boot/vmlinuz-5.x.x.x-generic.dpkg-new’: Operation not permitted [Need solution without removing antivirus from system]

In the last couple of days, I have gone through some unmet dependencies issues while upgrading. I tried installing those packages separately but couldn’t find a solution. I know one solution that is to remove the antivirus from the system. But I’m not permitted to remove it. I am looking for another solution without removing the anti-virus from the system.

Azure Batch Service: Passing Arguments via Command Line into Application Package on Linux/Ubuntu

Given the following C#/.NET console application running on my Azure Batch Pool/Task: How can I pass the args when adding a command line to my tasks in a Linux/Ubuntu VM. I have tried the following with no success: /bin/sh -c $AZ_BATCH_APP_PACKAGE_Program_1_0/Program -args ‘arg1’ ‘arg2’ /bin/sh -c $AZ_BATCH_APP_PACKAGE_Program_1_0/Program -args ‘arg1’, ‘arg2’ /bin/sh -c $AZ_BATCH_APP_PACKAGE_Program_1_0/Program ‘arg1’ ‘arg2’ /bin/sh -c $AZ_BATCH_APP_PACKAGE_Program_1_0/Program ‘arg1’, ‘arg2’

fork() giving wrong output in linux (reverse output)

I have written code in C as follows Output as shown in ubuntu 20 OS I am expecting that child process should be written first as after fork() is called child process’s printf() will be printed on screen and after that parent’s printf() will be printed but reverse is printed actually. Please help me why child process’s printf() is not

Powershell for Linux: Combining commands with pipe sign doesn’t work

Any way to concatenate commands in Powershell for Linux? This is what I’m trying to run: pwsh -Command Invoke-ScriptAnalyzer -Path . | ConvertTo-Json | Out-File -FilePath “/home/administrator/scripts/test.json” So, run the Invoke-ScriptAnalyzer, convert the results to Json and save the result to test.json. It doesn’t recognize anything after the | sign: ./test.sh: line 1: ConvertTo-Json: command not found ./test.sh: line 1:

Getting curl: (3) URL using bad/illegal format

My bash code is simply this. I am trying to learn docker but also a newbie with bash scripting. I type in something simple like google.com for the read command but it gives me curl: (3) URL using bad/illegal format or missing URL. Anyone know what I am doing wrong? docker exec -it missingDependencies sh -c “echo ‘Input Website:’; read

Advertisement