comparing BASH (Unix/Linux/MacOSx) commands to Microsoft PowerShell

Looking at this comparison and knowing that you have to install/configure either BASH or PowerShell in a Microsoft Windows 10 system, why would you bother messing with PowerShell when you can use BASH? LINUX/UNIX COMMAND ###### POWERSHELL ------------------------------------------------
  1. alias (set aliases) ###### set-alias
  2. alias (show aliases) ###### get-alias
  3. apropos ###### get-help
  4. basename ###### dir | select name
  5. cal ###### No equivalent
  6. cd ###### cd
  7. clear ###### clear-host
  8. date ###### get-date
  9. date -s ###### set-date
  10. df -k ###### Get-WMIObject Win32_LogicalDisk | ft -a
  11. diff ###### Compare-Object -ReferenceObject (Get-Content file1) -DifferenceObject (Get-Content file2)
  12. dirname ###### dir | select directory
  13. du ###### No equivalent
  14. echo ###### write-output
  15. echo -n ###### write-host -nonewline
  16. | egrep -i sql ###### | where {[Regex]::Ismatch($\_.name.tolower(), "sql") }
  17. egrep -i ###### select-string
  18. egrep ###### select-string -casesensitive
  19. egrep -v ###### select-string -notmatch
  20. env ###### Get-ChildItem Env: | fl or get-variable
  21. errpt ###### get-eventlog
  22. export PS1=.$ . ###### function prompt {"$ " }
  23. find ###### dir *whatever* -recurse
  24. for (start, stop, step) ###### for ($i = 1; $i -le 5; $i++) {whatever}
  25. head ###### gc file.txt | select-object -first 10
  26. history ###### get-history
  27. history | egrep -i ls ###### history | select commandline | where commandline -like '*ls*' | fl
  28. hostname ###### hostname
  29. if-then-else ###### if ( condition ) { do-this } elseif { do-that } else {do-theother}
  30. if [ -f "$FileName" ] ###### if (test-path $FileName)
  31. kill ###### stop-process
  32. less ###### more
  33. locate ###### No equivalent
  34. ls ###### get-childitem OR gci OR dir OR ls
  35. ls -a ###### ls -force
  36. ls -ltr ###### dir c:\ | sort-object -property lastwritetime
  37. lsusb ###### gwmi Win32_USBControllerDevice
  38. mailx ###### send-mailmessage
  39. man ###### get-help
  40. more ###### more
  41. mv ###### rename-item
  42. pg ###### more
  43. ps -ef ###### get-process
  44. ps -ef | grep oracle ###### get-process oracle
  45. pwd ###### get-location
  46. read ###### read-host
  47. rm ###### remove-item
  48. script ###### start-transcript
  49. sleep ###### start-sleep
  50. sort ###### sort-object
  51. sort -uniq ###### get-unique
  52. tail ###### gc file.txt | select-object -last 10
  53. tail -f ###### gc -tail 10 -wait file.txt
  54. time ###### measure-command
  55. touch (empty file) ###### set-content -Path ./file.txt -Value $null
  56. touch (update date) ###### set-itemproperty -path ./file.txt -name LastWriteTime -value $(get-date)
  57. wc -l ###### gc ./file.txt | measure-object | select count
  58. whoami ###### [Security.Principal.WindowsIdentity]::GetCurrent() | select name
  59. whence or type ###### No equivalent
  60. unalias ###### remove-item -path alias:aliasname
  61. uname -m ###### Get-WmiObject -Class Win32_ComputerSystem | select manufacturer, model
  62. uptime ###### get-wmiobject -class win32_operatingsystem | select LastBootUpTime`
  63. \ (line continuation) ###### ` (a backtick)

Simply Linux: Basics Linux Tackles Microsoft Using BASH on Windows 10
Practical Suggestions for Microsoft Windows
 Full Size Jeep Buyer's Guide
12 hour Video Course by john:
The Art of Linux System Administration
published by O'Reilly Media
Study Guide for the LPIC-2 Certification Exams
search for:
on the internet, or:
JohnMeister.com-fotos
LinuxMeister-Linux
BibleTech- Bible overview

overview of mankind's history
Biblical history:
"Promises and Prophets"

Wagoneers

FULL SIZE JEEPS

JeepMeister
"Jeep is America's
only real sports car."
-Enzo Ferrari


MeisterTech
Diesels +

One Page Overview of Linux Commands

click for an image of the 5 essential Linux commands

An Intro to Linux
AMSOIL product guide,
or, AMSOIL web, or 1-800-956-5695,
use customer #283461

Amsoil dealer since 1983
purchase AMSOIL
at Midway Auto on SR9 in Snohomish,
or at Northland Diesel in Bellingham, WA


SJ - 1962-1991

XJ - 1984-2001

WJ - 1999-2004

KJ - 2002-2007

WK - 2005-2010

Find the recommended
AMSOIL synthetics
for your Jeep

CJ-10A - 1984-1986

Jeepsters

MJ - 1984-1992

Willys - 1946-1965

Other Jeeps (FC)