powershell打开文件命令,powershell查看历史命令
在煤矿管理局中查看环境变量小路在煤矿管理局中查看环境变量小路非常简单,只用输入小路即可。
C: Users administrator path=C: Program Files Common Files Oracle Java javapath;c: program data Oracle Java javapath;c: Windows system32;c: Windows;c: Windows System32 Wbem;c: Windows System32 Windows powershell v 1.0 ;c: Windows System32 OpenSSH ;c: Program Files Microsoft VS Code yydyz;c: Program Files Java JDK 1。8 .0 _ 102 yydyzc: Program Files Java JRE 1。8 .0 _ 102 yydyzc: Program Files(x86) MySQL MySQL Server 5.0 yydyz;c: Program Files(x86) Scala yydyz;丙:幽默的小蜜蜂-1 .3 .1 yydyzf: libav-10.6-win 64 win 64 usr yydyz;f: ffmpeg yydyz;c: Program Files Pandoc ;c: Users Administrator AppData Local Programs Python Python 37 Scripts ;c: Users Administrator AppData Local Programs Python Python 37 ;c: Users Administrator AppData Local Microsoft windows apps;c: Users Administrator AppData Local Programs Fiddler;c: Program Files JetBrains py charm社区版2020 .3 .3 yydyz;c: Program Files JetBrains py charm 2020。3 .3 yydyz在管理员中查看环境变量小路在管理员中查看环境变量需要使用$env:path。
PS C: Users Administrator $ env:pathC: Program Files Common Files Oracle Java javapath;c: program data Oracle Java javapath;c: Windows system32;c: Windows;c: Windows System32 Wbem;c: Windows System32 Windows powershell v 1.0 ;c: Windows System32 OpenSSH ;c: Program Files Microsoft VS Code yydyz;c: Program Files Java JDK 1。8 .0 _ 102 yydyzc: Program Files Java JRE 1。8 .0 _ 102 yydyzc: Program Files(x86) MySQL MySQL Server 5.0 yydyz;c: Program Files(x86) Scala yydyz;丙:幽默的小蜜蜂-1 .3 .1 yydyzf: libav-10.6-win 64 win 64 usr yydyz;f: ffmpeg yydyz;c: Program Files Pandoc ;c: Users Administrator AppData Local Programs Python Python 37 Scripts ;c: Users Administrator AppData Local Programs Python Python 37 ;c: Users Administrator AppData Local Microsoft windows apps;c: Users Administrator AppData Local Programs Fiddler;c: Program Files JetBrains py charm社区版2020 .3 .3 yydyz;c: Program Files JetBrains py charm 2020。3 .3 yydyz在管理员中分行查看环境变量小路前面的示例中虽然现实了环境变量路径,但是值不方便观察。利用管理员的相关功能,通过(类型环境:路径)-拆分";"可以按照;分割环境变量小路的值。
PS C: Users Administrator(type env:path)-split ;C: Program Files Common Files Oracle Java javapathC: Program data Oracle Java javapathC: Windows System32 WB EMC: Windows System32 Windows powershell v 1.0 C: Windows System32 OpenSSH C: Program Files Microsoft VS Code yydyzC: Program Files Java JDK 1 .8 .0 _ 102 yydyzC: Program Files Java JRE 1.8幽默的小蜜蜂-1 .3 .1 yydyzF: libav-10.6-win 64 win 64 usr yydyzF: ffmpeg yydyzC: Program Files Pandoc C: Users Administrator AppData Local Programs Python Python 37 Scripts C: Users Administrator AppData Local Programs Python Python 37 C: Users Administrator Local Microsoft windows appsc: Users Administrator AppData Local Programs fiddled在管理员中分行查看环境变量小路并过滤值在管理员中设定位置组号(SetLocationStack)命令是选择字符串命令的别名,功能与*nix中的可做文件内的字符串查找命令类似。
下面的示例演示了如何查找环境变量小路中包含大蟒的项。
PS C: Users Administrator(type env:path)-split ; SLS Python C: Users Administrator AppData Local Programs Python Python 37 Scripts C: Users Administrator AppData Local Programs Python Python 37