LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 02-01-2019, 09:17 PM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 284

Rep: Reputation: 17
free -m command not found


Hi,

I am facing issue while executing the command free -m, it says command not found, not all the times, but some times.

Using oracle linux 6.x

please suggest.
 
Old 02-01-2019, 10:40 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by manoj.linux View Post
Hi,

I am facing issue while executing the command free -m, it says command not found, not all the times, but some times.

Using oracle linux 6.x

please suggest.
I would think that the PATH is not set correctly.

Confirm that the command free exists:
Code:
$ type free
free is /usr/bin/free
$ ls -l /usr/bin/free
-rwxr-xr-x 1 root root 18624 Mar  6  2015 /usr/bin/free
Next time the command is not found, check your path:
Code:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
It should contain the location of free. In the example, free resides at /usr/bin.

Solutions: Fix the PATH, or run /usr/bin/free.
 
1 members found this post helpful.
Old 02-02-2019, 01:43 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,035

Rep: Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344
Would be nice to explain the two situations when it was found and missing.
 
1 members found this post helpful.
Old 02-02-2019, 06:19 PM   #4
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162Reputation: 1162
Quote:
Using oracle linux 6.x
The free command is part of the procps package. Is the procps package installed?

Type free --help to see the supported options and free -V to see the package info.

Check possible $PATH issues as explained by berndbausch.
 
Old 02-03-2019, 11:12 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,750

Rep: Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983Reputation: 7983
Quote:
Originally Posted by manoj.linux View Post
Hi,
I am facing issue while executing the command free -m, it says command not found, not all the times, but some times. Using oracle linux 6.x please suggest.
We will suggest, as we have many times in the past TWELVE YEARS, that you provide details when asking a question, such as how you're running this command. Telling us it doesn't work "some times" gives us zero details.

As an administrator with that many years experience, and after having been told/asked so many times, you should be well aware of these things. Check some of your (numerous) other threads about such topics:
https://www.linuxquestions.org/quest...zation-640241/
https://www.linuxquestions.org/quest...-usage-920167/
https://www.linuxquestions.org/quest...zation-933553/
https://www.linuxquestions.org/quest...nd-4175487070/
https://www.linuxquestions.org/quest...on-4175552663/
https://www.linuxquestions.org/quest...on-4175578028/
 
  


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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
"Command not found" on my server? “bash: sudo: command not found”? MilesOfRoses Linux - Server 7 04-01-2016 09:19 AM
[SOLVED] complete noob question. "command not found" "command not found" jeanlucpicard Linux - Newbie 4 08-27-2013 02:14 AM
Directory not found; -xzvf not found; Makefile not found RealGomer Linux - Software 4 09-20-2010 10:02 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 03:11 AM.

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