mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-11-21 20:35:12 +00:00
docs(ubuntu): display ip of the server
This commit is contained in:
parent
3201fb52f5
commit
731020d2e4
@ -8,6 +8,7 @@ df -h # Check the amount of free space
|
|||||||
|
|
||||||
sudo ufw status # Check status
|
sudo ufw status # Check status
|
||||||
sudo ufw allow from remote_IP_address to any port 3306 # Allow external ip to access port
|
sudo ufw allow from remote_IP_address to any port 3306 # Allow external ip to access port
|
||||||
|
sudo ufw allow from 68.183.116.178 to any port 3306 # Allow external ip to access port
|
||||||
|
|
||||||
scp user@remote_host:remote_file local_file # download: remote -> local
|
scp user@remote_host:remote_file local_file # download: remote -> local
|
||||||
scp local_file user@remote_host:remote_file # upload: local -> remote
|
scp local_file user@remote_host:remote_file # upload: local -> remote
|
||||||
@ -15,3 +16,5 @@ scp local_file user@remote_host:remote_file # upload: local -> remote
|
|||||||
sudo -s # Log as root
|
sudo -s # Log as root
|
||||||
|
|
||||||
cat /proc/<process_id>/maps # Show the current virtual memory usage of a Linux process
|
cat /proc/<process_id>/maps # Show the current virtual memory usage of a Linux process
|
||||||
|
|
||||||
|
ip r # Display ip of the server
|
||||||
|
Loading…
Reference in New Issue
Block a user