Solved

Setup PATH in Linux

Posted on 2011-09-19
3
256 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now