Forum Discussion
fsq2018
Apr 29, 2022Copper Contributor
PowerShell cannot copy files on Linux platform
When I try the following code Copy-Item /etc/sudoers ./sudoers Suddenly, an error is reported as follows How can I solve it?How can PowerShell obtain root permission under Linux platform?
- May 03, 2022You can start your initial pwsh sessions running it sudo pwsh. This is the same on Windows if you want to do admin things, you have to run PowerShell as Administrator (Right-Click, Run as Administrator)
May 01, 2022
Did this work out for you?
- fsq2018May 03, 2022Copper Contributor
Harm_Veenstra It works out as shown in the follwing figure.
But it reopens a 'pwsh' process to run commands.
How to run commands without restarting a 'pwsh' shell process.
- May 03, 2022You can start your initial pwsh sessions running it sudo pwsh. This is the same on Windows if you want to do admin things, you have to run PowerShell as Administrator (Right-Click, Run as Administrator)
- fsq2018May 03, 2022Copper ContributorOK!