1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-11-21 20:35:12 +00:00
awesome-cheatsheets/tools/ubuntu.sh
2021-12-09 19:57:58 +01:00

24 lines
843 B
Bash

##############################################################################
# UBUNTU
##############################################################################
scp /path/to/file user@server:/path/to/destination # Copy file from local to server
df -h # Check the amount of free space
sudo ufw status # Check status
sudo ufw allow from remote_IP_address to any port 3306 # Allow external ip to access port
scp user@remote_host:remote_file local_file # download: remote -> local
scp local_file user@remote_host:remote_file # upload: local -> remote
sudo -s # Log as root
cat /proc/<process_id>/maps # Show the current virtual memory usage of a Linux process
ip r # Display ip of the server
lsof -i :9000 # List process running on port 9000
journalctl -u minio.service -n 100 --no-pager # List last 100 logs for specific service