10 Command Prompt Tricks You Should Try in Windows 11

9. Delete Temporary Files in the Global Folder

To clean up the global temp area in Windows 11 use Command Prompt as Administrator. Once the Command Prompt is open with administrator privileges, enter the following command to delete all the files in the C:\Windows\Temp folder:

del /s /q C:\Windows\Temp\*

Command Explanation:

  • del: Command to delete the file.
  • /s: Deletes files from all subfolders in the Temp folder.
  • /q: Executes the command without asking for confirmation for each deleted file.

10. Copying Command Results to the Clipboard

If you want to copy the results of commands to the Clipboard in Windows 11 without saving them to a text file, you can do so easily.

To copy the result of the ipconfig /all command to the Clipboard, use this command:

ipconfig /all | clip

Command Explanation:

  • ipconfig /all: This command shows complete information about the network settings on your computer.
  • |: This operator is used to redirect the result of the previous command (i.e. ipconfig /all) to the next command.
  • clip: This command will copy the received results to the Windows Clipboard.

Conclusion

Using Command Prompt in Windows 11 can give you full control over the operating system. With the above commands, you can increase efficiency and complete many tasks faster.

Latest Articles