A collection of personal and technical notes.
Format all of the JavaScript files in the current directory.
$ prettier --write "**/*.js"
Check if prettierd is running.
ps aux | grep prettierd
List the process currently running and using the <port_number>.
lsof -i :<port_number>
Returns the IP address of the host machine.
hostname -I
Returns the computer name of the host machine.
hostname
Find <dir_name> directory in the . path.
find . -name <dir_name> -type d
Find a "filename" directory at <location> directory.
$ find <location> -type d -name "filename"