linux SSH command

Asked

Viewed 127 times

1

Good afternoon,

I am new to linux commands, I need to view more than one file, currently I can use 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

It’s possible to do something like that?

  • The example you gave doesn’t work? tail -f arq1 arq2 arq_n. At least in linux works, already in lixux I do not know but should be similar.

1 answer

3


How about:

tail -f file1 & tail -f file2

Or:

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.