LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 05: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, 12:15 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
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, 02: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, 06:22 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 07:37 PM   #5
Test User
LQ Newbie
 
Registered: Nov 2014
Posts: 3

Original Poster
Rep: Reputation: Disabled
thanks
 
  


Reply



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 11:42 AM
[SOLVED] sudo: nano: command not found on CentOS DextrousDave Linux - Server 4 07-07-2013 06:26 AM
[SOLVED] Centos 5 Error :- -bash: yum: command not found sachinsud Linux - Server 56 06-21-2012 07:41 PM
[SOLVED] lsof command not found (CentOS) JJJCR Linux - Newbie 2 10-07-2011 04:42 AM
rpm: command not found in CentOS GavB Linux - Distributions 8 03-25-2007 06:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:32 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
Open Source Consulting | Domain Registration