Source: www.commandlinefu.com

Store Host IP in variable
export IP="$(hostname -I | awk '{print $1}')"0 By: wuziduzi 2021-08-10 03:48:21 export You must be signed in to comment. commandlinefu.com is the place to record those command-line gems that you return to again and again.

For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

Subscribe to the feed for: commandlinefu.com © 2018 Dan's Tools | FAQs | API | Widget | Privacy

Related Articles