LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 11-08-2014, 06:02 PM   #1
Test User
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Rep: Reputation: Disabled
Question lslogins command not found in CentOS 6.5


i am new user for Linux and when i try to run lslogins in CentOS 6.5 it display that command not found

i try to install util-linux package and command doesnt work

what is solution to run this command?
 
Old 11-09-2014, 01:15 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
If the path to the executable is not in your PATH environment variable, you can only run the command if you:
a) enter the full path to the executable in order to run it.
b) cd to the location of the executable, then run it from there.

To find the location of executable, in a console, run: locate lslogins
 
Old 11-09-2014, 03:25 PM   #3
Test User
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
when i run the command locate lslogins it doesn't return any thing (is this mean that this command doesn't exist?)

what can i to do?
 
Old 11-09-2014, 07:22 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
On my box, this command is provided by the util-linux-ng package. You should try running:

Code:
yum install util-linux-ng
Note that you will have to su or sudo to the root account for this command to run successfully. If it does not work, please post the error message.
 
Old 11-24-2014, 08:37 PM   #5
Test User
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
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
setup-ds-admin.pl command not found on centos 7 fragui Linux - Software 1 09-25-2014 12:42 PM
[SOLVED] sudo: nano: command not found on CentOS DextrousDave Linux - Server 4 07-07-2013 07:26 AM
[SOLVED] Centos 5 Error :- -bash: yum: command not found sachinsud Linux - Server 56 06-21-2012 08:41 PM
[SOLVED] lsof command not found (CentOS) JJJCR Linux - Newbie 2 10-07-2011 05:42 AM
rpm: command not found in CentOS GavB Linux - Distributions 8 03-25-2007 07:40 AM


All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration