Comments on: Understanding Shell Commands Easily Using “Explain Shell” Script in Linux https://www.tecmint.com/explain-shell-commands-in-the-linux-shell/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Thu, 13 Jul 2023 17:16:52 +0000 hourly 1 By: WeAreGeek https://www.tecmint.com/explain-shell-commands-in-the-linux-shell/comment-page-1/#comment-773055 Mon, 18 Apr 2016 13:18:05 +0000 http://www.tecmint.com/?p=14758#comment-773055 In reply to Anne.

How would that shell script be different than killall?

]]>
By: Anne https://www.tecmint.com/explain-shell-commands-in-the-linux-shell/comment-page-1/#comment-708454 Wed, 18 Nov 2015 15:49:23 +0000 http://www.tecmint.com/?p=14758#comment-708454 looking for a person who has an idea how to do this:

Create a bash-shell script called terminator that
terminates all processes of a name given to the shell
script as an argument.
(Guidance: pidof, ps –ef , awk)

if anyone has an idea please let me know :)

]]>
By: SDF https://www.tecmint.com/explain-shell-commands-in-the-linux-shell/comment-page-1/#comment-631769 Mon, 27 Jul 2015 02:32:16 +0000 http://www.tecmint.com/?p=14758#comment-631769 This is a rather lame utility that gives you very, very little that you can’t get with the ‘man’ command. As the old saying goes, this is a utility that fills a much-needed gap in the Linux world.

]]>
By: minicast https://www.tecmint.com/explain-shell-commands-in-the-linux-shell/comment-page-1/#comment-629161 Thu, 23 Jul 2015 13:23:31 +0000 http://www.tecmint.com/?p=14758#comment-629161 I had the same problem as @aligaligari
I am using Ubuntu and in my man page for curl the “–data-ur” option is not listed (only “–data-urlencode”)
However, I managed to run the explain command after changing the script as follows:

# explain.sh begins
explain () {
if [ “$#” -eq 0 ]; then
while read -p “Command: ” cmd; do
# curl -Gs “https://www.mankier.com/api/explain/?cols=”$(tput cols)–data $
curl -Gs “https://www.mankier.com/api/explain/?cols=70&q=”$cmd
done
echo “Bye!”
elif [ “$#” -eq 1 ]; then
# curl -Gs “https://www.mankier.com/api/explain/?cols=”$(tput cols) –data-ur $
curl -Gs “https://www.mankier.com/api/explain/?cols=70&q=”$1
else
echo “Usage”
echo “explain interactive mode.”
echo “explain ‘cmd -o | …’ one quoted command to explain it.”
fi
}

]]>
By: Avishek Kumar https://www.tecmint.com/explain-shell-commands-in-the-linux-shell/comment-page-1/#comment-629159 Thu, 23 Jul 2015 13:22:24 +0000 http://www.tecmint.com/?p=14758#comment-629159 In reply to paco.

Sorry for the inconvenience @ Paco
the code is fixed. Use the new updated code.

]]>