1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2025-01-28 09:38:24 +00:00

22 lines
754 B
Bash
Raw Normal View History

2020-06-21 18:37:36 +02:00
##############################################################################
# UBUNTU
##############################################################################
scp /path/to/file user@server:/path/to/destination # Copy file from local to server
2020-06-21 18:38:14 +02:00
df -h # Check the amount of free space
2020-07-01 11:31:00 +02:00
sudo ufw status # Check status
sudo ufw allow from remote_IP_address to any port 3306 # Allow external ip to access port
2020-09-11 10:45:29 +02:00
scp user@remote_host:remote_file local_file # download: remote -> local
scp local_file user@remote_host:remote_file # upload: local -> remote
2020-09-26 16:06:01 +02:00
sudo -s # Log as root
cat /proc/<process_id>/maps # Show the current virtual memory usage of a Linux process
2020-12-07 17:22:08 +01:00
ip r # Display ip of the server
2021-09-07 11:43:55 +02:00
lsof -i :9000 # List process running on port 9000