Nu map from other shells and domain specific languages

The idea behind this table is to help you understand how Nu builtins and plugins relate to other known shells and domain specific languages. We've tried to produce a map of relevant Nu commands and what their equivalents are in other languages. Contributions are welcome.

Note: this table assumes Nu 0.43 or later.

NushellSQL.Net LINQ (C#)PowerShell (without external modules)Bash
aliasaliasalias
appendAppend-Append
math avgavgAverageMeasure-Object, measure
calc, <math expression>math operatorsAggregate, Average, Count, Max, Min, Sumbc
cdSet-Location, cdcd
clearClear-Hostclear
config$Profilevi .bashrc, .profile
cpCopy-Item, cp, copycp
dateNOW() / getdate()DateTime classGet-Datedate
dudu
eachcursorForEach-Object, foreach, for
exitexitexit
fetchHttpClient,WebClient, HttpWebRequest/ResponseInvoke-WebRequestwget
firsttop, limitFirst, FirstOrDefaultSelect-Object -Firsthead
formatString.FormatString.Format
fromimport flatfile, openjson, cast(variable as xml)Import/ConvertFrom-{Csv,Xml,Html,Json}
getSelect(cmd).column
group-bygroup byGroupBy, groupGroup-Object, group
helpsp_helpGet-Help, help, manman
historyGet-History, historyhistory
is_emptyis nullString.InNullOrEmptyString.InNullOrEmpty
killStop-Process, killkill
lastLast, LastOrDefaultSelect-Object -Lasttail
lengthcountCountMeasure-Object, measurewc
linesFile.ReadAllLines
lsGet-ChildItem, dir, lsls
mkdirmkdir, mdmkdir
mvMove-Item, mv, move, mimv
nthlimit x offset y, rownumber =ElementAt[x], indexing operator, ElementAt
openGet-Content, gc, cat, typecat
printprint, union allWrite-Output, writeecho
transposepivot
psGet-Process, ps, gpsps
pwdGet-Location, pwdpwd
rangeRange1..10, 'a'..'f'
reduceAggregate
renameRename-Item, ren, rnimv
reverseReverse[Array]::Reverse($var)
rmRemove-Item, del, erase, rd, ri, rm, rmdirrm
saveWrite-Output, Out-File> foo.txt
selectselectSelectSelect-Object, select
shuffleRandomSort-Object {Get-Random}
sizeMeasure-Object, measurewc
skipwhere row_number()SkipSelect-Object -Skip
skip untilSkipWhile
skip whileSkipWhile
sort-byorder byOrderBy, OrderByDescending, ThenBy, ThenByDescendingSort-Object, sort
split-bySplitSplit
strstring functionsString classString class
str joinconcat_wsJoinJoin-String
str trimrtrim, ltrimTrim, TrimStart, TrimEndTrim
sumsumSumMeasure-Object, measure
sysGet-ComputerInfouname, lshw, lsblk, lscpu, lsusb, hdparam, free
tableFormat-Table, ft, Format-List, fl
taketop, limitTakeSelect-Object -Firsthead
take untilTakeWhile
take whileTakeWhile
toExport/ConvertTo-{Csv,Xml,Html,Json}
touchSet-Contenttouch
uniqdistinctDistinctGet-Unique, guuniq
upsertAs
versionselect @@version$PSVersionTable
with_env$env:FOO = 'bar'export foo = "bar"
wherewhereWhereWhere-Object, where, "?" operator
whichwhich
Contributors: Justin Ma, Aaron Christiansen, Benjamin Kane, Dan Davison, Darren Schroeder, Hristo Filaretov, Ibraheem Ahmed, JT, JTurtle, Jonathan Turner, Leon, Reilly Wood, Zhora Trush, pwygab