LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-07-2011, 02:53 AM   #1
JJJCR
Member
 
Registered: Apr 2010
Posts: 550

Rep: Reputation: 26
Wink lsof command not found (CentOS)


hi guys, when i type lsof -i on the terminal window it shows command not found.

but i already type yum install lsof and i saw it installing.

but why still shows command not found?

if i type which lsof i got this message:
which lsof
/usr/bin/which: no lsof in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/gUser/bin)

thanks.
 
Old 10-07-2011, 02:57 AM   #2
colucix
Moderator
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,498

Rep: Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956Reputation: 1956
The lsof command is available only to root. Anyway, if you want to run it as a normal user, you can specify its full path:
Code:
$ /usr/sbin/lsof /path/to/some/file
 
1 members found this post helpful.
Old 10-07-2011, 04:42 AM   #3
JJJCR
Member
 
Registered: Apr 2010
Posts: 550

Original Poster
Rep: Reputation: 26
Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need an lternative for lsof command hk_centos Linux - Newbie 10 07-03-2011 01:57 AM
using lsof command rheosiva Linux - Newbie 2 04-02-2009 01:36 AM
using lsof command rheosiva Linux - Security 1 04-01-2009 08:56 AM
rpm: command not found in CentOS GavB Linux - Distributions 8 03-25-2007 06:40 AM
lsof: command not found ionian2k Linux - Newbie 1 12-26-2002 08:59 PM


All times are GMT -5. The time now is 11:09 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration