原材料:
1 2 3 4 5 |
> $a=@("a", "b", "c") > $a a b c |
foreach有三种 …
DevOps
1 2 3 4 5 6 7 8 |
$alphabet = @() for ([byte]$c = [char]'A'; $c -le [char]'Z'; $c++) { $alphabet += [char]$c } [String]::Join(", ", $alphabet) |
[crayon-688e7a81cdc050 …
字符之 0~9:
1 2 3 4 5 6 7 8 9 10 11 |
0x30..0x39|foreach {[char]$_} 0 1 2 3 4 5 6 7 8 9 |
数字之0~9: [cray …
如下脚本,通过where cmdlet过滤出来netstat中已连接状态的连接: 可以发现, 使用字符串的sp …
sysvinit 管理服务使用的是service命令,执行的是 /etc/init.d/{$script} 的 …
http://www.pstips.net/powershell-online-tutorials/
https://www.digitalocean.com/community/tutorials/how-to …
继续阅读“How To Route Web Traffic Securely Without a VPN Using a SOCKS Tunnel | DigitalOcean”
http://xmodulo.com/access-ssh-terminal-web-browser-linu …
继续阅读“How to access ssh terminal in web browser on Linux – Xmodulo”
http://xmodulo.com/how-to-run-command-on-multiple-serve …
继续阅读“How to run a command on multiple servers at once – Xmodulo”
http://xmodulo.com/how-to-diff-remote-files-over-ssh.ht …