# Print working directory pwd # List files with details ls -lah # Change directory cd /etc/nginx # Create a directory mkdir -p /opt/myapp/logs # Find files by name find /var/log -name "*.log" -mtime -7
# Make a script executable chmod +x deploy.sh # Set owner and group chown -R www-data:www-data /var/www/html # View permissions ls -l /etc/passwd # Add user to group usermod -aG sudo username
# Check service status systemctl status nginx # Start, stop, restart systemctl start nginx systemctl restart nginx # Enable on boot systemctl enable nginx # View running processes ps aux | grep nginx