Show last 100 lines of a file on Linux and Docker

For a specific file:

tail -100 ./logs/error.log
Code language: Bash (bash)

On Docker logs:

docker-compose logs --follow --tail=100 # or docker logs <container_name> --follow --tail=100
Code language: Bash (bash)

Posted

in

, ,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *