Monthly Archives: November 2018

How to resolve KDE Connect App losing connection with Linux after screen is locked on Huawei Phones

I tested on my P10 Plus, but this can work on other Huawei phones as well I believe. I have EMUI 8 with Android 8 and my OS is Ubuntu 18.10 with GSConnect Go to Ignore Battery Optimization -> Change … Continue reading

Posted in Android, Ubuntu | Tagged , , , , , | 1 Comment

Best way to exclude a folder from your search using the “find” command

I found it to be the fastest and most effective way to use the find command and exclude specific folders. That is using the “prune” option: find /FOLDER_TO_SEARCH_INSIDE -path /FOLDER_TO_EXCLUDE -prune -o -name ‘NAME_OR_PATTERN_TO_SEARCH_FOR’ -print That’s it, Enjoy! Source: https://stackoverflow.com/questions/4210042/how-to-exclude-a-directory-in-find-command

Posted in Linux | Tagged , , , | Leave a comment

How to beautify XML text on command line in Ubuntu

sudo apt install libxml2-utils echo ‘your xml stuff here’ | xmllint –format – You will get a beautiful well-organized XML output. Sources: https://jahansyed.co.uk/2016/04/22/how-to-install-xmllint-in-ubuntu/ https://stackoverflow.com/questions/16090869/how-to-pretty-print-xml-from-the-command-line

Posted in Linux | Tagged , , , , , | Leave a comment