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.


40 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
9
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.…
5
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
  • 89
  • 1
  • 2
  • 5
4
votes
3 answers

PowerShell-like history auto suggestion for Bash

Microsoft added a neat feature in the 7.3.0 release of PowerShell called Predictive IntelliSense which autosuggests commands to enter as you type based on the history. Such a suggestion can be accepted simply by pressing the → (right arrow)…
adanski
  • 157
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…
3
votes
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
  • 31
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…
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
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,631
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
0 answers

Rsync over SFTP alternatives?

I am currently working with an SFTP server and aiming to synchronize its folder with a corresponding local directory. It's crucial to note that I lack control over the SFTP server, and files within it are consistently added and removed autonomously.…
Eddy
  • 11
1
2 3