Common notes on unix utilities, linux distributions etc.

Tar

A tar file, often called a tarball, is a collection of files wrapped up in one single file for easy storage.

tar -xzf tarfile

I commonly forget the order of symlinking something.

# ln -s  
ln -s /mnt/external-drive ~/mydrive

Pop!_os

Fixing Scaling on hi-dpi screens.


# run xrandr to find the name of your display.
xrandr

# set your scale.
xrandr --output eDP-1 --scale 1.6x1.6

Read more.

Systemctl

What does it do?

The fundamental purpose of an init system is to initialize the components that must be started after the Linux kernel is booted (traditionally known as “userland” components). The init system is also used to manage services and daemons for the server at any point while the system is running. With that in mind, we will start with some simple service management operations.

Common Snippets

sudo systemctl start   # start the service
sudo systemctl status  # check status of service
sudo systemctl list-units   # list of all of the active units that