owdir command not found

In this troubleshooting guide we learn how to fix owdir command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

owdir: command not found

or when using sudo you get the following error message

sudo: owdir: command not found

Solutions to owdir: command not found

How To Fix owdir: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu owdir is provided by ow-shell package.

ow-shell is:

The 1-Wire bus is a cheap low-speed bus for devices like weather sensors, access control, etc. It can be attached to your system via serial, USB, I2C, and other interfaces.

This package has several command line programs to talk to an owserver. Included programs are :

  • owdir: list 1-wire devices or properties
  • owread: read 1-wire value
  • owget: combines owdir and owread
  • owwrite: set a 1-wire value
  • owexist: check if a 1-wire server is reachable
  • owpresent: check if a 1-wire device is connected

To fix this problem, we can install more using the command below.

sudo apt-get -y install ow-shell

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ow-shell.

sudo apt -y install ow-shell

Or if you have aptitude installed you can use the following command.

sudo aptitude install ow-shell

Summary

In this tutorial we learn how to fix owdir command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.