Command Reference

Complete reference of all available commands in Macbrew terminal emulator.

File Operations

Basic File Commands

CommandDescriptionUsage
lsList directory contentsls [options] [path]
cdChange directorycd [directory]
pwdPrint working directorypwd
catConcatenate and display filescat [file]
echoDisplay a line of textecho [text]
mkdirCreate directoriesmkdir [directory]
rmRemove files/directoriesrm [file/directory]
cpCopy files/directoriescp [source] [destination]
mvMove/rename files/directoriesmv [source] [destination]

Advanced File Operations

CommandDescriptionUsage
findFind files by criteriafind [path] [criteria]
grepSearch text patternsgrep [pattern] [file]
chmodChange file permissionschmod [mode] [file]
chownChange file ownerchown [user] [file]
chgrpChange file groupchgrp [group] [file]
lnCreate linksln [source] [link]
touchCreate empty filestouch [file]
fileDetermine file typefile [file]
statDisplay file statusstat [file]

Text Processing

CommandDescriptionUsage
headDisplay first lineshead [options] [file]
tailDisplay last linestail [options] [file]
sortSort linessort [options] [file]
uniqRemove duplicate linesuniq [options] [file]
cutExtract sectionscut [options] [file]
pasteMerge linespaste [options] [file1] [file2]
trTranslate characterstr [options] [set1] [set2]
sedStream editorsed [options] [script] [file]
awkPattern scanningawk [options] [program] [file]
wcWord countwc [options] [file]

System Administration

Process Management

CommandDescriptionUsage
psProcess statusps [options]
topProcess monitortop [options]
htopInteractive process viewerhtop [options]
killTerminate processeskill [signal] [pid]
pkillKill by namepkill [options] [pattern]
nohupRun immune to hangupsnohup [command]
niceRun with prioritynice [options] [command]
reniceChange priorityrenice [priority] [pid]

System Services

CommandDescriptionUsage
systemctlControl systemdsystemctl [command] [service]
serviceControl servicesservice [service] [command]
initProcess controlinit [runlevel]
systemd-analyzeAnalyze bootsystemd-analyze [options]

User Management

CommandDescriptionUsage
useraddAdd useruseradd [options] [username]
userdelDelete useruserdel [options] [username]
usermodModify userusermod [options] [username]
passwdChange passwordpasswd [username]
groupaddAdd groupgroupadd [options] [groupname]
groupdelDelete groupgroupdel [groupname]
idUser identityid [username]
whoShow logged userswho [options]
wShow user activityw [options]

Disk Management

CommandDescriptionUsage
dfDisk spacedf [options] [path]
duDirectory usagedu [options] [path]
mountMount filesystemmount [options] [device] [path]
umountUnmount filesystemumount [options] [path]
fdiskPartition tablefdisk [options] [device]
partedPartition editorparted [options] [device]
mkfsMake filesystemmkfs [options] [device]
fsckCheck filesystemfsck [options] [device]

Networking

Network Diagnostics

CommandDescriptionUsage
pingTest connectivityping [options] [host]
ping6IPv6 pingping6 [options] [host]
tracerouteTrace routetraceroute [options] [host]
mtrNetwork diagnosticmtr [options] [host]
nslookupDNS lookupnslookup [host]
digDNS querydig [options] [host]
hostDNS lookuphost [options] [host]

Network Information

CommandDescriptionUsage
ifconfigInterface configifconfig [interface]
ipIP utilityip [object] [command]
netstatNetwork statisticsnetstat [options]
ssSocket statisticsss [options]
routeRouting tableroute [options]
arpARP tablearp [options]

Network Tools

CommandDescriptionUsage
curlTransfer datacurl [options] [url]
wgetRetrieve fileswget [options] [url]
sshSecure shellssh [options] [user@]host
scpSecure copyscp [options] [source] [destination]
rsyncRemote syncrsync [options] [source] [destination]
telnetTelnet clienttelnet [host] [port]
ncNetcatnc [options] [host] [port]
socatMultipurpose relaysocat [options] [address1] [address2]

Network Analysis

CommandDescriptionUsage
nmapNetwork scannernmap [options] [target]
tcpdumpPacket analyzertcpdump [options] [expression]
wiresharkNetwork protocol analyzerwireshark [options]
iftopNetwork monitoriftop [options]
nethogsNetwork usagenethogs [options]
iotopI/O monitoriotop [options]

Security & Cryptography

Hashing

CommandDescriptionUsage
md5sumMD5 hashmd5sum [file]
sha1sumSHA1 hashsha1sum [file]
sha256sumSHA256 hashsha256sum [file]
sha512sumSHA512 hashsha512sum [file]
cksumChecksumcksum [file]

Encryption

CommandDescriptionUsage
opensslSSL/TLS toolkitopenssl [command] [options]
gpgGNU Privacy Guardgpg [options] [command]
base64Base64 encodingbase64 [options] [file]
hexdumpHex dumphexdump [options] [file]
xxdHex dumpxxd [options] [file]

SSH Management

CommandDescriptionUsage
ssh-keygenGenerate SSH keysssh-keygen [options]
ssh-copy-idCopy SSH keyssh-copy-id [options] [user@]host
ssh-addAdd SSH keyssh-add [options] [key]
ssh-agentSSH agentssh-agent [options]

Package Management

Homebrew

CommandDescriptionUsage
brewHomebrew package managerbrew [command] [package]
brew installInstall packagebrew install [package]
brew uninstallRemove packagebrew uninstall [package]
brew searchSearch packagesbrew search [query]
brew updateUpdate Homebrewbrew update
brew upgradeUpgrade packagesbrew upgrade [package]
brew listList packagesbrew list
brew infoPackage infobrew info [package]

Python Package Management

CommandDescriptionUsage
pipPython package installerpip [command] [package]
pip installInstall packagepip install [package]
pip uninstallRemove packagepip uninstall [package]
pip listList packagespip list
pip freezeFreeze requirementspip freeze
condaConda package managerconda [command] [package]
conda installInstall packageconda install [package]
conda createCreate environmentconda create -n [env] [packages]

Node.js Package Management

CommandDescriptionUsage
npmNode package managernpm [command] [package]
npm installInstall packagenpm install [package]
npm uninstallRemove packagenpm uninstall [package]
npm listList packagesnpm list
npm updateUpdate packagesnpm update
yarnYarn package manageryarn [command] [package]
yarn addAdd packageyarn add [package]
yarn removeRemove packageyarn remove [package]

DevOps & Cloud

Container Management

CommandDescriptionUsage
dockerDocker container platformdocker [command] [options]
docker runRun containerdocker run [options] [image]
docker psList containersdocker ps [options]
docker imagesList imagesdocker images [options]
docker buildBuild imagedocker build [options] [path]
kubectlKubernetes CLIkubectl [command] [resource]
kubectl getGet resourceskubectl get [resource]
kubectl applyApply configurationkubectl apply -f [file]
helmKubernetes package managerhelm [command] [release]

Infrastructure as Code

CommandDescriptionUsage
terraformInfrastructure automationterraform [command]
terraform initInitializeterraform init
terraform planPlan changesterraform plan
terraform applyApply changesterraform apply
ansibleAutomation toolansible [options] [pattern]
ansible-playbookRun playbookansible-playbook [playbook]
puppetConfiguration managementpuppet [command] [options]
chefConfiguration managementchef [command] [options]

Text Editors

Command Line Editors

CommandDescriptionUsage
vimVi improvedvim [file]
nanoNano editornano [file]
emacsEmacs editoremacs [file]
edLine editored [file]

Pagers

CommandDescriptionUsage
lessFile pagerless [options] [file]
moreFile pagermore [options] [file]
mostFile pagermost [options] [file]

Compression & Archives

File Compression

CommandDescriptionUsage
gzipCompress filesgzip [options] [file]
gunzipDecompress filesgunzip [options] [file]
bzip2Compress filesbzip2 [options] [file]
bunzip2Decompress filesbunzip2 [options] [file]
xzCompress filesxz [options] [file]
unxzDecompress filesunxz [options] [file]

Archive Management

CommandDescriptionUsage
tarTape archivetar [options] [file] [files]
zipCreate archivezip [options] [archive] [files]
unzipExtract archiveunzip [options] [archive]
7z7-Zip archiver7z [command] [archive] [files]
rarRAR archiverrar [command] [archive] [files]
unrarExtract RARunrar [command] [archive]

Logging & Monitoring

System Logs

CommandDescriptionUsage
dmesgKernel messagesdmesg [options]
journalctlSystemd journaljournalctl [options]
logwatchLog analysislogwatch [options]
rsyslogSystem loggingrsyslog [options]
logrotateLog rotationlogrotate [options] [config]

Terminal Multiplexing

Session Management

CommandDescriptionUsage
screenTerminal multiplexerscreen [options] [command]
tmuxTerminal multiplexertmux [command] [options]
byobuTerminal multiplexerbyobu [command] [options]

Macbrew Specific Commands

Plugin Management

CommandDescriptionUsage
pluginsPlugin managementplugins [command]
plugins listList pluginsplugins list
install-pluginInstall plugininstall-plugin [name]
uninstall-pluginRemove pluginuninstall-plugin [name]
enable-pluginEnable pluginenable-plugin [name]
disable-pluginDisable plugindisable-plugin [name]

Configuration

CommandDescriptionUsage
configConfiguration managementconfig [command] [key] [value]
config getGet settingconfig get [key]
config setSet settingconfig set [key] [value]
config listList settingsconfig list
config resetReset to defaultsconfig reset

Built-in Utilities

CommandDescriptionUsage
aliasManage aliasesalias [name='value']
unaliasRemove aliasunalias [name]
exportSet environmentexport [name=value]
unsetUnset variableunset [name]
envShow environmentenv
historyCommand historyhistory [options]
clearClear screenclear
exitExit shellexit [code]

Getting Help

Help Commands

CommandDescriptionUsage
helpBuilt-in helphelp [command]
manManual pagesman [section] [topic]
infoInfo pagesinfo [topic]
aproposSearch man pagesapropos [keyword]
whatisOne-line descriptionwhatis [command]

Examples

Common Workflows

File Management:

# Create and navigate to directory
mkdir myproject && cd myproject

# Create files
touch README.md script.py

# List with details
ls -la

# View file content
cat README.md

Process Management:

# Check running processes
ps aux | grep python

# Monitor system resources
top

# Kill process by PID
kill -9 12345

Network Operations:

# Test connectivity
ping google.com

# Download file
curl -O https://example.com/file.zip

# SSH to server
ssh user@server.com

Package Management:

# Install with Homebrew
brew install python

# Install Python package
pip install requests

# Install Node.js package
npm install express

Next Steps