linux下mono powershell安装教程

本文发布时间: 2019-Mar-22
1简介简单来说pash就是bash+powershell2官网https://github.com/Pash-Project/Pash3下载fedora20---lxde桌面---32位版。http://download.fedoraproject.org/pub/fedora/linux/releases/20/Live/i386/Fedora-Live-LXDE-i686-20-1.iso4用vmware虚拟机安装linux,设置用户root,密码=123456,用户user001,密码=1234565安装monoyum install wgetcd /etc/yum.repos.d/ wget http://download.opensuse.org/repositories/home:tpokorra:mono/Fedora_20/home:tpokorra:mono.repo yum install mono-opt6安装git yum install git #powershell 传教士 原创文章 2014-09-15 允许转载,但必须保留名字和出处,否则追究法律责任7编译安装pashcd / git clone https://github.com/Pash-Project/Pash.git cd /Pash/ /opt/mono/bin/xbuild /Pash/Pash.proj 运行/opt/mono/bin/mono /Pash/Source/PashConsole/bin/Debug/Pash.exe8用lxde桌面中,默认的记事本程序leafpad,(软件名叫leafpad,在命令行中也是敲leafpad)在linux中建立测试脚本,保存格式为utf8,注意回车符号。------------------------#!/opt/mono/bin/mono /Pash/Source/PashConsole/bin/Debug/Pash.exe# test.ps1write-host 'aaaa' 1..6 $aaa=123if ($aaa -eq 123) { write-host 'bbb' } else { write-host 'ccc' }for ($i=1;$i -lt 5;$i++) { write-host 'ddd',$i }$eee=1..8 foreach ($temp in $eee) { write-host 'eee',$temp}-------------后记=目前存在的问题----------- else不能在行首。if ($aaa -eq 123) { write-host 'bbb' } else { write-host 'ccc' }上面可以,下面不行if ($aaa -eq 123) { write-host 'bbb' } else { write-host 'ccc' } ---------------下载-----------------文件大小=1GB注意:虚拟机比较大,我放在了群内下载。下述下载内容,已经经过了上述步骤。即,你下载的是我已经安装好的了。#QQ群号=183173532#名称=powershell交流群pash_in_linux_vmware虚拟机_rar5版以上才能解压.rarSHA1=54277968FDA57DB8CE413E05914867F411C02FD7


(以上内容不代表本站观点。)
---------------------------------
本网站以及域名有仲裁协议。
本網站以及域名有仲裁協議。

2020-Jul-13 01:13am
栏目列表