LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 10:17 PM   #1
manoj.linux
Member
 
Registered: Aug 2007
Posts: 278

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, 11:40 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora, Alpine, Cirros, OpenSuse/SLES
Posts: 2,615

Rep: Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657Reputation: 657
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, 02:43 AM   #3
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,025

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Would be nice to explain the two situations when it was found and missing.
 
1 members found this post helpful.
Old 02-02-2019, 07:19 PM   #4
upnort
Member
 
Registered: Oct 2014
Distribution: Slackware, Proxmox, Debian, CentOS, Ubuntu MATE
Posts: 813

Rep: Reputation: Disabled
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, 12:12 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,057

Rep: Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275Reputation: 5275
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


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] 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 10 05-03-2016 12:33 PM
"Command not found" on my server? “bash: sudo: command not found”? MilesOfRoses Linux - Server 7 04-01-2016 10:19 AM
[SOLVED] complete noob question. "command not found" "command not found" jeanlucpicard Linux - Newbie 4 08-27-2013 03:14 AM
Directory not found; -xzvf not found; Makefile not found RealGomer Linux - Software 4 09-20-2010 11:02 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-28-2006 12:57 AM

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

All times are GMT -5. The time now is 02: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration