{
    "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt",
    "locale": "en",
    "title": "The terminal commands you actually need · DeLaParra Services",
    "description": "The 30 most important commands for Linux, macOS and PowerShell, what flags such as -r, -f and -a mean, and which commands are dangerous.",
    "alternates": {
        "en": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt",
        "nl": "https://delaparra-services.nl/nl/handleidingen/terminalcommandos-die-je-nodig-hebt"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.csv",
        "md": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.md",
        "json": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.json",
        "zip": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.zip",
        "pdf": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.csv",
            "encodingFormat": "text/csv",
            "name": "terminalcommandos-die-je-nodig-hebt.csv"
        },
        {
            "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.json",
            "encodingFormat": "application/json",
            "name": "terminalcommandos-die-je-nodig-hebt.json"
        },
        {
            "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.md",
            "encodingFormat": "text/markdown",
            "name": "terminalcommandos-die-je-nodig-hebt.md"
        },
        {
            "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.pdf",
            "encodingFormat": "application/pdf",
            "name": "terminalcommandos-die-je-nodig-hebt.pdf"
        },
        {
            "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.zip",
            "encodingFormat": "application/zip",
            "name": "terminalcommandos-die-je-nodig-hebt.zip"
        }
    ],
    "markdown": "# The terminal commands you really need\n\nThis guide builds on *The Terminal and PowerShell*. Your AI assistant carries out many commands for you. If you know what they do, you’ll also be able to tell when something isn’t quite right.\n\n## Navigate\n\n| Linux / macOS | PowerShell | What it does |\n|---|---|---|\n| `pwd` | `pwd` | Which directory am I in? |\n| `ls -la` | `ls` / `Get-ChildItem -Force` | Show files, including hidden ones |\n| `cd map` | `cd map` | Go to a folder |\n| `cd ..` | `cd ..` | Move up one folder |\n| `cd ~` | `cd ~` | To your home directory |\n\n## Files and folders\n\n| Linux / macOS | PowerShell | What it does |\n|---|---|---|\n| `mkdir -p a/b` | `New-Item -ItemType Directory a\\b` | Create folder (`-p` = including subfolders) |\n| `cp bron doel` | `Copy-Item bron doel` | Copy (`-r` for folders) |\n| `mv oud nieuw` | `Move-Item oud nieuw` | Move or rename |\n| `rm bestand` | `Remove-Item bestand` | Delete (there is no recycle bin!) |\n| `cat bestand` | `Get-Content bestand` | Show contents |\n| `less bestand` | `more bestand` | Browse through a long file (`q`=stop) |\n| `head -n 20` / `tail -n 20` | `Get-Content -Head 20` / `-Tail 20` | Start / end of a file |\n| `tail -f log.txt` | `Get-Content log.txt -Wait` | Monitoring a log file in real time |\n| `tar -xzf a.tar.gz` | `tar -xzf a.tar.gz` | Extract archive |\n| `zip -r a.zip map` / `unzip a.zip` | `Compress-Archive` / `Expand-Archive` | Zipping and unzipping |\n\n## Search\n\n```bash\ngrep -rn \"FactuurController\" app/     # zoek tekst in bestanden, met regelnummers\nwhich php                             # waar staat dit programma?\n```\n\nPowerShell: `Select-String -Path app\\*.php -Pattern \"FactuurController\"` and `Get-Command php`.\n\n## Processes\n\n| Command | What it does |\n|---|---|\n| `ps aux` | Running processes |\n| `top` / `htop` | Real-time overview of CPU and memory |\n| `kill 1234` | Stop process 1234 |\n| Ctrl+C | Abort the command currently running |\n\n## The Internet and servers\n\n```bash\ncurl -i https://jouwsite.nl                 # pagina ophalen met headers\nwget https://example.com/bestand.zip        # bestand downloaden\nssh gebruiker@server.nl                     # inloggen op een server\nscp bestand.txt gebruiker@server.nl:/tmp/   # bestand naar een server kopiëren\n```\n\n## Environment and rights\n\n```bash\necho $PATH               # een variabele tonen\nexport APP_ENV=local     # variabele zetten voor deze sessie\nenv                      # alle variabelen tonen\nsource ~/.bashrc         # instellingen opnieuw inladen\nsudo commando            # als beheerder uitvoeren (Linux/macOS)\nchmod 644 bestand        # rechten instellen\nchown www-data:www-data storage -R   # eigenaar wijzigen\n```\n\n## Combining commands\n\n- `|` (pipe) redirects the output: `cat laravel.log | grep ERROR`\n- `&&` only executes the second command if the first one succeeded: `composer install && php artisan migrate`\n- `>` writes to a file (overwrites it), `>>` appends to it\n\n## Flags: what do those letters mean?\n\nFlags change what a command does. **The same letter does not mean the same thing everywhere.** If in doubt, always check the help: `commando --help` or `man commando`.\n\n| Flag | Usually | But please note |\n|---|---|---|\n| `-a` / `--all` | everything, including hidden files | `git commit -a` adds all modified files to the commit |\n| `-f` / `--force` | force | `docker compose -f` and `tar -f` mean ‘file’ |\n| `-r` / `-R` | recursive (including subfolders) | |\n| `-v` | verbose output | `node -v` = version, `grep -v` = do not match |\n| `-n` / `--dry-run` | show only what would happen | `grep -n` = line numbers |\n| `-q` | silent | |\n| `-y` / `--yes` | answer \"yes\" to everything | |\n| `-h` / `--help` | help | `df -h` = human-readable sizes |\n\n## Danger: think first\n\n- `rm -rf map` deletes everything without asking. Check the directory first using `ls`.\n- `chmod -R 777` gives everyone full access. Never do this.\n- Use `sudo` for anything you don’t understand.\n- Paste internet commands that end with `| bash`.\n\nDon’t let your AI assistant carry out such commands without asking first. The **cli-flag-safety** skill can help with this.\n\n## Need help?\n\nWould you like an assistant that works securely on your terminal, with the right permissions and restrictions? Take a look at **Your own coding agent**.\n\n## Skills\n\n- [CLI flag safety] (/nl/skills/cli-flag-safety)\n- [Bash Defensive Patterns] (/nl/skills/bash-defensive-patterns)\n- [ShellCheck Configuration and Static Analysis] (/nl/skills/shellcheck-configuration)\n- [Debian Linux Triage] (/nl/skills/debian-linux-triage)\n\n## Related services\n\n- [Je eigen programmeeragent] (/nl/services#service-06)\n\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "TechArticle",
                "@id": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#article",
                "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt",
                "headline": "The terminal commands you actually need",
                "description": "The 30 most important commands for Linux, macOS and PowerShell, what flags such as -r, -f and -a mean, and which commands are dangerous.",
                "inLanguage": "en",
                "subjectOf": {
                    "@id": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#dataset"
                }
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#dataset",
                "name": "The terminal commands you actually need",
                "description": "The 30 most important commands for Linux, macOS and PowerShell, what flags such as -r, -f and -a mean, and which commands are dangerous.",
                "url": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt",
                "identifier": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt#article"
                },
                "publisher": {
                    "@type": "Organization",
                    "name": "DeLaParra Services",
                    "url": "https://delaparra-services.nl/"
                },
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/manuals#dataset",
                    "name": "Manuals for working on your own app",
                    "url": "https://delaparra-services.nl/manuals"
                },
                "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": "terminalcommandos-die-je-nodig-hebt.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.csv",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terminalcommandos-die-je-nodig-hebt.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.json",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terminalcommandos-die-je-nodig-hebt.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.md",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terminalcommandos-die-je-nodig-hebt.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.pdf",
                        "inLanguage": "en"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "terminalcommandos-die-je-nodig-hebt.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/manuals/terminalcommandos-die-je-nodig-hebt.zip",
                        "inLanguage": "en"
                    }
                ]
            }
        ]
    }
}