Main Menu

friends

Latest articles

Iphone on Linux
11/10/2009 | mad mad mod

Many Linux users would like to use their iPhone on Linux (synchronize mp3's, podcasts, appz, pictures, movies, ...). Because Apple does not have iTunes for Linux (its only available for Microsoft Win [ ... ]


setting up a very simple firewall (Fedora)
03/08/2009 | mad mad mod

This article describes how to set up a very simple desktop-firewall on Linux (Fedora).  Step 1: make sure iptables is installed on your system:# rpm -qa | grep iptables
iptables-1.4.1.1-1.fc8&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