Skip to content

Instantly share code, notes, and snippets.

@salvatorecapolupo
Last active March 14, 2024 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salvatorecapolupo/63f36ca6bdf968eb618630088183bb91 to your computer and use it in GitHub Desktop.
Save salvatorecapolupo/63f36ca6bdf968eb618630088183bb91 to your computer and use it in GitHub Desktop.
Comandi utili SSH
Trovare file che occupano più spazio via SSH
find / -size +250M -ls
--
Liberare spazio su disco Linux via SSH
cd /
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!
ultimi 10 errori prima di un crash
--
tail -n 10 /var/log/apache2/error.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment