About 51 results
Open links in new tab
  1. Powershell's equivalent to Linux/Unix 'ls -al' - Stack Overflow

    Apr 30, 2025 · Is there a PowerShell equivalent to the ls -al command in Linux/Unix? I tried to find something, but it said there wasn't an equivalent command in PowerShell.

  2. How to run a bash script on wsl with powershell? - Stack Overflow

    May 7, 2022 · On my current directory on Windows, I have the following script file simple_script.sh: #!/bin/bash echo "hi from simple script" I wish to run this script on wsl via the powershell …

  3. How can I use a shebang in a PowerShell script? - Stack Overflow

    Jan 12, 2018 · A Unix-like system passes the PowerShell script's absolute filename to the interpreter specified by the "shebang" as the first argument when we invoke the script as a command. In …

  4. Determine the OS version, Linux and Windows from Powershell

    Jun 22, 2017 · 63 How can I determine the OS type, (Linux, Windows) using Powershell from within a script? The ResponseUri isn't recognised when this part of my script is ran on a Linux host.

  5. Set the PSModulePath variable on Linux - PowerShell 7

    Jan 3, 2023 · I'm not as familiar with Linux as I am with Windows, but if PowerShell isn't your default shell, you probably have to set the psmodulepath outside of powershell, then invoke pwsh. In a lot of …

  6. powershell - Text Encoding between Linux and Windows - Stack Overflow

    Mar 18, 2020 · The main question I have is how can I get a textfile that I have in Linux to display properly in PowerShell. In Linux, I have text files with some special characters, and in fact Notepad …

  7. Connect to Exchange from PowerShell on Linux - Stack Overflow

    Jan 11, 2021 · Connect to Exchange from PowerShell on Linux Asked 5 years, 1 month ago Modified 5 years, 1 month ago Viewed 5k times

  8. i want to execute a .ps1 powershell script in red hat linux server

    Apr 26, 2013 · 8 i am having a .ps1 powershell script which executes in window, but my whole data is in linux server, is there any possible way via which i can execute the powershell script in red hat server …

  9. What is the equivalent of 'nohup' in linux PowerShell?

    Nov 6, 2020 · The following example launches a background PowerShell instance that stays alive even after you close the launching terminal; it emits a . every second, and nohup collects both stdout and …

  10. How to "sudo" with Powershell (elevate Powershell, running a …

    Feb 15, 2021 · 2 There is no powershell-ish way of doing this, because elevation feature depends on OS. In both Windows and Linux you actually start a new process under a different security context …