Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

Create an alias for microk8s.kubectl as kubectl on Ubuntu

sudo snap alias microk8s.kubectl kubectl Sources: https://github.com/ubuntu/microk8s/issues/20

Posted in Linux | Tagged , , | Leave a comment

bc: A command-line calculator for Ubuntu

It’s simple, but effective for command line addicts If it’s not already installed, install it by using: sudo apt install bc then run bc and type any calculations you want. I wrote for example $ bc bc 1.07.1 Copyright 1991-1994, … Continue reading →

Posted in Linux | Tagged , , | Leave a comment

Set fractional display scaling on Ubuntu 18.10 (XORG)

I am using an LG 5K monitor, and the display scaling options are very limited in gnome-shell, only increments of 100%. To have fractional scaling, I tried this script: #!/bin/bash gsettings set org.gnome.desktop.interface scaling-factor 2gsettings set org.gnome.settings-daemon.plugins.xsettings overrides “{‘Gdk/WindowScalingFactor’: <2>}” … Continue reading →

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

Using gzip to compress a file without overriding it

gzip < source_file > compressed_file.gz Source: https://unix.stackexchange.com/questions/46786/how-to-tell-gzip-to-keep-original-file

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