Skip to content

Instantly share code, notes, and snippets.

@ssunday
Created October 5, 2018 17:22
Show Gist options
  • Save ssunday/919f16f8fe2cd340e7eb00cff10e860e to your computer and use it in GitHub Desktop.
Save ssunday/919f16f8fe2cd340e7eb00cff10e860e to your computer and use it in GitHub Desktop.
- `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