Last active
October 11, 2018 16:55
-
-
Save ftfarias/3447571e392abc4cb98451752eedd1f3 to your computer and use it in GitHub Desktop.
Linux useful commands
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
watch -n 2 'ip address' | |
# Du para diretórios | |
https://dev.yorhel.nl/ncdu | |
Freeing disk space on your Linux server | |
- Get to the root of your machine by running cd / | |
- Run sudo du -h --max-depth=1. | |
- Note which directories are using a lot of disk space. | |
- cd into one of the big directories. | |
- Run ls -l to see which files are using a lot of space. Delete any you don't need. | |
- Repeat steps 2 to 5. | |
alias ssu=ssh\ -i\ ~/test-instance.pem ubuntu@%1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment