Herramienta Profesional
    100% Gratuita

    Terminal para SEO

    Guía técnica - 80+ comandos avanzados

    Sin SSH
    100% Remoto
    SEO Técnico
    80+
    Comandos
    10
    Categorías
    100%
    Gratuito
    Autor:

    Jorge Rolo

    Web:

    jorgejrolo.com

    ¿Qué encontrarás en esta guía?

    80+ comandos técnicos avanzados para análisis SEO profesional. Sin SSH, sin permisos especiales, 100% remoto. Optimiza tu workflow con comandos que uso diariamente en auditorías de sitios enterprise.

    ANTES DE EMPEZAR

    COMPATIBILIDAD

    macOS:

    grep nativo NO soporta -P. Usa versiones Mac o instala: brew install grep

    Windows:

    Instala Git Bash (incluido en Git for Windows)

    Linux:

    Todos los comandos funcionan nativamente ✅

    Códigos de Estado y Redirecciones

    Detecta problemas de indexación, redirecciones mal configuradas y errores del servidor.

    Verificar código HTTP básico

    bash
    curl -I -s https://ejemplo.com | grep HTTP

    Comprueba: 200 (OK), 301 (redirect), 404 (no encontrado), 500 (error servidor)

    Código de estado solo número

    bash
    curl -o /dev/null -s -w "%{http_code}\n" https://ejemplo.com

    Devuelve solo: 200, 404, 500. Perfecto para scripts

    Seguir redirecciones y ver URL final

    bash
    curl -sL -w "%{url_effective}\n" -o /dev/null https://ejemplo.com

    Detecta www→no-www, http→https, etc.

    Ver TODAS las redirecciones paso a paso

    bash
    curl -sL -I https://ejemplo.com | grep "HTTP\|Location"

    CRÍTICO: Detecta cadenas 301→301→200 que penalizan SEO

    Verificar si una URL redirige

    bash
    curl -I -s https://ejemplo.com | grep -i "location:"

    Si devuelve algo = hay redirect. Vacío = no redirige

    Auditar múltiples URLs desde archivo

    bash
    while read url; do echo "$url: $(curl -o /dev/null -s -w "%{http_code}" $url)"; done < urls.txt

    Crea urls.txt con 1 URL por línea. Audita cientos en minutos

    Comparar staging vs producción

    bash
    echo "Staging: $(curl -o /dev/null -s -w "%{http_code}" https://staging.ejemplo.com)"; echo "Prod: $(curl -o /dev/null -s -w "%{http_code}" https://ejemplo.com)"

    Validación pre-deploy. Asegura que ambos responden igual

    Detectar soft 404s

    bash
    curl -s https://ejemplo.com/no-existe | grep -i "not found\|404\|error"

    Páginas que devuelven 200 pero muestran error. Común en SPAs

    Headers HTTP y SEO Técnico

    Headers críticos: cache, compresión, seguridad, indexación.

    Ver TODOS los headers HTTP

    bash
    curl -I -L https://ejemplo.com

    -L sigue redirects. Analiza: cache-control, content-encoding, server, x-robots-tag

    Verificar compresión Gzip/Brotli

    bash
    curl -I -H "Accept-Encoding: gzip,br" https://ejemplo.com | grep -i "content-encoding"

    Debe mostrar 'gzip' o 'br'. Si vacío = NO comprime (penaliza CWV)

    Verificar cache del servidor

    bash
    curl -I https://ejemplo.com | grep -i "cache-control"

    max-age=31536000 (1 año ideal). no-cache (dinámicas)

    Detectar X-Robots-Tag

    bash
    curl -I https://ejemplo.com | grep -i "x-robots-tag"

    CRÍTICO: Bloqueo vía HTTP header. Prevalece sobre meta robots

    Ver tipo de servidor

    bash
    curl -I https://ejemplo.com | grep -i "server:"

    nginx, Apache, cloudflare. Análisis de competencia

    Comprobar HSTS

    bash
    curl -I https://ejemplo.com | grep -i "strict-transport-security"

    Fuerza HTTPS. max-age: 31536000. Google lo premia

    Verificar Content-Type

    bash
    curl -I https://ejemplo.com | grep -i "content-type"

    text/html, application/json. Valida tipo correcto

    Ver ETag

    bash
    curl -I https://ejemplo.com | grep -i "etag"

    Identificador único versión. Optimiza caché

    Verificar Last-Modified

    bash
    curl -I https://ejemplo.com | grep -i "last-modified"

    Freshness signals de Google

    Detectar CDN

    bash
    curl -I https://ejemplo.com | grep -iE "cf-|x-cache|x-amz"

    cf- = Cloudflare, x-cache = Varnish, x-amz = AWS CloudFront

    Performance y Core Web Vitals

    Métricas de velocidad críticas para rankings.

    Medir TTFB (Time to First Byte)

    bash
    curl -o /dev/null -s -w "TTFB: %{time_starttransfer}s\n" https://ejemplo.com

    Core Web Vital. <0.2s excelente, 0.2-0.6s bueno, >0.6s malo

    Tiempo total de carga

    bash
    curl -o /dev/null -s -w "Total: %{time_total}s\n" https://ejemplo.com

    <1s excelente, >3s problema

    Análisis completo de tiempos

    bash
    curl -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nSSL: %{time_appconnect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\n" -o /dev/null -s https://ejemplo.com

    Breakdown detallado. Identifica cuellos de botella

    Tamaño de descarga

    bash
    curl -o /dev/null -s -w "Tamaño: %{size_download} bytes\n" https://ejemplo.com

    <100KB ideal, >500KB problemático

    Velocidad de descarga

    bash
    curl -o /dev/null -s -w "Velocidad: %{speed_download} bytes/s\n" https://ejemplo.com

    Velocidad transferencia del servidor

    Tiempo de DNS lookup

    bash
    curl -o /dev/null -s -w "DNS: %{time_namelookup}s\n" https://ejemplo.com

    <0.02s excelente. >0.1s investigar DNS

    Tiempo de conexión TCP

    bash
    curl -o /dev/null -s -w "TCP: %{time_connect}s\n" https://ejemplo.com

    Latencia de red. Geolocalización servidor

    Tiempo handshake SSL/TLS

    bash
    curl -o /dev/null -s -w "SSL: %{time_appconnect}s\n" https://ejemplo.com

    <0.1s normal, >0.3s revisar certificado

    Sitemaps XML

    Análisis completo de sitemaps XML y validaciones.

    Contar URLs en sitemap

    bash
    curl -s https://ejemplo.com/sitemap.xml | grep -c "<loc>"

    Límite 50,000 URLs por sitemap

    Extraer todas las URLs

    Linux/Windows:

    bash
    curl -s https://ejemplo.com/sitemap.xml | grep -oP "(?<=<loc>).*?(?=</loc>)" > urls.txt

    macOS:

    bash
    curl -s https://ejemplo.com/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<\/*loc>//g' > urls.txt

    Exporta URLs a archivo de texto

    Buscar URLs duplicadas

    Linux/Windows:

    bash
    curl -s https://ejemplo.com/sitemap.xml | grep -oP "(?<=<loc>).*?(?=</loc>)" | sort | uniq -d

    macOS:

    bash
    curl -s https://ejemplo.com/sitemap.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<\/*loc>//g' | sort | uniq -d

    Error común en sitemaps dinámicos

    Procesar sitemap index

    Linux/Windows:

    bash
    curl -s https://ejemplo.com/sitemap_index.xml | grep -oP "(?<=<loc>).*?(?=</loc>)" | while read sitemap; do curl -s "$sitemap" | grep -oP "(?<=<loc>).*?(?=</loc>)"; done > all_urls.txt

    macOS:

    bash
    curl -s https://ejemplo.com/sitemap_index.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<\/*loc>//g' | while read sitemap; do curl -s "$sitemap" | grep -o '<loc>[^<]*</loc>' | sed 's/<\/*loc>//g'; done > all_urls.txt

    Extrae URLs de TODOS los sitemaps

    Contar URLs por sitemap

    bash
    curl -s https://ejemplo.com/sitemap_index.xml | grep -o '<loc>[^<]*</loc>' | sed 's/<\/*loc>//g' | while read sitemap; do count=$(curl -s "$sitemap" | grep -c '<loc>'); echo "$sitemap: $count URLs"; done

    Distribución de URLs por sitemap

    Meta Tags y SEO On-Page

    Extracción y validación de metadatos SEO.

    Extraer Title

    Linux/Windows:

    bash
    curl -s https://ejemplo.com | grep -oP "(?<=<title>).*?(?=</title>)"

    macOS:

    bash
    curl -s https://ejemplo.com | grep -o '<title>[^<]*</title>' | sed 's/<\/*title>//g'

    Ideal 50-60 caracteres

    Extraer Meta Description

    Linux/Windows:

    bash
    curl -s https://ejemplo.com | grep -oP '(?<=name="description" content=").*?(?=")'

    macOS:

    bash
    curl -s https://ejemplo.com | grep 'name="description"' | sed -n 's/.*content="\([^"]*\).*/\1/p'

    Ideal 150-160 caracteres

    Verificar Canonical

    Linux/Windows:

    bash
    curl -s https://ejemplo.com | grep -oP '(?<=rel="canonical" href=").*?(?=")'

    macOS:

    bash
    curl -s https://ejemplo.com | grep 'rel="canonical"' | sed -n 's/.*href="\([^"]*\).*/\1/p'

    Debe apuntar a URL correcta

    Buscar Meta Robots

    bash
    curl -s https://ejemplo.com | grep -i 'meta name="robots"'

    noindex, nofollow, noarchive

    Extraer todos los Hreflang

    bash
    curl -s https://ejemplo.com | grep -i "hreflang"

    SEO internacional

    Verificar Open Graph

    bash
    curl -s https://ejemplo.com | grep -i "og:"

    Facebook, LinkedIn optimización

    Verificar Viewport

    bash
    curl -s https://ejemplo.com | grep -i 'name="viewport"'

    Mobile-friendly. Debe existir

    Contar H2, H3, H4

    bash
    echo "H2: $(curl -s https://ejemplo.com | grep -c '<h2')"; echo "H3: $(curl -s https://ejemplo.com | grep -c '<h3')"; echo "H4: $(curl -s https://ejemplo.com | grep -c '<h4')"

    Estructura jerárquica headings

    Robots.txt y Crawling

    Análisis de directivas de rastreo.

    Ver robots.txt completo

    bash
    curl -s https://ejemplo.com/robots.txt

    Revisar todas las directivas

    Buscar Disallow

    bash
    curl -s https://ejemplo.com/robots.txt | grep -i "disallow"

    URLs bloqueadas al rastreo

    Buscar User-agent específico

    bash
    curl -s https://ejemplo.com/robots.txt | grep -A 5 "User-agent: Googlebot"

    Reglas específicas para Googlebot

    Verificar sitemap en robots.txt

    bash
    curl -s https://ejemplo.com/robots.txt | grep -i "sitemap"

    robots.txt debe declarar sitemap

    Análisis de Contenido

    Análisis de estructura y enlaces.

    Contar palabras en página

    bash
    curl -s https://ejemplo.com | sed 's/<[^>]*>//g' | wc -w

    Longitud contenido aproximada

    Contar enlaces totales

    bash
    curl -s https://ejemplo.com | grep -o 'href=' | wc -l

    Total de enlaces en página

    Contar imágenes

    bash
    curl -s https://ejemplo.com | grep -c '<img'

    Cantidad de imágenes

    Verificar atributos alt

    bash
    curl -s https://ejemplo.com | grep '<img' | grep -v 'alt='

    Imágenes SIN alt (problema accesibilidad)

    Structured Data y Schema

    Validación de datos estructurados.

    Buscar JSON-LD

    bash
    curl -s https://ejemplo.com | grep -i 'application/ld+json'

    Detecta presencia de Schema

    Extraer JSON-LD completo

    bash
    curl -s https://ejemplo.com | sed -n '/<script type="application\/ld+json">/,/<\/script>/p'

    Extrae todo el structured data

    Buscar schema Product

    bash
    curl -s https://ejemplo.com | grep -i '"@type".*"Product"'

    Validar schema de producto

    Verificar breadcrumbs schema

    bash
    curl -s https://ejemplo.com | grep -i 'BreadcrumbList'

    Schema de migas de pan

    SEO Internacional y Hreflang

    Validación completa de hreflang.

    Extraer todos los hreflang

    bash
    curl -s https://ejemplo.com | grep -i 'hreflang' | grep -oP 'hreflang="[^"]*"'

    Lista todos los idiomas

    Contar idiomas implementados

    bash
    curl -s https://ejemplo.com | grep -i 'hreflang' | wc -l

    Número total de alternativas

    Verificar x-default

    bash
    curl -s https://ejemplo.com | grep 'hreflang="x-default"'

    CRÍTICO: CRÍTICO para SEO internacional

    Validar código BCP-47

    bash
    curl -s https://ejemplo.com | grep 'hreflang' | grep -oP 'hreflang="[^"]*"' | sort | uniq

    es-ES, en-GB, fr-FR formato correcto

    Análisis de Competencia

    Benchmarking y monitoreo.

    Comparar TTFB de competidores

    bash
    for site in comp1.com comp2.com; do ttfb=$(curl -o /dev/null -s -w "%{time_starttransfer}" "https://$site"); echo "$site: ${ttfb}s"; done

    Benchmark de velocidad

    Comparar tecnologías

    bash
    curl -I https://competidor.com | grep -iE "server|x-powered-by"

    Stack tecnológico del competidor

    Detectar CDN competidor

    bash
    curl -I https://competidor.com | grep -iE "cf-|x-cache|fastly"

    Infraestructura del competidor

    CASOS DE USO REALES

    Proyectos donde uso estos comandos

    • Validación hreflang 15+ idiomas
    • Monitoreo 50K+ URLs post-migración
    • Análisis redirecciones multi-dominio
    • Performance pre-temporada alta
    • Validación canonical 200K+ URLs
    • Detección soft-404s
    • Análisis diario 100K+ productos
    • Validación structured data
    • Monitoreo competencia automatizado

    ¿Te ha sido útil esta guía?

    Compártela con tu equipo y ayuda a más profesionales SEO a optimizar su workflow