Nushell
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
Get Nu!
Getting Started
  • The Nushell Book
  • Command Reference
  • Cookbook
  • Language Reference Guide
  • Contributing Guide
Blog
  • English
  • 中文
  • Deutsch
  • Français
  • Español
  • 日本語
  • Português do Brasil
  • Русский язык
GitHub
  • Introduction
  • Installation
    • Default Shell
  • Getting Started
    • Quick Tour
    • Moving Around the System
    • Thinking in Nu
    • Nushell Cheat Sheet
  • Nu Fundamentals
    • Types of Data
    • Loading Data
    • Pipelines
    • Working with Strings
    • Working with Lists
    • Working with Records
    • Working with Tables
    • Navigating and Accessing Structured Data
    • Special Variables
  • Programming in Nu
    • Custom Commands
    • Aliases
    • Operators
    • Variables
    • Control Flow
    • Scripts
    • Modules
      • Using Modules
      • Creating Modules
    • Overlays
    • Sorting
    • Testing your Nushell Code
    • Best Practices
  • Nu as a Shell
    • Configuration
    • Environment
    • Stdout, Stderr, and Exit Codes
    • Running System (External) Commands
    • How to Configure 3rd Party Prompts
    • Directory Stack
    • Reedline, Nu's Line Editor
    • Custom Completions
    • Externs
    • Coloring and Theming in Nu
    • Hooks
    • Background Jobs
  • Coming to Nu
    • Coming from Bash
    • Coming from CMD.EXE
    • Nu map from other shells and domain specific languages
    • Nu Map from Imperative Languages
    • Nu Map from Functional Languages
    • Nushell operator map
  • Design Notes
    • How Nushell Code Gets Run
  • (Not So) Advanced
    • Standard Library (Preview)
    • Dataframes
    • Metadata
    • Creating Your Own Errors
    • Parallelism
    • Plugins
    • explore

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.

NushellSQL.Net LINQ (C#)PowerShell (without external modules)Bash
aliasaliasalias
appendAppend-Append
math avgavgAverageMeasure-Object, measure
Operators and mathMath operatorsAggregate, Average, Count, Max, Min, Sumbc
cdSet-Location, cdcd
clear
Ctrl/⌘+L
Clear-Host
Ctrl/⌘+L
clear
Ctrl/⌘+L
config
$nu.default-config-dir
$Profile~/.bashrc, ~/.profile
cpCopy-Item, cp, copycp
dateNOW(), getdate()DateTime classGet-Datedate
du
ls --du
du
eachCursorsForEach-Object, foreach, forfor
exit
Ctrl/⌘+D
exit
Ctrl/⌘+D
exit
Ctrl/⌘+D
httpHttpClient, WebClient, HttpWebRequest/ResponseInvoke-WebRequestwget, curl
firsttop, limitFirst, FirstOrDefaultSelect-Object -Firsthead
format, strString.FormatString.Formatprintf
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.IsNullOrEmptyString.IsNullOrEmpty
killStop-Process, killkill
lastLast, LastOrDefaultSelect-Object -Lasttail
str stats
length
str length
countCountMeasure-Object, measurewc
linesFile.ReadAllLines
lsGet-ChildItem, dir, lsls
mkdirmkdir, md, New-Item -ItemType Directorymkdir
mvMove-Item, mv, move, mimv
openGet-Content, gc, cat, typecat
printprint, union allWrite-Output, writeecho, print
transposepivot
psGet-Process, ps, gpsps
pwdGet-Location, pwdpwd
range (command)limit x offset y, rownumberElementAt[x], indexing operator, ElementAt
range (type)Range1..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 redirection
selectselectSelectSelect-Object, select
shuffleRandomSort-Object {Get-Random}
skipwhere row_number()SkipSelect-Object -Skip
skip untilSkipWhile
skip whileSkipWhile
sort-byorder byOrderBy, OrderByDescending, ThenBy, ThenByDescendingSort-Object, sortsort
strString functionsString classString class
str joinconcat_wsJoinJoin-String
str trimrtrim, ltrimTrim, TrimStart, TrimEndTrim
math sum``sum`SumMeasure-Object, measure
uname
sys host
Get-ComputerInfouname
sys disksGet-ComputerInfolsblk
sys memGet-ComputerInfofree
tableFormat-Table, ft, Format-List, fl
taketop, limitTakeSelect-Object -Firsthead
take untilTakeWhile
take whileTakeWhile
timeitMeasure-Commandtime
toExport/ConvertTo-{Csv,Xml,Html,Json}
touchSet-Contenttouch
uniqdistinctDistinctGet-Unique, guuniq
updateForEach-Object
upsertAsForEach-Object
versionselect @@version$PSVersionTable
$env.FOO = "bar"
with-env
$env:FOO = 'bar'export FOO "bar"
wherewhereWhereWhere-Object, where, ? operator
whichGet-Commandwhich
Edit this page on GitHub
Contributors: Carson Black, Ibraheem Ahmed, Jonathan Turner, JTurtle, Benjamin Kane, Hristo Filaretov, JT, fdncred, Reilly Wood, Aaron Christiansen, Justin Ma, merelymyself, Zhora Trush, Dan Davison, Leon, Filip Andersson, Bergi, Tamnac, Andy Hall, Ian Manske, NotTheDr01ds
Prev
Coming from CMD.EXE
Next
Nu Map from Imperative Languages