Windows Bash

Windows Built-In Bash

  • Korn Shell / Bash,  ollama,  Windows Bash,  WSL

    Upgrading Ollama for Copilot Support: The Step you probably Miss

    Ollama recently added a built-in Copilot integration — but only from a certain version onwards. If your installation is older, you’ll get a confusing error before you even get started. Here’s exactly what happened when I upgraded, including the one gotcha that tripped me up along the way. The Starting Point: An Unsupported Version I wanted to launch Ollama’s new Copilot feature with the kimi-k2.5:cloud model. The command looked straightforward: The error made it clear: my version of Ollama simply didn’t know what copilot was. A quick version check confirmed the problem: Version 0.17.7 — too old for Copilot. Time to upgrade. Running the Upgrade Ollama’s official upgrade method is…

  • Korn Shell / Bash,  PowerShell,  Shell Scripting,  Windows Bash

    💡How to Extract Specific Lines from a File: sed, awk, head/tail, grep, and with powershell

    In the command line, it’s often necessary to extract only specific lines from a text file – whether it’s a single line or a range of lines. Fortunately, Bash offers several powerful tools for this. In this blog post, I’ll show you the most common methods using sed, awk, head/tail, and grep. Additionally, I will demonstrate an option when using PowerShell. Extracting Lines with sed sed (Stream EDitor) is a classic for text manipulation in the shell and is excellent for selectively outputting line ranges.Output a Single Line (e.g., Line 102)To output a specific line, such as line 102, you use the p command (print) in combination with the -n…

  • PowerShell,  Windows Bash,  WSL

    💡PowerShell Tip for Large Files – The Get-Content -Tail and -Wait parameters

    In PowerShell, you can display the last *n* lines of large text or ASCII files using the `-Tail` parameter of the `Get-Content` cmdlet: In Powershell, you can display the last *n* lines of large tyt or ASCII files using the -Tail parameter of the Get-Content cmdlet: Since PowerShell version 3, Get-Content (or its alias gc) includes the -Tail parameter. Unfortunately, there is no built-in equivalent to the Unix tail -f command for continuous updates. PowerShell: Get-Content with -Wait PowerShell’s Get-Content cmdlet supports the -Wait parameter, which continuously monitors a file for new content: This will display new lines as they are appended to the file. PowerShell with filtering (advanced usage)…

  • Shell Scripting,  Windows Bash

    Windows bash – Zugriff auf lokale Verzeichnisse

    Lokale Verzeichnisse in der Windows Bash können über den automatischen eingebunden Mount /mnt/ gelesen und geändert werden. [user1:/mnt/d/Cache] $ ls -ld /mnt/* drwxrwxrwx 0 root root 512 Mar 19 10:17 /mnt/c drwxrwxrwx 0 root root 4096 Mar 19 10:17 /mnt/d Der Zugriff auf C:\Users\user1\Documents (= Eigene Dokumente des Benutzers user1) erfolgt beispielsweise per: ls /mnt/c//Users/user1/Documents/