I've a very basic Linux script (/home/scripts/script.sh): #!/bin/bash echo 'a' | /bin/netcat -vv 10.10.10.1 3333 echo "done" > /tmp/result When I try to r
I use the command wc -l count number of lines in my text files (also i want to sort everything through a pipe), like this: wc -l $directory-path/*.txt | sort -
I am writing a bash script which has a json value stored in a variable now i want to extract the values in that json using Jq. The code used is. json_val={"co
I am fairly new to Python and Azure web apps. Any help is appreciated. My setup: Program: Visual Studio code Language: Python-Flask Cloud provider: Microsoft
I added a cron job recently, but made a mistake in the path while giving the command and hence, the job never succeeded. Is there some way to test the cron chan
I am facing a problem in writing a shell script for android devices to be run only on sh present in the device (/system/bin/sh). I have written the following s
I'm trying to modify GTK2 on Ubuntu Oneiric. I download the source: apt-get source libgtk2.0-0 cd gtk+2.0-2.24.6/ I try to compile and overwrite the current
I'm trying to modify GTK2 on Ubuntu Oneiric. I download the source: apt-get source libgtk2.0-0 cd gtk+2.0-2.24.6/ I try to compile and overwrite the current
If I wanted to make a directory and change directory into it all in one line, I could do something like this: mkdir dir_name && cd $_ How can I do the
How can affect on my app's status icon label in Gnome3? When i moving cursor on it shows me my app's executable name. How can I change it?
So I follow the commands on the website. I open one windows and I used the command: sudo make qemu-gdb. And it asked me to use another terminal to start gdb.
If I build a module which depends on other modules, and i get this warning: 'function or symbol ?' [source dir/my_module.ko] undefined! What does the warn
How do you check whether a path is absolute or relative, using C on Linux?
I'm practicing bash and honestly, it is pretty fun. However, I'm trying to write a program that compares an array's value to a variable and if they are the same
I'm practicing bash and honestly, it is pretty fun. However, I'm trying to write a program that compares an array's value to a variable and if they are the same
I have a sample sh script on my Linux environment, which basically run's the ssh-agent for the current shell, adds a key to it and runs two git commands: #!/bi
I have Ubuntu 16.04 running (clean install - no upgrade). MySQL is running fine - but I get this error when I try to update MySQL: apt-get install Reading pack
how to find a line that contains exactly 3 "w", 5 "t" and no "v" with grep? Input: ---------- aabbccddd4444 wccwwtttjjttuu zzxxxwwwmmmnnnn Expected output: --
This error stops my kernel make process ld: arch/x86/entry/syscall_64.o:(.rodata+0x1120): undefined reference to `__x64_sys_fd' BTF .btf.vmlinux.bin.o pahol
I want to use wget to download files linked from the main page of a website, but I only want to download text/html files. Is it possible to limit wget to text/