2020-06-21 16:37:36 +00:00
|
|
|
##############################################################################
|
|
|
|
# UBUNTU
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
scp /path/to/file user@server:/path/to/destination # Copy file from local to server
|
2020-06-21 16:38:14 +00:00
|
|
|
|
|
|
|
df -h # Check the amount of free space
|
2020-07-01 09:31:00 +00: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 08:45:29 +00: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 14:06:01 +00:00
|
|
|
|
|
|
|
sudo -s # Log as root
|
2020-09-26 17:44:08 +00:00
|
|
|
|
2020-09-21 09:59:02 +00:00
|
|
|
cat /proc/<process_id>/maps # Show the current virtual memory usage of a Linux process
|
2020-12-07 16:22:08 +00:00
|
|
|
|
|
|
|
ip r # Display ip of the server
|
2021-09-07 09:43:55 +00:00
|
|
|
|
|
|
|
lsof -i :9000 # List process running on port 9000
|
2021-12-09 18:57:58 +00:00
|
|
|
|
|
|
|
journalctl -u minio.service -n 100 --no-pager # List last 100 logs for specific service
|
2022-02-23 15:08:50 +00:00
|
|
|
|
|
|
|
sudo resize2fs /dev/disk/by-id/scsi-0DO_example # Resize volume
|
2022-03-06 19:00:38 +00:00
|
|
|
|
2022-03-06 19:00:44 +00:00
|
|
|
ps -ax | grep myprocessname # Search processes
|
2022-03-06 19:00:38 +00:00
|
|
|
kill -9 PROCESS_ID # Kill process PID
|