Tail Multiple Files in One Terminal



Share this article :

You can also execute tail on multiple files in one terminal session. This can be achieved by executing below command.

 tail -f File_A -f File_B -f File_C

The result will be like below. Actually, it’s a bit confusing to read the file in this way. But, it saves time a lot instead of opening a new terminal session.

==> File_A <==
FILE CONTENT
FILE CONTENT
FILE CONTENT

==> File_B <==
FILE CONTENT
FILE CONTENT
FILE CONTENT

==> File_C <==
FILE CONTENT
FILE CONTENT
FILE CONTENT

Note

You can also try Multitail tool which is way better than above step!

Related posts

UNIX/Linux: How to Change VNC Server Password
Find Modified Files by Days in UNIX & Linux
Keep Command Execute Repeatly in UNIX & Linux
Play Audio (MP3, OGG, WAV) Files in UNIX & Linux via Command Line
© 2017 ITsiti. All Rights Reserved
Powered by KEEM