Ask Your Question
1

$ printenv | grep ROS command not found

asked 2017-02-01 11:55:25 -0600

malgudi gravatar image

updated 2017-02-01 11:58:27 -0600

gvdhoorn gravatar image

I installed ROS kinetic on ubuntu 16.04.

for the command

$ printenv | grep

and i am getting response as "command not found".

What's the problem? Could you help me?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-02-01 11:58:02 -0600

gvdhoorn gravatar image

You could be missing either printenv or grep.

What is the output of which printenv and of which grep?

edit flag offensive delete link more

Comments

1

i have the same problem . output of which printenv is "/usr/bin/printenv" and which grep is "/bin/grep"

EGYRos gravatar imageEGYRos ( 2018-02-15 16:17:36 -0600 )edit

On Ubuntu, /bin/grep is provided by the grep package. /usr/bin/printenv by coreutils.

Do you have those pkgs installed? You can check with dpkg -l | grep 'coreutils\|grep'.

gvdhoorn gravatar imagegvdhoorn ( 2018-02-16 04:02:55 -0600 )edit

Note btw that you can also use env to print the currently defined environment variables.

gvdhoorn gravatar imagegvdhoorn ( 2018-02-16 04:03:16 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-02-01 11:55:25 -0600

Seen: 660 times

Last updated: Feb 01 '17