a linux sysadmin code collection

Linux System Architecture

based on my post few days ago i asked myself how to determine which architecture is running on my server.

In a Debian based system you can use the command


On a system running any other distribution like Fedora or SuSE one possible choice is to use the internal build-in command file.

mst@de-backup01:~# file /bin/bash
/bin/bash: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs),
for GNU/Linux 2.6.26, BuildID[sha1]=bc23cc26ae4d13cfd449ffb7c54224436976ca67, stripped

It print out a detailed information about the system architecture, which was used to build the terminal, in this case the bash.