When I run this command,
sudo htpasswd -b /home/reynolds/.htpasswd admin admin
I am getting output Updating password for user admin in terminal but I dont want to display that output. So I searched some in google and try with the following commands.
sudo htpasswd -b /home/reynolds/.htpasswd admin admin 2>&1
sudo htpasswd -b /home/reynolds/.htpasswd admin admin > /dev/null
But still I am getting that output in terminal.Please help to avoid displaying such output while running this command. Please advice me as I am a very beginner in shell scripting.
Thanks.