bash: type - Check the information about command type.



  • Take into account the main readme for this section. README first.

    Examples.

    $ type -t sys_check
    function
    $ type -t cat
    file
    $ type -t ls
    alias
    

    If the -t option is excluded.

    $ type cat
    cat is hashed (/usr/bin/cat)
    $ type ls
    ls is aliased to `ls --color=auto'
    $ type sys_check
    sys_check is a function
    sys_check ()
    {
        printf "\n\033[36m%s\\033[0m\n" "Basic system check";
        uptime;
        printf "\n\033[36m%s\\033[0m\n" "When was the last boot";
        who -b
    }
    

Log in to reply
 

© Lightnetics 2024