Skip to main content

Commands I Always Need to Google

·

If you’re like me, you’ve probably found yourself constantly Googling the same Linux commands over and over again. It can be frustrating to have to look up the same command every time you need it. That’s why I’ve put together a list of Linux commands that I always forget and need to Google. Whether you’re a beginner or an experienced user, this list is sure to come in handy next time you find yourself struggling to remember a particular command. So, without further ado, let’s dive in and take a look at some of the most commonly forgotten Linux commands!

Use a cookies file with yt-dlp
#

yt-dlp --cookies cookies.txt --user-agent "agent string" downloadurl

Run a quick python server:
#

python3 -m http.server

Find and sort files in a dirname based on their modification times
#

find dirname -type f -print0 | xargs -0 stat --format '%Y :%y %n' | sort -nr | cut -d: -f2- | head

Exchange SSH keys with a server
#

ssh-copy-id remote_user@host

Sort files or directories by size
#

# Files and directories
du -sh -- * | sort -rh

# Just directories
du -sh -- */ | sort -rh

# Just the top 10 of either
du -sh -- */ | sort -rh | head -n 10