Solved

Setup PATH in Linux

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

932 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

14 Experts available now in Live!

Get 1:1 Help Now