linux command SSH

1

Good afternoon,

I'm new to linux commands, I need to view more than one file, I can currently use it to view 1 file:

tail -f pasta/arquivo

I would like to be viewing 2 or more files, something like:

tail -f pasta/arquivo1 pasta/arquivo2 pasta/arquivo3

Is it possible to do something like this?

    
asked by anonymous 22.10.2015 / 17:52

1 answer

3

What about:

tail -f file1 & tail -f file2

Or:

tail -f file1 | sed 's/^/file1: /' &
tail -f file2 | sed 's/^/file2: /'
    
22.10.2015 / 17:55