Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Comparison of operating systems
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Commands == For [[POSIX]] compliant (or partly compliant) systems like [[FreeBSD]], [[Linux]], [[macOS]] or [[Solaris (operating system)|Solaris]], the basic commands are the same because they are standardized. {| class="wikitable" style="font-size: smaller; text-align: center; width: auto;" |- ! scope="col" | Feature ! scope="col" | [[AROS]] ! scope="col" | [[FreeBSD]] ! scope="col" | [[Linux|Linux-based]] ! scope="col" | [[HP-UX]] ! scope="col" | [[OpenVMS]] ! scope="col" | [[macOS]] ! scope="col" | [[Solaris (operating system)|Solaris]] ! scope="col" | [[Microsoft Windows|Windows]] (cmd) ! scope="col" | Windows ([[PowerShell]]) |- ! scope="row" | List directory | {{mono|list, dir}} | {{mono|ls}} | {{mono|ls}} | {{mono|ls}} | {{mono|dir}} | {{mono|ls}} | {{mono|ls}} | {{mono|dir}} | {{mono|Get-ChildItem}} |- ! scope="row" | Clear console | {{mono|clear}} | {{mono|clear}} | {{mono|clear}} | {{mono|clear}} | {{mono|ty/pa nl}}: | {{mono|clear}} | {{mono|clear}} | {{mono|cls}} | {{mono|Clear-Host}} |- ! scope="row" | Copy file(s) | {{mono|copy}} | {{mono|cp}} | {{mono|cp}} | {{mono|cp}} | {{mono|copy}} | {{mono|cp}} | {{mono|cp}} | {{mono|copy}} | {{mono|Copy-Item}} |- ! scope="row" | Move file(s) | {{mono|move}} | {{mono|mv}} | {{mono|mv}} | {{mono|mv}} | {{mono|ren}} | {{mono|mv}} | {{mono|mv}} | {{mono|move}} | {{mono|Move-Item}} |- ! scope="row" | Rename file(s) | {{mono|rename}} | {{mono|mv}} | {{mono|mv, rename}} | {{mono|mv}} | {{mono|ren}} | {{mono|mv}} | {{mono|mv}} | {{mono|ren (rename}}) | {{mono|Rename-Item}} |- ! scope="row" | Delete file(s) | {{mono|delete}} | {{mono|rm}} | {{mono|rm}} | {{mono|rm}} | {{mono|del}} | {{mono|rm}} | {{mono|rm}} | {{mono|del (erase}}) | {{mono|Remove-Item}} |- ! scope="row" | Delete directory | {{mono|delete}} | {{mono|rmdir}} | {{mono|rmdir}} | {{mono|rmdir}} | {{mono|del}} | {{mono|rmdir}} | {{mono|rmdir}} | {{mono|rd (rmdir}}) | {{mono|Remove-Item}} |- ! scope="row" | Create directory | {{mono|makedir}} | {{mono|mkdir}} | {{mono|mkdir}} | {{mono|mkdir}} | {{mono|create/dir}} | {{mono|mkdir}} | {{mono|mkdir}} | {{mono|md (mkdir}}) | {{mono|New-Item}} |- ! scope="row" | Change current directory | {{mono|cd}}<ref group="c" name="cd"/> | {{mono|cd}} | {{mono|cd}} | {{mono|cd}} | {{mono|set def}} | {{mono|cd}} | {{mono|cd}} | {{mono|cd (chdir}}) | {{mono|Set-Location}} |- ! scope="row" | Run shell script with new shell | {{mono|shell file.shell}} | {{mono|sh file.sh}} | {{mono|sh file.sh}} | {{mono|sh file.sh}} | {{mono|@ file.com}} | {{mono|sh file.sh}} | {{mono|sh file.sh}} | {{mono|cmd /c file.cmd}} | {{mono|powershell file.ps1}} |- ! scope="row" | Kill processes | {{dunno}} | {{mono|kill, killall}} | {{mono|killall, pkill, kill, skill}} | {{mono|kill}} | {{mono|stop}} | {{mono|kill, killall}} | {{mono|kill, pkill}} | {{mono|taskkill}} | {{mono|Stop-Process}} |- ! scope="row" | Change process priority | {{mono|changetaskpri}} | {{mono|nice}} | {{mono|nice, chrt}} | {{mono|nice}} | {{mono|set proc/prio}} | {{mono|nice}} | {{mono|nice}} | {{mono|start /low, start /normal, start /high, start /realtime}} | {{mono|Start-Process, wmic}} |- ! scope="row" | Change [[Input/output|I/O]] priority | {{dunno}} | <ref group="c" name="nice1"/> | {{mono|ionice}} | {{dunno}} | {{mono|set proc/prio}} | {{mono|nice}}<ref group="c" name="nice2"/> | {{dunno}} | {{dunno}} | {{dunno}} |- ! scope="row" | Create file system | {{mono|format}} | {{mono|newfs}} | {{mono|mkfs}} | {{mono|newfs}} | {{mono|init}} | {{mono|mkfs}} | {{mono|newfs, zpool{{\|}}zfs create}} | {{mono|format}} | {{mono|Format-Volume}} |- ! scope="row" | File system check and recovery | {{dunno}} | {{mono|fsck}} | {{mono|fsck}} | {{mono|fsck}} | {{mono|analyze/disk}} | {{mono|fsck}} | {{mono|fsck}} | {{mono|chkdsk}} | {{mono|Repair-Volume}} |- ! scope="row" | Create software raid | {{dunno}} | {{mono|atacontrol, gmirror, zfs create}} | {{mono|mdadm -C}} | {{dunno}} | {{dunno}} | {{mono|diskutil appleRAID}} | {{mono|metainit, zpool create}} | {{mono|diskpart (mirror only}}) | {{mono|diskpart (mirror only}}) |- ! scope="row" | Mount device | {{mono|mount}} | {{mono|mount}} | {{mono|mount}} | {{mono|mount}} | {{mono|mount}} | {{mono|mount, diskutil mount}} | {{mono|mount}} | {{mono|mountvol}} | {{mono|New-PSDrive}} |- ! scope="row" | Unmount device | {{mono|assign drivename: dismount}} | {{mono|umount}} | {{mono|umount}} | {{mono|umount}} | {{mono|dismount}} | {{mono|umount, diskutil unmount(disk}}) | {{mono|umount}} | {{mono|mountvol /d}} | {{mono|Remove-PSDrive}} |- ! scope="row" | Mount file as block device | {{dunno}} | {{mono|mdconfig + mount}} | {{mono|mount -o loop}} | {{dunno}} | {{dunno}} | {{mono|hdid}} | {{mono|lofiadm + mount}} | {{dunno}} | {{dunno}} |- ! scope="row" | Show network configuration | {{dunno}} | {{mono|ifconfig}} | {{mono|ip addr, ifconfig}} | {{mono|ifconfig, lanadmin}} | {{mono|tcpip sh net (sh net}}) | {{mono|ifconfig}} | {{mono|ifconfig}} | {{mono|ipconfig}} | {{mono|Get-NetIPInterface, ipconfig}} |- ! scope="row" | Show network route | {{dunno}} | {{mono|netstat -r, route get, route monitor}} | {{mono|ip route, route}} | {{mono|netstat -r}} | {{mono|tcpip sh route}} | {{mono|netstat -r, route get, route monitor}} | {{mono|netstat -r}} | {{mono|route}} | {{mono|Get-NetRoute}} |- ! scope="row" | Trace network route | {{dunno}} | {{mono|traceroute}} | {{mono|traceroute}} | {{mono|traceroute}} | {{mono|tcptrace}} | {{mono|traceroute}} | {{mono|traceroute}} | {{mono|tracert}} | {{mono|Test-NetConnection}} |- ! scope="row" | Trace network route with pings | {{dunno}} | {{mono|traceroute -I}} | {{mono|traceroute -I, mtr}} | {{dunno}} | {{mono|tcptrace}} | {{mono|traceroute -I}} | {{mono|traceroute -I}} | {{mono|pathping}} | {{mono|pathping}} |- ! scope="col" | Feature ! scope="col" | AROS ! scope="col" | FreeBSD ! scope="col" | Linux-based ! scope="col" | HP-UX ! scope="col" | OpenVMS ! scope="col" | macOS ! scope="col" | Solaris ! scope="col" | Windows (cmd) ! scope="col" | Windows (PowerShell) |} '''NOTE:''' Linux systems may vary by distribution which specific program, or even 'command' is called, via the POSIX {{mono|alias}} function. For example, if you wanted to use the DOS {{mono|dir}} to give you a directory listing with one detailed file listing per line you could use {{code|2=bash|1=alias dir='ls -lahF'}} (e.g. in a session configuration file). {{Reflist|group="c"|refs= <ref name="cd">May be omitted. Simply entering the directory name will change to it.</ref> <ref name="nice1">This feature is still in development, see [http://unix.derkeiler.com/Mailing-Lists/FreeBSD/stable/2009-01/msg00316.html].</ref> <ref name="nice2">The nice command utilizes the setpriority() system call, which affects I/O priority, see [https://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/man2/setpriority.2.html OS X man page] .</ref> }}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)