LinuxのIPv4アドレスのみを取得します。
ifconfig eth0 | awk '/inet /{print $2}'
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
LinuxのIPv4アドレスのみを取得します。
ifconfig eth0 | awk '/inet /{print $2}'
Register as a new user and use Qiita more conveniently
Go to list of users who liked