How do i use the machine architecture type in bash script?



  • Man page for bash.

    The machine architecture is x86_64, i386, etc. There may be a case where you need to run something for specific architecture types.

    Without using linux commands to do this, Bash has a built-in variables called HOSTTYPE you can use.

    $ echo $HOSTTYPE
    x86_64
    

Log in to reply
 

© Lightnetics 2024