Solved

Setup PATH in Linux

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
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…
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.

828 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