we command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
we: command not found
or when using sudo you get the following error message
sudo: we: command not found
Solutions to we: command not found
How To Fix we: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu we is provided by xwpe package.
xwpe is:
Xwpe is an integrated programming and debugging environment similar to Borland’s Turbo C and Pascal family. It has many features including the ability to start many compilers, linkers and debuggers from a menu-based interface or using keystrokes.
Syntax highlighting is included for many programming languages, and any compiler and debugger can easily be used by the program. When compiling from within xwpe, errors in the source code can be jumped to and swiftly corrected. Variables and the stack can be easily displayed. Setting and unsetting breakpoints can be done directly within the source code.
Although it is designed to be a tool for programmers (when invoked as wpe or xwpe), it can also be used as an easy to learn text editor (when invoked as program ‘we’ or ‘xwe’).
To fix this problem, we can install more using the command below.
sudo apt-get -y install xwpe
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xwpe.
sudo apt -y install xwpe
Or if you have aptitude installed you can use the following command.
sudo aptitude install xwpe
Summary
In this tutorial we learn how to fix we command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.