Home > Uncategorized > Windows (powershell) counterparts of Linux commands

Windows (powershell) counterparts of Linux commands


You may find Windows mostly powershell equivalent of frequently used Linux commands here.

I will update this post, with newer ones by the time…

tail -100f <file mask>

Via powershell, without installing new software, you may issue below command for refreshing the alert log and seeing last 100 rows displayed in the very beginning.

Get-Content alertmydb.log -Wait -tail 100

2019-01-21_13-33-24

history

For history of commands executed simply issue.

Get-History

2019-01-21_12-49-35

grep

select-string <string to look for> <file name>

2019-01-21_12-40-38

find

Find the files having a mask alert*log up to 5 directories depth.

gci -Path alert*log -Recurse -Depth 5

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-6

2019-01-21_13-47-03

 

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Julian Dontcheff's Database Blog

Distinguished Product Manager - PL/SQL and JSON at Oracle

Bobby Durrett's DBA Blog

Oracle database performance

flashdba

Database Performance in the Cloud

Don Charisma

because anything is possible with Charisma

Carol no Mundo!

Aventuras de uma intercambista a trabalho pelo mundo!

nimaidba

Welcome to the world of Oracle with me....

Tech

News and reviews from the world of gadgets, gear, apps and the web

WordPress.com

WordPress.com is the best place for your personal blog or business site.

Gurcan Orhan's ODI and DWH Blog

Some words about Oracle Data Integrator and Data Warehousing.