PowerShell
2012-12-11 13:18 PingX 阅读(270) 评论(0) 收藏 举报http://marui.blog.51cto.com/1034148/d-2
Page Up - 跳转到历史缓冲区中的第一个命令。
Page Down - 跳转到历史缓冲区中的最后一个命令。
UpArrow - 向后显示历史缓冲区命令。
DownArrow - 向进显示历史缓冲区命令。
Home - 跳跃到命令行的开头。
End - 跳跃到命令行的末尾。
Ctrl + LeftArrow - 到最左侧字符。
Ctrl + RightArrow - 到右侧单词结尾。
Tab - 完成输入(在控制台中键入GET - C和按TAB键,再按下Tab试试)。
F7键 - 显示历史缓冲区(使用向上和向下箭头键来浏览缓冲区)。
或者在别的窗口复制一段文字,在PowerShell上按鼠标右键试试,类似于sh下的鼠标中键的作用。
$VariableName
动词-名词
Get-alias
Set Alias gs Get-Service 会话内有效
Export-Alias -Path a.txt
Import-Alias -Path a.txt
配置文件的位置存储在$Profile变量(http://marui.blog.51cto.com/1034148/290067)
get-help cmdlet
-whatif
get-psprovider
get-psdriver
函数: http://marui.blog.51cto.com/1034148/294775
管道 “|”
http://www.cnblogs.com/whitewolf/archive/2012/06/09/2543247.html
Get-WMIObject Win32_Service | Where-Object {$_.StartName –eq “LocalSystem” } | select Name,StartMode
WMI对象:
http://marui.blog.51cto.com/1034148/296083
http://marui.blog.51cto.com/1034148/298520
http://www.codeproject.com/Articles/103681/A-Quick-Guideline-for-Microsoft-Windows-PowerShell
浙公网安备 33010602011771号