Tag Archives: Ubuntu

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

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

Create SSH profiles for your frequent connections on Ubuntu 18.04 using ssh_config

This is very useful if you connect to tons of servers via ssh and you need to keep record of them as profiles. Edit/Create a file .ssh/config Add entries in this manner: Host blabla User blablabla # or domain\blablabla if … Continue reading

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

Add a custom resolution to your display using xrandr on Ubuntu 18.04

Just in case your monitor’s supported resolution is not properly detected or if you want a custom resolution to be used: In this example, we will try to add 1368×768, with a refresh rate of 60 Run cvt to get … Continue reading

Posted in Linux | Tagged , , , , | 1 Comment

Force remove an entry from Ubuntu Online Accounts

I was trying to delete an entry in my online accounts (since I restored Ubuntu 18.04 files over 17.10), and it wasn’t getting deleted. The solution is to edit the following file: ~/.config/goa-1.0/accounts.conf Then simply remove the entry you wish … Continue reading

Posted in Linux | Tagged , , | Leave a comment