- PowerShell 教程
- PowerShell - 首页
- PowerShell - 概述
- PowerShell - 环境设置
- PowerShell - Cmdlet
- PowerShell - 文件和文件夹
- PowerShell - 日期和计时器
- PowerShell - 文件 I/O
- PowerShell - 高级 Cmdlet
- PowerShell - 脚本
- PowerShell - 特殊变量
- PowerShell - 运算符
- PowerShell - 循环
- PowerShell - 条件
- PowerShell - 数组
- PowerShell - 哈希表
- PowerShell - Regex
- PowerShell - 反引号
- PowerShell - 括号
- PowerShell - 别名
- PowerShell 有用资源
- PowerShell - 快速指南
- PowerShell - 有用资源
- PowerShell - 讨论
PowerShell - Get-History Cmdlet
Cmdlet
Get-History cmdlet 用于获取在当前会话中运行的命令。
在此示例中,我们将看到 Get-History cmdlet 的实际应用。
示例
在此示例中,我们将获取在当前历史记录中运行的命令。
> get-history Id CommandLine -- ----------- 13 clear-history 14 get-history 15 dir 16 dir 17 dir 18 dir
powershell_advanced_cmdlets.htm
广告