Re: what process is using a port
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 3 May 2004, Steve Suehring wrote:
> On Mon, May 03, 2004 at 07:14:31PM +0200, LeVA wrote:
> > Hi!
> > Is there a way to figure out what program is using a port. For example I
> > want to know which process is using port 80. How can I do this?
> lsof -i
> > ps.: and another tiny question: Is it possible to see if a symlink is
> > pointing at a given file?
> ls -la symlink (?) Or am I misunderstanding your question?
Just a little thought: if one has symlinks stacked up like in the case of
/usr/bin/vi -> /etc/alternatives/vi -> /usr/bin/nvi
ls will give only another symlink as an answer. But chase (apt-get install
chase) will give the filename:
=> (1005 6): chase `which vi`
** A C programmer asked whether computer had Buddha's nature. **
** As the answer, master did "rm -rif" on the programmer's home **
** directory. And then the C programmer became enlightened... **
** Tomasz Rola mailto:firstname.lastname@example.org **
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
-----END PGP SIGNATURE-----