sudo apt-get install chromium-browser --yes
Operates similarly to Chrome, but feels a bit faster, particularly on a Raspberry Pi.
sudo apt-get install chromium-browser --yes
PS /home/david> Test-Path $PROFILE
False
PS /home/david> New-Item -Path $PROFILE -Type File -Force
Directory: /home/david/.config/powershell
Mode LastWriteTime Length Name
---- ------------- ------ ----
------ 3/29/19 10:26 AM 0 Microsoft.PowerShell_profile.ps1
PS /home/david> $PROFILE
/home/david/.config/powershell/Microsoft.PowerShell_profile.ps1
PS /home/david> Set-Content -Path $PROFILE -Value '$Host.UI.RawUI.WindowTitle = "Powershell"'
PS /home/david> Get-Content $PROFILE
$Host.UI.RawUI.WindowTitle = "Powershell"
PS /home/david> .$PROFILE
function Rename-Shell{
param([string]$Name)
$Host.UI.RawUI.WindowTitle = $Name
}
PS /home/david> .$PROFILE
PS /home/david> Rename-Shell -Name 'My Terminal'
david@mint ~ $ powershell
PowerShell 6.1.3
https://aka.ms/pscore6-docs
Type 'help' to get help.
PS /home/david> Get-Location
Error reading or writing history file '/home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt': Access to the path '/home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt' is denied.
ưm
Path
----
/home/david
david@mint ~ $ ls -l /home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
-rw-r--r-- 1 root root 336 Mar 28 11:04 /home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
david@mint ~ $ sudo chown david /home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
[sudo] password for david:
david@mint ~ $ sudo chgrp david /home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
david@mint ~ $ ls -l /home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
-rw-r--r-- 1 david david 336 Mar 28 11:04 /home/david/.local/share/powershell/PSReadLine/ConsoleHost_history.txt
david@mint ~ $ powershell
PowerShell 6.1.3
Copyright (c) Microsoft Corporation. All rights reserved.
https://aka.ms/pscore6-docs
Type 'help' to get help.
PS /home/david> Get-Location
Path
----
/home/david
PS /home/david> Get-History
Id CommandLine
-- -----------
1 Get-Location
#!/bin/sh
echo "Hello, World!"
chmod +x example.sh
#!/usr/bin/env python
print("Hello, World!")
#!/usr/bin/perl -w
print "Hello, World!\n"
$ which powershell
/snap/bin/powershell
#!/usr/bin/env powershell
Write-Host "Hello, World!"
$ ./example.ps1
Hello, World!
sudo apt update
sudo apt install snapd
sudo snap install powershell --classic
/snap/bin
to your pathdavid@mybox ~ $ sudo which pwsh /snap/bin/pwsh david@mybox ~ $ PATH=$PATH:/snap/bin
Distributor ID: LinuxMint Description: Linux Mint 18.3 Sylvia Release: 18.3 Codename: sylvia Name Value ---- ----- PSVersion 6.1.3 PSEdition Core GitCommitId 6.1.3 OS Linux 4.15.0-46-generic #49~16.04.1-Ubuntu SMP Tue Feb 12 17:45:24 UTC 2019 Platform Unix PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0