Tips & Tricks

Here's a list of command line tips that I've found useful over the years.

Linux Command Line

Web Development

Page status (http status code): curl -I website.com

IP of remote site: dig +short website.com

File Management

Here's one for placing a 'shortcut' from one file to another. Useful for keeping configuration files standard. I can put a config file in Dropbox/Nextcloud and refer to it on any machine I'm using.

Symbolic link: ln -s real_file shortcut_name

List files with details: ls -la

Find out where your disk space is going: du -a (directory) | sort -n -r | head -n 10

This estimates size, sorts the results, and returns the top 10