Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Gabotronix's avatar

Automating tasks with commands in ubuntu enviroment

Hi everybody, prior to deploying my web projects I usually do some tasks like creating log folder and files for nginx , this usually involves running following commands:

mkdir /var/log/domain.com nano /var/log/domain.com/access.log nano /var/log/domain.com/error.log

No w I was wondering if I can run this three commands with a single command like:

create logs domain.com 
0 likes
2 replies
Gabotronix's avatar

I'm also reading about laravel artisan commands, they look reay handy for mysql operations like creating/deleting a database, is this good practice? loging and exiting mysql from the command to do some ops gets a little boring

Please or to participate in this conversation.