Simple web server - rmeans that the file is opened for read-onlyaccess.
rmeans that the file is opened for read-onlyaccess. wmeans that the file is opened for write-onlyaccess. umeans that the file is opened for read and writeaccess. You may see other letters following the file descrip- tor number see the man lsofpage for full details. If you don t see a number in the FD column, lsofisshowing you the usage type for that file: cwd: This file (actually a directory) is the currentworking directory for the process. rtd: This directory is the root directory for theprocess. (It s almost always /, except when theprocess is running in a chroot jail.) mem: This is a memory-mapped file (usually ashared object library). txt: This is the full pathname of the program. Again, you may see other usage types, and man lsofwill give you a complete list. Reading file typesThe file type column (fifth from the left, labeledTYPE) tells you what kind of file you re looking at. Linux is known for treating just about anything as if it were a file, so you ll see a variety of file types. A typical lsofreport shows the following file types: REG: A plain old disk file DIR: A directory FIFO: A named pipe (a connection between twoor more processes) CHR: A character-type device (such as a serialport or terminal) BLK: A block-type device (such as a raw diskdrive or CD) unix: A UNIX-domain socket (an interprocesscommunication link) IPv4: An IPv4 network connection IPv6: An IPv6 network connectionDiscovering Network ConnectionsWhen you re viewing network information with lsof, the last two file types in the preceding list IPv4and IPv6 are the ones that you re interested in. IPv4 and IPv6 files are active network connections ornetwork service providers (v4and v6refer to thenetwork address type). When lsoffinds a network connection, rather thanshow you a filename, it displays the IP address of thenetwork interface on your computer, the local portnumber, the IP address of the remote side of the con- nection, and the connection state. Here s an example: bastille:38517->louvre (ESTABLISHED) bastilleis the name of the local network interface, 38517is the TCP port assigned to this session, louvreis the name of the computer at the other endof the connection, and (ESTABLISHED)tells you thatthe network link is up and running. The local interface name is useful when youhave more than one network card in yourcomputer. Connections listed as (ESTABLISHED)show youactive network connections (such as an sshsessionor a Web browser connection). If you see a connec- tion listed as (LISTEN), you re looking at a networkserver. For example, if you see*.ssh (LISTEN)
Go visit our java server pages services for a reliable, lowcost webhost to satisfy all your needs.