Created
October 5, 2018 17:22
-
-
Save ssunday/919f16f8fe2cd340e7eb00cff10e860e to your computer and use it in GitHub Desktop.
This file contains 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
- `csplit -s -f PREFIX FILE PATTERN {9999999}` - Split file by pattern | |
- `scp -i KEY ORIG DEST` - Move stuff between places | |
- `df -h` - How much disk space do I have? | |
- `df -i` - Inode usage | |
- `which EXECUTABLE` - Where is this executable coming from? | |
- `ps aux | grep THING` - Processes matching THING | |
- `top` - top processes | |
- `lsof -i tcp:PORT` - What process is locking that port? | |
View octal permissions: | |
# Mac OS X | |
stat -f '%A %N' * | |
# Linux | |
stat -c "%a %n" * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment