6. Button Function in Windows 11 Command Line
Function keys (F1 to F12) are helpful in Windows 11’s Command Line, improving efficiency when executing commands. Here is an explanation of the functions of the F1 to F9 keys:
- F1: Repeat the last command, one character at a time.
- F2: Enter the last command until the specified character.
- F3: Repeat the last command in full.
- F4: Delete the character in the last command until the specified character.
- F5: Repeat the last command (without typing).
- F6: Enter the Control-Z character (input end mark).
- F7: View the history of commands that have been executed.
- F8: Search for commands in the history by typed characters.
- F9: Execution of a specific command from the history by number.
Other Interesting Articles
7. View Installed Apps
You can see all the apps installed on your Windows 11 with the following command:
wmic product get name
If the list of apps is too long to display in a command prompt window, you can switch the result to a text file and open it directly with Notepad. Use this command:
wmic product get name > productname.txt && notepad.exe productname.txt
Command Explanation:
- wmic product get name: This command retrieves and displays the names of all the applications installed on the system.
- >: This operator is used to redirect results to a file.
- productname.txt: The name of the text file where the results will be saved.
- && notepad.exe productname.txt: Once the file is created, Notepad will automatically open to display the contents of the file.
8. Delete Temporary Files
If you’re short on storage space, it’s a good idea to clean the Temp folder used by Windows 11 to store temporary data. Here’s how to do it:
del /q /f /s %temp%\*
Command Explanation:
- del: Command to delete the file.
- /q: Executes the command without displaying a confirmation message for each deleted file.
- /f: Forcing deletion of read-only files.
- /s: Deletes files from all subfolders.
- %temp%: A variable that points to the current user’s temporary folder.
- \*: Indicates that all files in the folder will be deleted.
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.