get all the data about your IP configuration across all network cards

ipconfig /all

-44
2009-03-06 17:36:07

These Might Interest You

  • Produces a CSV file containing fronts/backs of cards with specified tag ("mytag" above). This command pulls these cards from different card databases, and allows them to be merged into one (by importing the resulting CSV file). The CSV file is not directly produced; instead of commas, "||" are inserted. In your editor of choice, modify the resulting file to put quotes around the text before || and after ||, then change || to a comma (for every line).


    0
    for i in `ls *.anki`; do sqlite3 $i "select (cards.question || '||' || cards.answer) from cards, facts where cards.factid=facts.id and facts.tags like '%mytag%';" >> mytag.csv; done
    joshuaeckroth · 2012-03-13 19:03:20 0
  • A grep against ethtool to look for common errors and packet loss statistics which network drivers report in their private data, which is queried with ethool -S. This is the current grep used in xsos (https://github.com/ryran/xsos), which I originally contributed and has been improved by the community over time. Show Sample Output


    0
    ethtool -S eth0 | egrep "(drop|disc|err|fifo|buf|fail|miss|OOB|fcs|full|frags|hdr|tso).*: [^0]"
    suprjami · 2014-07-15 05:27:34 0
  • Get the IP address of all your network cards. Show Sample Output


    -6
    ifconfig | grep "inet [[:alpha:]]\+" | cut -d: -f2 | cut -d' ' -f2
    feraf · 2009-07-24 13:16:37 0
  • Note, the [remotePort] should be opened in the firewall first. First, start the destination box listening, then fire off the sending box. Data from the /dev/zero device in memory of the source machine is read out using dd, sent over the network with nc, and read back in from the other side of the network with nc, going to the /dev/null device. Essentially, it is a memory-network-memory copy operation, the output of dd will tell you how fast your network really is performing.


    0
    dd if=/dev/zero bs=256M count=1 | nc [remoteIP] [remotePort] and on the other host nc -l port >/dev/null
    tkunz · 2009-07-14 20:30:52 1

What Others Think

ipconfig is a ms-dos command nor a linux one :( Also, there isn't a /all parameter in ifconfig
jasvazquez · 484 weeks and 3 days ago
Yep. ifconfig is all you need !
CodSpirit · 484 weeks and 3 days ago
I don't see anywhere in the site that says the commands here are Linux-only. Do you?
atoponce · 484 weeks and 2 days ago
windows commandline fu?
prayer · 484 weeks and 2 days ago
This is for the Windows world, please try commands on Unix/Linux . If you look at the titlebar: Command-line Fu < The best UNIX commands on the web. If you need to apply that for Linux: ifconfig -a
luqmanux · 484 weeks and 1 day ago
Funny. No version of *UNIX* I tested this on worked. I can only re-iterate that this is some gimpy windows command, and is not appropriate here.
ozymandias · 484 weeks ago
I suggest a firm but friendly installation of a nice linuxdist instead. So that one should not come up with "toy commands" on this fine web page.
cde1985 · 481 weeks and 6 days ago
what rubbish
sirlewk · 475 weeks and 1 day ago
I don't see why people are having problems with this command, there is nothing wrong with it. This site is not JUST for *nix commands, this command is useful for those less enlightened folks. From the FAQ: Yes, most certainly. While there is undoubtedly a *nix bias to most commands on the site, that's simply a reflection of the greater prominence of the command-line in such operating systems. Don't worry though: all shell types and operating systems are welcome here - the sole criterion is that the command is 140 characters or less.
Chartreuse · 423 weeks and 1 day ago
What? Linux now has the CMD.EXE thing, too? Why do they have to copy everything?
hasinasi · 345 weeks and 5 days ago
lol
hasinasi · 345 weeks and 5 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: