Last active
April 23, 2025 05:49
-
-
Save minons1/1741255e7d4fff14e2c6697dfeae7861 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list sort by time descending, return 5 | |
ls -t | head -n 5 | |
# list directory with size | |
du -hd -n 1 . | |
# Terminal history | |
history | |
# Check PID that being used by a port | |
lsof -i :<port> | |
# download binary file using curl that handles redirect(L), save with original name (O) | |
curl -LO "url" | |
# vi related | |
i # insert mode | |
:wq # exit | |
:x # exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment