Ubuntu: How to find a command not in man or info [duplicate]



Question:

This question already has an answer here:

I am trying to find alert but can't find it under man or info. I found a similar question involving type and it turned out it was under bash. How does one find a command like this without having to go through google? Also if anyone knows how to get alert that would certainly help as well.

type link: No man-page or info-page for type command


Solution:1

When in doubt, I turn to the help screen of the application that I am trying to find.

~$ alert --help  Usage:    notify-send [OPTION...] <SUMMARY> [BODY] - create a notification    Help Options:    -?, --help                        Show help options    Application Options:    -u, --urgency=LEVEL               Specifies the urgency level (low, normal, critical).    -t, --expire-time=TIME            Specifies the timeout in milliseconds at which to expire the notification.    -a, --app-name=APP_NAME           Specifies the app name for the icon    -i, --icon=ICON[,ICON...]         Specifies an icon filename or stock icon to display.    -c, --category=TYPE[,TYPE...]     Specifies the notification category.    -h, --hint=TYPE:NAME:VALUE        Specifies basic extra data to pass. Valid types are int, double, string and byte.    -v, --version                     Version of the package.  

As the help screen shows, alert is actually notify-send, and if you run type alert you will see that it is aliased to notify-send as it is actually not a package installed separately.

~$ type alert  alert is aliased to `notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e 's/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//')"'  

And if you type in alias by itself, it will show you all the aliases that are setup for you.

~$ alias  alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'  alias egrep='egrep --color=auto'  alias fgrep='fgrep --color=auto'  alias grep='grep --color=auto'  alias l='ls -CF'  alias la='ls -A'  alias ll='ls -alF'  alias ls='ls --color=auto'  

Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »