source code #!/bin/bash## Purpose: Write the passed in parameter as hostid to /etc/hostid# If no parameter is passed, write current hostid to /etc/hostid# Author: Fazle Arefin if [[ -n "$1" ]]; then host_id=$1 # chars must be 0-9, a-f, A-F and exactly 8 chars egrep -o '^[a-fA-F0-9]{8}$' &2 exit 0 위 소스코드를 복사해서 파일에 복사 하자 # vi hostid.sh# chmod 755 hostid.sh# hostid02343f0c# ./hostid.sh 0011aabb0011..