Regular Command

Count folder's size

du -sch /path/to/folder/*type

Set Time & Date NTP

sudo timedatectl set-ntp yes

Scan WiFi

sudo iwlist wlan0 scan

Set default shell

sudo ln -fs /bin/bash /bin/sh

APT Search Package

sudo apt-cache search keyword

APT Error Fix

If it shows

Just clean the error link

And then

Start SSH

Change SSH Port

then

Regenerate SSH Key

Check crontab status

Set crontab

Edit cron

Remove cron

List cron

Start cron

Stop cron

Reload cron config

Restart cron

Check cron status

Set default path of terminal

If in MacOS, use

Zip

zip

  • -h Show the help interface

  • -m After the file is compressed, delete the original file

  • -o Set the latest change time of all files in the archive to the time of compression

  • -q Quiet mode, does not display the execution of instructions during compression

  • -r Treats all subdirectories under the specified directory together with the file

  • -P Set the compression password

Unzip

unzip

  • -l Show the files whitch contained in the compressed file

  • -t Check if the compressed file is correct

  • -P<password> Unzip files with password

Terminal

  • Ctrl + Alt + F2 = Terminal

  • Alt + F7 = Exit Terminal

Vim

Paste content: Shift + Ins Or Shift + right-mouse-click

Rclone

Show process every 1 second when upload files:

Remove rclone:

Rclone Config File

Google API Google Consolearrow-up-right

Check Nginx config file syntax

Screen

Kill specific screen

Or

Kill all screen

Last updated