Tech C**P
15 subscribers
161 photos
9 videos
59 files
304 links
مدرس و برنامه نویس پایتون و لینوکس @alirezastack
Download Telegram
How do you know if a remote web server is Linux based or Windows based? (Ignore this if there is pfsense/ha proxy in front)

ping the remote ip:

ping iranhost.com

The output is similar to:

PING iranhost.com (174.142.214.47): 56 data bytes
64 bytes from 174.142.214.47: icmp_seq=0 ttl=105 time=174.379 ms
64 bytes from 174.142.214.47: icmp_seq=1 ttl=105 time=180.315 ms
64 bytes from 174.142.214.47: icmp_seq=2 ttl=105 time=177.937 ms


Look at the ttl part of the output. If it's above 100, it is a windows based machine otherwise it is a Linux based machine.


#os #linux #windows #ping #ttl #iranhost
To get an expiration time of a redis key you can use TTL like below:

TTL "YOUR_KEY_NAME"


To read more about setting expiration time and or other options:
- https://redis.io/commands/expire

#redis #expiration_time #expire #ttl