Network Interfaces

awk '{print $1}' /proc/net/dev|grep :|sed "s/:.*//g"
Linux only
Sample Output
lo
eth0

0
By: kro
2012-08-17 13:36:47

3 Alternatives + Submit Alt

What Others Think

CommandlineFU is a very good website with useful information. As u know technology has advanced a long way around but I can check top essay writing services and we now use softwares that was not present in the past. So, these new innovations should be welcomed.
MaryKlein · 14 weeks and 2 days ago
Our prior goal is to surpass all the expectations of our client by providing outstanding customer support service, greater value and increased flexibility which in results optimize system functionality and improve operation efficiency. hospital management system and Construction erp software and erp for manufacturing in india
delhis · 7 weeks and 1 day ago
We are best Professional SEO, Digital Marketing, Web Designing and Web Development Company in Bangalore. top seo agency in bangalore and best digital marketing company in bangalore and PPC services in bangalore and seo expert in bangalore
delhis · 4 weeks and 4 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. 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.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: