Questions tagged [powershell]

Relates to Microsoft PowerShell for Ubuntu.

PowerShell is a text-based shell for Windows by Microsoft. It supports Windows & Windows Server, Ubuntu, Arch, Debian, and Mac.


38 questions
19
votes
4 answers

How do I install PowerShell?

Not long ago I read something on Microsoft's website about PowerShell being available for Ubuntu. How would I go about the install of PowerShell? I'd appreciate guidance for both Xenial & Trusty. Any installation method is fine, whether compiling…
12
votes
4 answers

Install Powershell in Ubuntu 17.04

I'm trying to install Powershell in Ubuntu 17.04 as the following these steps: curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list | sudo tee…
Ender
  • 252
  • 2
  • 3
  • 10
8
votes
4 answers

How to install PowerShell 7 on Ubuntu 20.04?

I am having trouble installing PowerShell 7 on Ubuntu 20.04. I used Ubuntu Software to install powershell 7.0.3, which is the latest/stable version available. After an error-free installation, I cannot launch powershell. Attached is the screenshot.…
Ancora Imparo
  • 181
  • 3
  • 8
4
votes
3 answers

Can I run PowerShell on Ubuntu?

I have been assigned a project to be done in Windows PowerShell. I am familiar with shell scripting but it's a new technology. I was told that its similar to shell except few syntax changes. I have one week time to learn and understand the basics. I…
Uchiha Itachi
  • 79
  • 1
  • 1
  • 5
4
votes
1 answer

How to make PowerShell Core remoting work?

I have Kubuntu 18.04 installed on my machine and I installed PowerShell Core following the instructions given: Installing PowerShell core in linux. I then setup the remoting following the steps described here: PowerShell remoting over SSH. Even…
Natalie Perret
  • 469
  • 2
  • 5
  • 15
3
votes
1 answer

How to install software to another partition?

I dont have enough free space on my ubuntu partition(200MB free space to be precise) and but I want to install Android studio and powershell. I have 7-8GB free space on my other three partitions.How do I do it? I know that ubuntu saves installed…
3
votes
1 answer

Set Powershell as login shell in Ubuntu 19.04

In Ubuntu 19.04 sudo apt install powershell fails with The following packages have unmet dependencies: powershell : Depends: libssl1.0.0 but it is not installable Depends: libicu60 but it is not installable Installing it with snap…
rzippo
  • 133
  • 1
  • 6
3
votes
0 answers

Powershell constantly creates folder in /tmp

System: Ubuntu Server 14.04.1 uname -a Linux [...] 4.4.0-116-generic #140~14.04.1-Ubuntu SMP Fri Feb 16 09:25:20 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux Involved Software: nagios (core Version 3.5.1), powershell (6.0.2) Problem: When a…
2
votes
1 answer

Why is Vagrant in Ubuntu Docker container on Windows looking for PowerShell?

I am taking some training where all of the examples are in Ubuntu, but I am on Windows. So I thought I would install an Ubuntu Docker container, and that went well. The examples also require VirtualBox and Vagrant to be installed in Ubuntu, so I…
Victor Grazi
  • 121
  • 1
  • 5
2
votes
2 answers

Create and append key value pairs to a file of JSON objects with a regex of each JSON object value

I have a big file that contains json objects each object in a new line. File example {"Name" :"%Hana-29-Mrs-Smith","job":"engineer"} {"Name" :"%Mike-31-Mr-Larry","job":"marketing"} {"Name" :"%Jhon-40-Mr-Doe","job":"engineer"} Desired…
mongotop
  • 133
  • 6
2
votes
1 answer

How to set environment variables from within powershell?

How do I make foo an environment variable accessible through printenv on bash? PS /home/thufir/powershell/helloPSTwitterAPI> PS /home/thufir/powershell/helloPSTwitterAPI> $env:foo = 'x' * 333 + '!' PS…
Thufir
  • 4,441
  • 17
  • 80
  • 146
1
vote
1 answer

Changing the terminal font colors while running linux(ubuntu) in Windows PowerShell?

I'm running ubuntu through the Windows PowerShell. The path is in a blue color which is very difficult to read. How can the colors of the fonts, backgrounds, foregrounds be changed?
Andy
  • 11
  • 2
1
vote
0 answers

PowerShell launcher

I am setting up a demo Ubuntu 16.04 devbox and I wanted to create a launcher entry for PowerShell that uses the default gnome-terminal but with the canonical PowerShell colors and icon on the launcher. I have already created a profile for PS colors,…
1
vote
1 answer

*Error Permission denied (publickey)* Does Windows 10 Powershell Support OpenSSH Public Keys with Ubuntu 20.04

Yes I know this a Ubuntu forum.. First off all thanks for doing what you do and helping people! Alright so I've been trying to setup SSH keys on my Ubuntu 20.04, read stuff about it online. So I generated keys on ubuntu with ssh-keygen -t rsa. Now I…
Mextro
  • 51
  • 1
  • 1
  • 5
1
vote
3 answers

Move 10 digit number to the beginning of file name

I have thousands of files that I need to rename. They all contain a 10 digit number that all begin with '42469'. I need to move this 10 digit in each of the files to the beginning of the filename and add an underscore. Example: Original -…
Amy
  • 11
  • 2
1
2 3