Often, when we are viewing output from various commands, it is a bit fuzzy. Fear no more; we have what is known as pipes and redirects. Basically, when working with pipes (|), we take the output of a command and pass it as the input of another command. Redirects (>, <, >>, 2>, and 2>&1) are similar to taking output from a command, but this time, we send it to a location, such as a file or another location, to name a few.
To begin, let's use the ls command. The code is as follows:
[root@localhost philip]# ls /etc
abrt default gdbinit.d kernel networks rc4.d subuid-
adjtime depmod.d gdm krb5.conf nfs.conf rc5.d sudoers
aliases dhcp geoclue krb5.conf.d nfsmount.conf rc6.d sudoers.d
alsa...