IP Address in bash script Scritto il 2012-06-06 Edited on 2022-07-01 In Linux In linux you can get all of yours inferfaces IP with something like this: 1sudo ifconfig grep 'inet addr:' awk -F: '{ print $2}' awk '{ print $1 }' For example on my machine this command will output: