Tutorial by Examples

ps -e | less ps -e shows all the processes, its output is connected to the input of more via |, less paginates the results.
|& connects standard output and standard error of the first command to the second one while | only connects standard output of the first command to the second command. In this example, the page is downloaded via curl. with -v option curl writes some info on stderr including , the downloaded pag...
~$ ping -c 1 google.com # unmodified output PING google.com (16.58.209.174) 56(84) bytes of data. 64 bytes from wk-in-f100.1e100.net (16.58.209.174): icmp_seq=1 ttl=53 time=47.4 ms ~$ ping google.com | grep -o '^[0-9]\+[^()]\+' # modified output 64 bytes from wk-in-f100.1e100.net 64 bytes from...

Page 1 of 1