DEV Community

shun
shun

Posted on

System Operations in Windows

Performing system operations is a crucial part of managing a Windows system. Here are some essential commands for handling system operations.

tasklist: Display currently active processes

  • Basic usage:
  C:\> tasklist
Enter fullscreen mode Exit fullscreen mode

taskmgr: Real-time Process Monitoring

  • Basic usage:
  C:\> taskmgr
Enter fullscreen mode Exit fullscreen mode

This will open the Task Manager GUI where you can monitor and manage processes.

taskkill: Terminate Processes

  • Basic usage (using process ID):
  C:\> taskkill /PID [process_id]
Enter fullscreen mode Exit fullscreen mode
  • Terminate a process by its name:
  C:\> taskkill /IM [process_name]
Enter fullscreen mode Exit fullscreen mode

For example, to kill a process named "notepad.exe":

```bash
C:\> taskkill /IM notepad.exe
```
Enter fullscreen mode Exit fullscreen mode

shutdown: Shutdown or restart the system

  • Shutdown immediately:
  C:\> shutdown /s /t 0
Enter fullscreen mode Exit fullscreen mode
  • Reboot immediately:
  C:\> shutdown /r /t 0
Enter fullscreen mode Exit fullscreen mode
  • Shutdown with a message:
  C:\> shutdown /s /t 600 /c "System will shutdown in 10 minutes"
Enter fullscreen mode Exit fullscreen mode

This will shut down the system in 10 minutes and display the provided message.

Understanding these system operation commands is essential for effectively managing and maintaining a Windows system.

Top comments (0)