Pandy's Blog

Pandy Song

Useful command in Mac and Linux

Introduction

ntfy

send notification:

ntfy -t "DeFi" send "1000 BTC received"

How to install:

python3 -m pip install ntfy

ncdu

scan the disk and sort out.

How to install:

brew install ncdu

sudo !!

!

This will get the command to the shell and then you could just press enter to run that command.

reset

reset the screen if something goes wrong.

ctrl + u

type something and then ctrl+u to delete all on the command line

ctrl + a to start of command line

ctrl + e to start of command line

mount | column -t

rtorrent: the command line downloader

ripgrep

https://github.com/BurntSushi/ripgrep