KEINOS' Blog

Official blog of KEINOS but mostly for my own reference. A Japanese made in Mexico with Mexican quality. Who monkey around the jungle of codes. ;-)


Project maintained by KEINOS Hosted on GitHub Pages — Theme by mattgraham

INDEX


Linux CheetSheet

This is a memorandum for KEINOS.

Check available disk drive

fdisk -h

Command Alias

alias ll='ls -l'

How to check users in a Linux system

cat /etc/passwd | sort

How to get the filesystem name of the root directory’s partition

df -l / | grep dev | awk '{ print $1 }'
$ df -l /
Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/vda3       99014644 2660412  91304892   3% /

$ df -l / | grep dev | awk '{ print $1 }'
/dev/vda3

systemd

How to check systemctl error log

journalctl | grep <service>

View all services’ status

systemctl list-unit-files --type=service

View service log

sudo journalctl -f -u <service>

# Example
journalctl -fu ipfs.service

Reasons to get “Active: inactive (dead)”

sudo systemctl status <service>

Ubuntu

Check graphics driver.

$ # Check graphics devices
$ ubuntu-drivers devices
...
$ # Install the driver (Depends on driver)
$ sudo apt install nvidia-driver-510 nvidia-dkms-510
...
$ # Check the driver
$ nvidia-smi
...

How to install Japanese language pack on Ubuntu/Debian