[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Setup PATH in Linux

Posted on 2011-09-19
3
Medium Priority
?
285 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 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month18 days, 8 hours left to enroll

826 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