0% found this document useful (0 votes)
29 views1 page

PowerShell Linux Command CheatSheet

This document provides a cheat sheet of essential PowerShell and Linux terminal commands. It includes commands for managing IP addresses, services, processes, and system information for both environments. Each command is listed with its corresponding function for quick reference.

Uploaded by

itsparagp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

PowerShell Linux Command CheatSheet

This document provides a cheat sheet of essential PowerShell and Linux terminal commands. It includes commands for managing IP addresses, services, processes, and system information for both environments. Each command is listed with its corresponding function for quick reference.

Uploaded by

itsparagp
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

PowerShell & Linux Terminal Command Cheat Sheet

PowerShell Commands

1. Get IP Address: Get-NetIPAddress

2. Release IP: Remove-NetIPAddress

3. Renew IP: New-NetIPAddress

4. Flush DNS: Clear-DnsClientCache

5. List Services: Get-Service

6. Start Service: Start-Service -Name "servicename"

7. Stop Service: Stop-Service -Name "servicename"

8. List Processes: Get-Process

9. Kill Process: Stop-Process -Name "processname"

10. System Info: Get-ComputerInfo

Linux Terminal Commands

1. Show IP Address: ip addr show or ifconfig

2. Release/Renew IP (DHCP): sudo dhclient -r && sudo dhclient

3. Flush DNS: sudo systemd-resolve --flush-caches

4. List Services: systemctl list-units --type=service

5. Start Service: sudo systemctl start servicename

6. Stop Service: sudo systemctl stop servicename

7. List Processes: ps aux

8. Kill Process: kill -9 PID

9. System Info: uname -a or lsb_release -a

10. Check Disk Space: df -h

You might also like