≡ Menu

lsof command

Linux: Find Out What Is Using TCP Port 80

How do I find out what is listing or using tcp port number 80 on Linux based systems using command line options?
[click to continue…]

Linux: Find All File Descriptors Used By a Process

How can I find all the file descriptors used by a process such as httpd (Apache web server) or mysqld (MySQL Database server)?
[click to continue…]

Linux: Check Network Connection Command

How do I check network connections under Linux using command line options?
[click to continue…]

Linux: Find Out Which Process Is Listening Upon a Port

How do I find out running processes were associated with each open port? How do I find out what process has open tcp port 111 or udp port 7000 under Linux?
[click to continue…]

Linux Syslogd: Nothing Gets Logged Using /dev/log And /jail/apache/dev/log

I‘ve configured my Apache in chrooted jail at /jail/apache directory. However, my syslogd is not working and nothing gets logged using /dev/log and /jail/apache/dev/log. How do I fix this problem under CentOS 5.x AMD64 with SELinux?
[click to continue…]

Linux: Find Out Apache User Name

How do I find out my apache username under Linux operating system or CentOS Linux server?
[click to continue…]

/bin/bash: bad interpreter: Text file busy Error and Solution

Q. I’m getting an error as follows while trying to run a shell script over remote ssh session:

./myscript.sh
/bin/bash: bad interpreter: Text file busy

How do I fix this error message and run the script?
[click to continue…]

FreeBSD Install lsof To Displays Information About Files Open to Unix processes

Q. How do I install the free, open-source, Unix administrative tool called lsof (for LiSt Open Files) under FreeBSD operating system to displays information about files open to Unix processes?
[click to continue…]

Linux / UNIX: List Open Files for Process

Q. How do I list all open files for a Linux or UNIX process using command line options?
[click to continue…]

Linux / UNIX Find Out What Program / Service is Listening on a Specific TCP Port

Q. How do I find out which service is listening on a specific port? How do I find out what program is listening on a specific TCP Port?
[click to continue…]