Enter following command with port number:
$ netstat -an|grep port_num
Here port_num= 22 (SSH)
= 161 (UDP)
$ netstat -an|grep port_num
Here port_num
= 161 (UDP)
| Common Desktop Environment (CDE) | /usr/dt/bin/Xsession (Set DISPLAY environment variable and run this command.) |
| GNOME Environment | /usr/bin/gnome-session |
| K Desktop Denvironment (KDE) | /usr/bin/startkde |
| XDM | /usr/lib/X11/xdm/Xsession (Unix) /etc/X11/xdm/Xsession (Linux) |