-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 vi: /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` /usr/bin/nvi bye T. - -- ** 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:[EMAIL PROTECTED] ** -----BEGIN PGP SIGNATURE----- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBQJgc1hETUsyL9vbiEQICLgCg9A7qRd0ozOZbYd6hiLkKPLLURnkAoKai N3iPvEiwgk89NmKq0XUX9GTs =0khi -----END PGP SIGNATURE-----

