Category Archives: Linux

How to scan for devices in your network in Ubuntu

sudo apt install arp-scan sudo arp-scan -l –interface=wlp2s0 Replace wlp2s0 with your NIC’s name, works for both wireless and wired Source: https://askubuntu.com/questions/82480/how-to-see-all-computers-connected-to-a-network

Posted in Linux | Tagged , , | Leave a comment

Validate xml files with xmlstarlet on Ubuntu

sudo apt install xmlstarletxmlstarlet val XML_FILE.xml

Posted in Linux | Tagged , , | Leave a 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

Cleanup Docker Trash

Over time, docker images and residual unneeded files pile up and take a lot of space. We need to cleanup the following: stopped containers networks not used by at least one container dangling images build cache To do that, just … Continue reading

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

Flush the DNS cache on Ubuntu 18.04

sudo systemd-resolve –flush-caches Source: https://askubuntu.com/questions/906476/how-can-i-flush-the-dns-on-ubuntu-17-04

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

How to check packages support status for Ubuntu 18.04

To know which packages are supported and which are not, for how long and whether the community or canonical are the ones who support it, just run: ubuntu-support-status It will give you this sample output: Support status summary of ‘$HOSTNAME’: … Continue reading

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