{
    "url": "https://delaparra-services.nl/knowledge-hub/o-output-output",
    "locale": "en",
    "title": "-o, --output (Output): Knowledge hub | DeLaParra Services",
    "description": "Specify where the command should write its output — a file, a format, or a directory.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/o-output-output",
        "nl": "https://delaparra-services.nl/nl/kennisbank/o-output-output"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/o-output-output.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/o-output-output.md",
        "json": "https://delaparra-services.nl/knowledge-hub/o-output-output.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/o-output-output.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/o-output-output.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/o-output-output.csv",
            "encodingFormat": "text/csv",
            "name": "o-output-output.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/o-output-output.json",
            "encodingFormat": "application/json",
            "name": "o-output-output.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/o-output-output.md",
            "encodingFormat": "text/markdown",
            "name": "o-output-output.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/o-output-output.pdf",
            "encodingFormat": "application/pdf",
            "name": "o-output-output.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/o-output-output.zip",
            "encodingFormat": "application/zip",
            "name": "o-output-output.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/o-output-output/skills.zip",
            "encodingFormat": "application/zip",
            "name": "o-output-output-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [-o, --output (Output)](<https://delaparra-services.nl/knowledge-hub/o-output-output>)\n\n  \n\nCategory: CLI flags \n\n# -o, --output (Output)\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is -o, --output (Output)?\n\n \n\n-o, --output (Output): Specify where the command should write its output — a file, a format, or a directory. ` -o ` or ` --output ` tells a command where to write its result, or in what form. ` curl -o page.html ` saves the response to a file. ` gcc -o app ` names the compiled program. ` kubectl get pods -o yaml ` changes the output format.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about -o, --output (Output)\n\n  \n\n### How is -o, --output (Output) used in practice?\n\n \n\nWithout it, most tools print to the screen. That is fine for a quick look, but you lose the result once the terminal scrolls. Writing to a file means you can compare two runs, attach the result to a ticket, or feed it into the next step.\n\n    \n\n### What should you keep in mind with -o, --output (Output)?\n\n \n\nThe format variant is especially useful. ` -o json ` gives you something a script can read reliably, while the default table output is meant for people and can change between versions. If you are parsing a command's output in a script, ask for a structured format instead of cutting columns out of text.\n\n \n\n## At a glance\n\n   CategoryCLI flags Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More CLI flags terms\n\n \n\n- [-f, --force (Force)](<https://delaparra-services.nl/knowledge-hub/f-force-force>) \n- [-h, --help (Help)](<https://delaparra-services.nl/knowledge-hub/h-help-help>) \n- [-i, --interactive (Interactive)](<https://delaparra-services.nl/knowledge-hub/i-interactive-interactive>) \n- [-p (context-dependent) (Port / Parents / Publish)](<https://delaparra-services.nl/knowledge-hub/p-context-dependent-port-parents-publish>) \n- [-q, --quiet, --silent (Quiet / Silent)](<https://delaparra-services.nl/knowledge-hub/q-quiet-silent-quiet-silent>) \n- [-r, -R, --recursive (Recursive)](<https://delaparra-services.nl/knowledge-hub/r-r-recursive-recursive>)\n\n \n\n[All terms starting with a number or symbol](<https://delaparra-services.nl/knowledge-hub#letter-other>)\n\n \n\n## Skills\n\n \n\n- ### CLI flag safety\n\n \n\nUse before running or suggesting shell commands with flags, especially destructive or broad ones (-f/--force, -r/-R recursive, -a/--all, -y/--yes, prune, --hard), and when a user asks what a flag means (-v, -q, -n/--dry-run, -h, -o, -p, -t, -u, -w, -x, -c, -i). Explains flags per tool and prefers dry runs and narrow scopes.\n\n [View skill](<https://delaparra-services.nl/skills/cli-flag-safety>) [Download zip](<https://delaparra-services.nl/skills/cli-flag-safety/download>) \n- ### Docker Destructive Command Guardrails\n\n \n\nUse this skill before running, or recommending, any Docker command that deletes, wipes, resets, or otherwise irreversibly changes state — even if the user just says to \"clean up\", \"clear the cache\", \"start fresh\", \"wipe everything\", \"nuke it\", \"reset\", \"force remove\", or \"tear down\" Docker resources. Covers generic Docker CLI destructive operations not owned by a more specific skill — \\`docker rm\\`,\n\n [View skill](<https://delaparra-services.nl/skills/docker-destructive-guardrails>) [Download zip](<https://delaparra-services.nl/skills/docker-destructive-guardrails/download>) \n- ### ShellCheck Configuration and Static Analysis\n\n \n\nMaster ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.\n\n [View skill](<https://delaparra-services.nl/skills/shellcheck-configuration>) [Download zip](<https://delaparra-services.nl/skills/shellcheck-configuration/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/o-output-output/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [The terminal commands you actually need](<https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt>) \n- [The terminal and PowerShell](<https://delaparra-services.nl/manuals/de-terminal-en-powershell>)\n\n \n\n## Related services\n\n \n\n- [Your own coding agent](<https://delaparra-services.nl/services#service-06>)\n\nIf you want to use a coding agent, we provide all the infrastructure to help it work efficiently.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/o-output-output)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/o-output-output",
                "name": "-o, --output (Output): Knowledge hub | DeLaParra Services",
                "description": "Specify where the command should write its output — a file, a format, or a directory.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#term",
                    "name": "-o, --output (Output)",
                    "description": "Specify where the command should write its output — a file, a format, or a directory.",
                    "termCode": "o-output-output",
                    "url": "https://delaparra-services.nl/knowledge-hub/o-output-output",
                    "inLanguage": "en",
                    "keywords": "CLI flags",
                    "dateModified": "2026-11-25T17:46:23+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is -o, --output (Output)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Specify where the command should write its output — a file, a format, or a directory. -o or --output tells a command where to write its result, or in what form. curl -o page.html saves the response to a file. gcc -o app names the compiled program. kubectl get pods -o yaml changes the output format."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "How is -o, --output (Output) used in practice?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "Without it, most tools print to the screen. That is fine for a quick look, but you lose the result once the terminal scrolls. Writing to a file means you can compare two runs, attach the result to a ticket, or feed it into the next step."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with -o, --output (Output)?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The format variant is especially useful. -o json gives you something a script can read reliably, while the default table output is meant for people and can change between versions. If you are parsing a command's output in a script, ask for a structured format instead of cutting columns out of text."
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/cli-flag-safety#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-destructive-guardrails#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/shellcheck-configuration#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/de-terminal-en-powershell#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "-o, --output (Output)"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#dataset",
                "name": "-o, --output (Output)",
                "description": "Specify where the command should write its output — a file, a format, or a directory.",
                "url": "https://delaparra-services.nl/knowledge-hub/o-output-output",
                "identifier": "https://delaparra-services.nl/knowledge-hub/o-output-output#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/o-output-output#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "CLI flags",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:23+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "o-output-output.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/o-output-output.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "o-output-output.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/o-output-output.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "o-output-output.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/o-output-output.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "o-output-output.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/o-output-output.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "o-output-output.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/o-output-output.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "o-output-output-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/o-output-output/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:23+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}