I've tried googleing a solution for this but nothing comes up. Basically the terminal in Ubuntu gives an error when I input a pipe command ( this -> | ). Anyone knows how to fix this?
why are you typing
I'm following a tutorial on setting up a lamp stack, and this command is in there.
<iface> means "put interface name here"
If you type "ifconfig" it'll print a list of your interfaces. Then, use one of their names to only display info on that interface.
You need to use an actual interface name instead of
To list all interfaces, use
ifconfig -a or
Oh..I see, makes sense. I'm such a noob XD I now used enp1s0 instead of and it worked fine. Thanks for your prompt help!
man ifconfig or
ifconfig -h same as
ifconfig --help Works on almost all commando's you use in the terminal.
man is short for manual and almost all mayor distribution have those installed, its not always there. The -h and --help always work if the software was programmed well enough.
<.Iface.> thats your problem, it's usually something like eth0-n or wlan0-n etc etc(unless you're using a new release of ubuntu they really borked it up).
try "cat /etc/network/interfaces"
It should give you a list of available interfaces.
What you are trying to do is list network configuartion, and parse out the lines with Mask in them, but since i syntactically wrong it tosses you a exception.
without bothering to try it ill bet you that ifconfig AHorseIsAHorseOfrouceOfCourse | grep Mask would give you no result, but no exception besides it didn't find the interface.
Learn the command first before copy pasting. There are lots of command line helpers you can install. I will give you links to some of them
You can use the 'man' command if you want a quick help on how the command works and its use cases.