Various Command Line Interface tips and tricks
Some of the things at UbuntuUbuntu
Add a user to sudo group
usermod -aG sudo <username>
Count files recursively in a directory
find <directory> -type f | wc -l
Also suppress permission denied errors:
find <directory> -type f 2> /dev/null | wc -l
Reference Articles
Installing node / yarn on Ubuntu 18
https://linuxize.com/post/how-to-install-yarn-on-ubuntu-18-04/
For nodejs, sudo apt-get install nodejs gets you node8 (which is old)
So, need curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
whi... are Ubuntu Linux specific, some of them will work on other systems, including in the MacOS Terminal.
lsof
lsof -i :8080
Will list what’s running on port 8080.
Looking up the process ID (PID) means you can get more info, or kill [PID]
to shut it down.