The script command not only makes a record of what commands you run but also allows you to save the output generated so that you can examine it later or easily turn your command sequences into scripts ...
Could this be accepted as an environment variable? (with a default to eth0) Although it's unclear what the purpose of simply invoking ifconfig is, this will just output the interface information but ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results