Changsheng
Postdoc in Mathematics from Guangzhou University
You May Also Enjoy
Yank to Clipboard in VIM/
less than 1 minute read
General yank: y
Fedora Gets Stuck after Nvidia Driver and CUDA Installed
less than 1 minute read
After installing Nvidia Driver and CUDA on a Nvidia Optimus laptop (following instructions on if-not-true-then-false), Fedora (34+) often gets stuck after several minutes poweron.
GIMP
less than 1 minute read
GIMP, notable software for image processing in linux
Useful Shell Commands
less than 1 minute read
Count number of fiels in a dir
ls | wc -l
, all regular files/folders just in this dirls -a | grep ^\\. | wc -l
, all hidden files/folders just in thid dirtree -L 1
, list tree just in this dir, and count number of files and folders respectivelyfind ./ -maxdepth 1 -type f,d | wc -l
, but will match current dir and hidden files/folders