The CAT command in Linux is helpful in creating text files, displaying their contents, concatenating text from two or more text files into a new file. We can also append text from terminal to a file or append text to an existing file.
cat > newfile.txt
The xargs command transforms standard input into a sequence of arguments for another command xargs reads items from the standard input, delimited by blanks (which can be protected with double or single quotes or a backslash) or newlines, and executes the command (default is echo) one or more times w...
At certain times, it is necessary to duplicate a single file across various locations on our system. There is no need to use the cp command repeatedly.
echo [destination1] [destination2] [destination3]..... | xargs -n 1 cp [/location/samplefile]
The echo command is used to feed the xargs comman...
The ip command is used to display or configure networking and to assign an address to a network interface on Linux operating systems. It replaces the ifconfig command now deprecated.
ip a
or
ip addr
to specify one interface :
...
Suppose our network interface is eth0 :
sudo dhclient -v -r eth0
sudo ifdown eth0
sudo ifup eth0
sudo /etc/init.d/networking restart
or
sudo systemctl restart network.service