I have a file that contains multiple commands, ls,echo,ps etc. I want to find with a terminal command which command occurs most (have the most appearances on the file) and then execute man to it. For example my file contain ls ls ps I must execute man ls. The form of the file is : multiple lines and in every line I have a command only.
file example:
ls
ls
ps
echo
man
cp
rm