March 3, 2021 in Troubleshooting2 minutes
When you run touch
command in linux terminal / console, you get the following error message
touch: command not found
To fix this problem, we can install touch using the command below.
sudo apt-get -y install coreutils
This command might take some time to finish depending on your machine internet connection.
You can also use apt
command to install coreutils.
sudo apt -y install coreutils
Or if you have aptitude installed you can use the following command.
sudo aptitude install coreutils
In Alpine Linux, we can install touch using the command below.
apk add coreutils
In Arch Linux, to fix this error message, we can install touch using the command below.
pacman -S coreutils
In CentOS or other RHEL based Linux distribution, we can install touch using the command below.
yum install coreutils
In Fedora we can use dnf
command to install touch using the command below.
dnf install coreutils
To fix this problem, we can install touch using the command below.
brew install coreutils