I am not a system engineer or a network expert (I am more a software developer) and I have the following problem that I have to solve.
I am working on an Oracle Linux machine (basically it should be RedHat based).
I have to check on what network instances SSH is listen on this VM. I was using this link as reference: https://access.redhat.com/solutions/260463
It show how to use this command (this is the previous website example):
$ grep sshd netstat
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 12412 3522/sshd off (0.00/0/0)
The problem is that if I try to replicate the same command on my machine I obtain this error message:
[root@zabbix-db ~]# grep sshd netstat
grep: netstat: No such file or directory
Why? What is wrong? What am I missing? How can I correctlu perform this check? and what is the exact meaning of this error (it speacks about a file that doesn't exist but, from my understanding I am grepping on the netstat output and not on a file)