Command hub

PowerShell Equivalents commands

PowerShell cmdlets mapped to Linux shell commands and pipelines, including process, file, text and JSON workflows.

ArchivesCore CmdletsDiscoveryDisk & StorageEnvironmentFile SystemFilesJSONJobsNetworkingProcessesServicesShell HistorySystem CmdletsText ProcessingUsers & GroupsWeb/API

Distro notes

Debian/Ubuntu vs Fedora vs Arch

PowerShell Equivalents

Debian/Ubuntu apt sudo apt install jq coreutils procps

Most shell equivalents are preinstalled; jq is commonly added for JSON.

Fedora dnf sudo dnf install jq procps-ng coreutils

GNU userland behavior is close to Debian/Ubuntu for these commands.

Arch pacman sudo pacman -S jq procps-ng coreutils

Minimal Arch systems may require installing extras like jq or xclip.

Guides

All PowerShell Equivalents command guides

53 commands

PowerShell Compress-Archive folderzip -r archive.zip folder Archives Compress folder Creates a zip archive from a directory tree. Distro equivalents Debian/Ubuntu zip -r archive.zip folder Fedora zip -r archive.zip folder Arch zip -r archive.zip folder Open full guide → PowerShell Expand-Archive fileunzip archive.zip Archives Extract zip archive Extracts a zip archive. Distro equivalents Debian/Ubuntu unzip archive.zip Fedora unzip archive.zip Arch unzip archive.zip Open full guide → PowerShell Get-Datedate Core Cmdlets Show date and time Prints current date and time. Distro equivalents Debian/Ubuntu date Fedora date Arch date Open full guide → PowerShell Get-Randomshuf -i 1-100 -n 1 Core Cmdlets Generate random number Prints a random number from a range. Distro equivalents Debian/Ubuntu shuf -i 1-100 -n 1 Fedora shuf -i 1-100 -n 1 Arch shuf -i 1-100 -n 1 Open full guide → PowerShell New-Guiduuidgen Core Cmdlets Generate UUID Creates a new UUID/GUID. Distro equivalents Debian/Ubuntu uuidgen Fedora uuidgen Arch uuidgen Open full guide → PowerShell Read-Hostread -r variable Core Cmdlets Read user input Reads a line of input from the terminal. Distro equivalents Debian/Ubuntu read -r variable Fedora read -r variable Arch read -r variable Open full guide → PowerShell Start-Sleepsleep 5 Core Cmdlets Pause execution Sleeps for a number of seconds. Distro equivalents Debian/Ubuntu sleep 5 Fedora sleep 5 Arch sleep 5 Open full guide → PowerShell Write-Hostprintf "%s\n" "text" Core Cmdlets Print text Writes text to standard output. Distro equivalents Debian/Ubuntu printf "%s\n" "text" Fedora printf "%s\n" "text" Arch printf "%s\n" "text" Open full guide → PowerShell Get-Commandcommand -v name Discovery Find command path Checks whether a command exists and where it resolves. Distro equivalents Debian/Ubuntu command -v name Fedora command -v name Arch command -v name Open full guide → PowerShell Get-Helpman command Discovery Read command help Opens the manual page for a command. Distro equivalents Debian/Ubuntu man command Fedora man command Arch man command Open full guide → PowerShell Get-PhysicalDisklsblk -d -o NAME,MODEL,SIZE,ROTA,TRAN Disk & Storage Inspect physical drives Displays physical disks, model names, sizes, transport types and health information. Distro equivalents Debian/Ubuntu lsblk -d -o NAME,MODEL,SIZE,ROTA,TRAN Fedora lsblk -d -o NAME,MODEL,SIZE,ROTA,TRAN Arch lsblk -d -o NAME,MODEL,SIZE,ROTA,TRAN Open full guide → PowerShell Get-Volumelsblk -f Disk & Storage List volumes and filesystems Shows block devices, filesystem types, labels, UUIDs and mount points. Distro equivalents Debian/Ubuntu lsblk -f Fedora lsblk -f Arch lsblk -f Open full guide → PowerShell $env:PATHecho "$PATH" Environment Show PATH variable Prints the executable search path. Distro equivalents Debian/Ubuntu echo "$PATH" Fedora echo "$PATH" Arch echo "$PATH" Open full guide → PowerShell $env:USERPROFILEecho "$HOME" Environment Show home directory Prints the Linux home directory variable. Distro equivalents Debian/Ubuntu echo "$HOME" Fedora echo "$HOME" Arch echo "$HOME" Open full guide → PowerShell Add-Contentprintf "%s " "text" | tee -a file.txt File System Append content to a file Adds new text to the end of an existing file without replacing its current contents. Distro equivalents Debian/Ubuntu printf "%s " "text" | tee -a file.txt Fedora printf "%s " "text" | tee -a file.txt Arch printf "%s " "text" | tee -a file.txt Open full guide → PowerShell Get-FileHashsha256sum filename.iso File System Calculate a file checksum Calculates a cryptographic checksum used to verify downloads and detect file changes. Distro equivalents Debian/Ubuntu sha256sum filename.iso Fedora sha256sum filename.iso Arch sha256sum filename.iso Open full guide → PowerShell Get-Itemstat filename.txt File System Inspect file metadata Displays detailed metadata such as file size, permissions, timestamps, owner and inode number. Distro equivalents Debian/Ubuntu stat filename.txt Fedora stat filename.txt Arch stat filename.txt Open full guide → PowerShell New-Item -ItemType Filetouch filename.txt File System Create an empty file Creates a new empty file or updates an existing file timestamp. Distro equivalents Debian/Ubuntu touch filename.txt Fedora touch filename.txt Arch touch filename.txt Open full guide → PowerShell Resolve-Pathrealpath path/to/file File System Resolve an absolute path Converts a relative path or symbolic link into its normalized absolute path. Distro equivalents Debian/Ubuntu realpath path/to/file Fedora realpath path/to/file Arch realpath path/to/file Open full guide → PowerShell Set-Contentprintf "%s " "text" > file.txt File System Replace file contents Writes new content to a file, replacing the previous contents. Distro equivalents Debian/Ubuntu printf "%s " "text" > file.txt Fedora printf "%s " "text" > file.txt Arch printf "%s " "text" > file.txt Open full guide → PowerShell Test-Pathtest -e path File System Check whether a path exists Tests whether a file, directory or other path exists for use in shell scripts. Distro equivalents Debian/Ubuntu test -e path Fedora test -e path Arch test -e path Open full guide → PowerShell New-TemporaryFilemktemp Files Create temp file Creates a safely named temporary file. Distro equivalents Debian/Ubuntu mktemp Fedora mktemp Arch mktemp Open full guide → PowerShell Test-Jsonjq empty file.json JSON Validate JSON Checks that JSON parses successfully. Distro equivalents Debian/Ubuntu jq empty file.json Fedora jq empty file.json Arch jq empty file.json Open full guide → PowerShell Get-Jobjobs Jobs List shell jobs Lists background jobs in the current shell. Distro equivalents Debian/Ubuntu jobs Fedora jobs Arch jobs Open full guide → PowerShell Receive-Jobwait %1 Jobs Wait for background job Waits for a background job to complete. Distro equivalents Debian/Ubuntu wait %1 Fedora wait %1 Arch wait %1 Open full guide → PowerShell Start-Jobcommand & Jobs Start background job Runs a command in the background. Distro equivalents Debian/Ubuntu command & Fedora command & Arch command & Open full guide → PowerShell Stop-Jobkill %1 Jobs Stop background job Stops a shell background job. Distro equivalents Debian/Ubuntu kill %1 Fedora kill %1 Arch kill %1 Open full guide → PowerShell Invoke-WebRequestcurl -LO URL Networking Download or request web content Makes HTTP requests, downloads files and inspects server responses. Distro equivalents Debian/Ubuntu curl -LO URL Fedora curl -LO URL Arch curl -LO URL Open full guide → PowerShell Get-Processps aux Processes Find running processes Lists running processes or searches for processes by name. Distro equivalents Debian/Ubuntu ps aux Fedora ps aux Arch ps aux Open full guide → PowerShell Start-Processnohup command > output.log 2>&1 & Processes Start a detached process Launches a program in the background and optionally keeps it running after the terminal closes. Distro equivalents Debian/Ubuntu nohup command > output.log 2>&1 & Fedora nohup command > output.log 2>&1 & Arch nohup command > output.log 2>&1 & Open full guide → PowerShell Stop-Processkill PID Processes Stop a process Requests that a process exit or forcefully terminates it when necessary. Distro equivalents Debian/Ubuntu kill PID Fedora kill PID Arch kill PID Open full guide → PowerShell Get-Servicesystemctl list-units --type=service Services List system services Shows loaded services and their current active, inactive or failed state. Distro equivalents Debian/Ubuntu systemctl list-units --type=service Fedora systemctl list-units --type=service Arch systemctl list-units --type=service Open full guide → PowerShell Restart-Servicesudo systemctl restart SERVICE Services Restart a service Stops and starts a systemd service so configuration or runtime state is reloaded. Distro equivalents Debian/Ubuntu sudo systemctl restart SERVICE Fedora sudo systemctl restart SERVICE Arch sudo systemctl restart SERVICE Open full guide → PowerShell Set-Service -StartupTypesudo systemctl enable SERVICE Services Configure startup behavior Controls whether a systemd service starts automatically during boot. Distro equivalents Debian/Ubuntu sudo systemctl enable SERVICE Fedora sudo systemctl enable SERVICE Arch sudo systemctl enable SERVICE Open full guide → PowerShell Start-Servicesudo systemctl start SERVICE Services Start a service Starts a systemd service immediately for the current boot. Distro equivalents Debian/Ubuntu sudo systemctl start SERVICE Fedora sudo systemctl start SERVICE Arch sudo systemctl start SERVICE Open full guide → PowerShell Stop-Servicesudo systemctl stop SERVICE Services Stop a service Stops a running systemd service for the current boot. Distro equivalents Debian/Ubuntu sudo systemctl stop SERVICE Fedora sudo systemctl stop SERVICE Arch sudo systemctl stop SERVICE Open full guide → PowerShell Clear-Historyhistory -c Shell History Clear shell history Clears the current shell history list. Distro equivalents Debian/Ubuntu history -c Fedora history -c Arch history -c Open full guide → PowerShell Get-ComputerInfohostnamectl && uname -a System Cmdlets Show computer information Shows host, OS and kernel details. Distro equivalents Debian/Ubuntu hostnamectl && uname -a Fedora hostnamectl && uname -a Arch hostnamectl && uname -a Open full guide → PowerShell Compare-Objectdiff -u old.txt new.txt Text Processing Compare text files Shows line-by-line differences or compares two already sorted lists. Distro equivalents Debian/Ubuntu diff -u old.txt new.txt Fedora diff -u old.txt new.txt Arch diff -u old.txt new.txt Open full guide → PowerShell ConvertFrom-Jsonjq EXPRESSION file.json Text Processing Read and query JSON Parses JSON and selects fields, array elements or transformed output. Distro equivalents Debian/Ubuntu jq EXPRESSION file.json Fedora jq EXPRESSION file.json Arch jq EXPRESSION file.json Open full guide → PowerShell ConvertTo-Jsonjq -n OBJECT Text Processing Create or transform JSON Builds JSON values or reshapes existing JSON data from the command line. Distro equivalents Debian/Ubuntu jq -n OBJECT Fedora jq -n OBJECT Arch jq -n OBJECT Open full guide → PowerShell ForEach-Objectxargs COMMAND Text Processing Run a command for each input item Consumes a list or stream and runs another command for each item. Distro equivalents Debian/Ubuntu xargs COMMAND Fedora xargs COMMAND Arch xargs COMMAND Open full guide → PowerShell Get-Content -Waittail -f FILE Text Processing Follow a growing file Prints new lines as they are appended to a log or other text file. Distro equivalents Debian/Ubuntu tail -f FILE Fedora tail -f FILE Arch tail -f FILE Open full guide → PowerShell Measure-Objectwc FILE Text Processing Count lines, words and bytes Counts lines, words, bytes or characters in text files and streams. Distro equivalents Debian/Ubuntu wc FILE Fedora wc FILE Arch wc FILE Open full guide → PowerShell Out-Filecommand > output.txt Text Processing Write command output to a file Saves standard output to a file, either replacing or appending to it. Distro equivalents Debian/Ubuntu command > output.txt Fedora command > output.txt Arch command > output.txt Open full guide → PowerShell Select-Stringgrep PATTERN FILE Text Processing Search text patterns Finds lines matching a string or regular expression in files or piped input. Distro equivalents Debian/Ubuntu grep PATTERN FILE Fedora grep PATTERN FILE Arch grep PATTERN FILE Open full guide → PowerShell Tee-Objectcommand | tee output.txt Text Processing Display and save output Copies piped output both to the terminal and to one or more files. Distro equivalents Debian/Ubuntu command | tee output.txt Fedora command | tee output.txt Arch command | tee output.txt Open full guide → PowerShell Where-Objectawk CONDITION Text Processing Filter records Keeps only lines or fields that satisfy a textual or numeric condition. Distro equivalents Debian/Ubuntu awk CONDITION Fedora awk CONDITION Arch awk CONDITION Open full guide → PowerShell Add-LocalGroupMembersudo usermod -aG GROUP USER Users & Groups Add a user to a group Adds an existing user to a supplementary group. Distro equivalents Debian/Ubuntu sudo usermod -aG GROUP USER Fedora sudo usermod -aG GROUP USER Arch sudo usermod -aG GROUP USER Open full guide → PowerShell Get-LocalGroupgetent group Users & Groups List groups Lists local and directory-backed groups known to the system. Distro equivalents Debian/Ubuntu getent group Fedora getent group Arch getent group Open full guide → PowerShell Get-LocalUsergetent passwd Users & Groups List local and directory users Lists user accounts known through local files and configured identity services. Distro equivalents Debian/Ubuntu getent passwd Fedora getent passwd Arch getent passwd Open full guide → PowerShell New-LocalUsersudo useradd -m USER Users & Groups Create a user account Creates a new local Linux user and optionally a home directory and login shell. Distro equivalents Debian/Ubuntu sudo useradd -m USER Fedora sudo useradd -m USER Arch sudo useradd -m USER Open full guide → PowerShell Invoke-RestMethodcurl -s URL | jq . Web/API Call JSON API Fetches an API response and parses JSON. Distro equivalents Debian/Ubuntu curl -s URL | jq . Fedora curl -s URL | jq . Arch curl -s URL | jq . Open full guide →