Skip to content Skip to sidebar Skip to footer
Showing posts with the label Linux

Adding Password To .ssh/config

Answer : Solution 1: No, There is no method to specify or provide on the command line the passw… Read more Adding Password To .ssh/config

Can I Use Ufw To Setup A Port Forward?

Answer : Solution 1: Let's say you want to forward requests going to 80 to a server listeni… Read more Can I Use Ufw To Setup A Port Forward?

Can't Add Perf Probe For C++ Methods

Answer : As a workaround you can get the method address with objdump and perf probe will accep… Read more Can't Add Perf Probe For C++ Methods

Can I Boot Linux From A VHD?

Answer : yes, We just released a sample Linux VHD that you can boot any computer. You can find… Read more Can I Boot Linux From A VHD?

A Command To Get The Sync Status Of A Dropbox File

Answer : Use filestatus : dropbox filestatus /path/to/file For more help see: dropbox help… Read more A Command To Get The Sync Status Of A Dropbox File

Change Default DNS Server In Arch Linux

Answer : Arch Wiki explains: either use a resolv.conf.head file, or write-protect /etc/resolv.c… Read more Change Default DNS Server In Arch Linux

#!/bin/sh Vs #!/bin/bash For Maximum Portability

Answer : Solution 1: There are roughly four levels of portability for shell scripts (as far as … Read more #!/bin/sh Vs #!/bin/bash For Maximum Portability

C: Linux Command Executed By Popen() Function Not Showing Results

Answer : Since the output is going to stderr you need to redirect stderr like so: FILE* file… Read more C: Linux Command Executed By Popen() Function Not Showing Results