Main Menu

friends

Banner

Latest articles

monitor I/O with iotop
11/03/2010 | mad mad mod

iotop is a nice tool to monitor I/O usage information output by the Linux kernel (requires 2.6.20 or later). To install iotop with yum as root (for RedHat / Fedora / Centos based systems only)&nb [ ... ]


Installing Windows XP on Linux with VirtualBox
10/10/2009 | mad mad mod

Here are the steps I did to install Windows XP on Linux using VirtualBox: If VirtualBox is not already installed on your system: have a look at this article Start VirtualBox# VirtualBox &nbs [ ... ]


Other Articles
Facebook MySpace Twitter Digg Delicious Stumbleupon Google Bookmarks 

Designed by:
SiteGround web hosting Joomla Templates
List all open files with lsof E-mail
sysadmin

"lsof" is a command which lists all open open files on a system. And because everything is a file in Unix (this includes pipes, network sockets, disk files and all other devices) it is a bit like a swiss army knife for a Linux sysadmin.

 

Some examples:

 

To list all Internet and x.25 (HP-UX) network files:

# lsof -i

 

To show all network files related to port 22

# lsof -i:22

 

combine lsof and grep to show all ports on which your system is LISTENING:

 

# lsof -i | grep LISTEN

 

Show all open files from a user (e.g. apache ):

# lsof -u apache

 

Or use -a to combine both:

# lsof -a -i -u apache

 

 

Comments (0)
Write comment
Your Contact Details:
Comment:
[b] [i] [u] [url] [quote] [code] [img]   
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.

!joomlacomment 4.0 Copyright (C) 2009 Compojoom.com . All rights reserved."

 
mad mad mod, Powered by Joomla! and designed by SiteGround web hosting