Solved

Setup PATH in Linux

Posted on 2011-09-19
3
273 Views
Last Modified: 2012-05-12
Hi,
I am runnign
#grep MemTotal/proc/meminfo


and nothing is comming on the screen after I hit enter.
I think I am missing a Path. can some one tell me what directory and how to add to the path
in Red hat
#export PATH=$PATH:/usr/sbin

0
Comment
Question by:taaz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
jeremycrussell earned 500 total points
ID: 36560721
Your PATH is probably fine for grep, or you would get a "command not found" error..

Perhaps the issue is the space missing in your command..

grep MemTotal/proc/meminfo

should be

grep MemTotal /proc/meminfo

*note the space between MemTotal and /proc/meminfo
0
 

Author Comment

by:taaz
ID: 36560798
Yes it was the space issue between the Memtotal and /proc/meminfo.
I ran it
#grep MemTotal /proc/meminfo
and got the out put.

 Great quick help.
 
0
 

Author Closing Comment

by:taaz
ID: 36560809
Thanks, got it.
was a space issue   Memtotal and /proc/meminfo.
0

Featured Post

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question