Copy a file from one UNIX/Linux machine to another using the sftp utility.

Copying a file with sftp from one UNIX machine to another is very easy. The command below uses the SSH protocol and initiates a connection to the remote PC. ubuntu ~ $ sftp -P 443 [email protected] ~ $ sftp -P 443 [email protected] Press ENTER and type your password. The user will be presented with a … Read more

How to get just the IP address of your Linux machine using curl.

To get just the IP address of your Internet facing Linux machine, use this command. jason@jason-desktop:~/Documents/ipinfo/src$ curl icanhazip.comjason@jason-desktop:~/Documents/ipinfo/src$ curl icanhazip.com This will return just your IP address. This is another way to get this information. jason@jason-desktop:~/Documents$ curl ipinfo.io/ipjason@jason-desktop:~/Documents$ curl ipinfo.io/ip To get information about a DNS server, use the dig command. jason@jason-desktop:~/Documents/ipinfo/src$ dig 8.8.8.8   … Read more