Command | Linux Example | PowerShell Example |
---|---|---|
dstat | dstat -ta |
Get-Counter '\Processor(_Total)% Processor Time' |
sar | sar -u 1 10 |
Get-Counter '\Processor(_Total)% Processor Time' |
slurm | sbatch script.sh |
Start-Process powershell.exe -ArgumentList "-File script.ps1" |
vim | vim file.txt |
powershell_ise |
emacs | emacs file.txt |
powershell_ise |
screen | screen -S sessionname |
Start-Process powershell.exe |
dtach | dtach -c /tmp/myapp.sock myapp |
Start-Process powershell.exe |
tmux | tmux new-session -s mysession |
Start-Process powershell.exe |
byobu | byobu new-session -s mysession |
Start-Process powershell.exe |
multitail | multitail -f /var/log/syslog |
Get-Content -Path "C:\Logs\Application.log" -Tail 10 -Wait |
tpp | tpp file.txt |
Out-File -FilePath "file.txt" -Encoding "UTF8" |
xargs | echo "file1.txt file2.txt" | xargs rm |
Get-ChildItem | ForEach-Object { Remove-Item $_.FullName } |
parallel | parallel "command {}" ::: file1.txt file2.txt |
ForEach-Object { Invoke-Expression $_ } Invoke-Expression "command $_" |
duplicity | duplicity /backup scp://[email protected]/backup |
robocopy "C:\Source" "C:\Destination" /E /COPYALL |
rsyncrypto | rsyncrypto -r /source /destination |
robocopy "C:\Source" "C:\Destination" /E /COPYALL |
nethack | nethack |
- |
slash'em | slash'em |
- |
lftp | lftp ftp.example.com |
- |
ack | ack 'searchterm' |
Select-String -Path "C:\Logs\Application.log" -Pattern "searchterm" |
calcurse | calcurse |
- |
remind + wyrd | remind file.rem |
- |
newsbeuter | newsbeuter |
- |
rsstail | rsstail -u https://example.com/feed.xml |
Invoke-WebRequest -Uri "https://example.com/feed.xml" |
powertop | powertop |
- |
htop | htop |
Get-Process |
iotop | iotop |
Get-Process |
ttyrec | ttyrec filename |
- |
ipbt | ipbt filename |
- |
rsync | rsync -avz source_directory/ destination_directory/ |
Copy-Item -Path C:\source_directory -Destination C:\destination_directory -Recurse |
mtr | mtr google.com |
Test-NetConnection google.com -TraceRoute |
socat | socat -d -d TCP-LISTEN:8080,fork TCP:example.com:80 |
- |
netpipes | cat file|netcat localhost 1234 |
- |
iftop | iftop -n |
Get-NetTCPConnection |
iptraf | iptraf-ng |
- |
siege | siege -c 100 -r 10 -f urls.txt |
Invoke-WebRequest -Uri (Get-Content urls.txt) -MaximumRedirection 0 -UseBasicParsing |
tsung | tsung -f tsung.xml start |
- |
ledger | ledger balance |
- |
taskwarrior | task list |
- |
curl | curl -O https://example.com/file.txt |
Invoke-WebRequest -Uri https://example.com/file.txt -OutFile file.txt |
rtorrent | rtorrent |
- |
aria2 | aria2c file.zip |
- |
ttytter | ttytter -ssl -daemon -ansi |
- |
earthquake | earthquake |
- |
vifm | vifm |
- |
ranger | ranger |
- |
cowsay | cowsay "Hello, world!" |
- |
sl | sl |
- |