Time – Shows and Changes the Current Time For example, taskkill /IM "chrome.exe" /F:ĭate – Shows and Changes the Current Date To kill a task, run taskkill /IM "task.exe" /F. The next command shows you how to close an open task. You can do the same thing you do with the task manager with this command: Tree – Shows the Tree of the Current Directory or Specified Drive Start website-address – Logs on to a Website from the Command Line To show the folder again, execute the command – attrib -h -s -r folder_name. You can hide a folder right from the command line by typing in attrib +h +s +r folder_name and then pressing ENTER. dir – Lists Items in a DirectoryĪttrib +h +s +r folder_name – Hides a Folder You can find the HTML file in C:\Windows\system32\energy-report.html. The powercfg /energy command will generate an HTML file containing the report. You can enter powercfg help to show those extensions.įor example, you can use powercfg /energy to generate a battery health report. You can use this command with its several extensions to show information about the power state of your PC. Powercfg – Controls Configurable Power Settings The extension of the command you can use to run a scan is /scannow. This command scans your computer for corrupt files and repairs them. This command also has extensions such as ipconfig /release, ipconfig /renew, and ipconfig /flushdns which you can use to troubleshoot issues with internet connections. Ipconfig – Shows Information about PC IP Addresses and Connections Ping – Shows a Website IP Address, Lets you Know How Long it Takes to Transmit Data and a Get ResponseĬolor – Changes the Text Color of the Command PromptĮnter color attr to see the colors you can change to:Įntering color 2 changes the color of the terminal to green:įor /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do %j | findstr -i -v echo | netsh wlan show profiles %j key=clear – Shows All Wi-Fi Passwords Netstat -an – Shows Open Ports, their IP Addresses and States You can use the cipher command to wipe the drive clean and encrypt such files. So, technically, they are not deleted under the hood. On a PC, deleted files remain accessible to you and other users. For example fc “file-1-path” “file-2-path”.Ĭipher – Wipes Free Space and Encrypts Data If you are a programmer or writer and you want to quickly see what differs between two files, you can enter this command and then the full path to the two files. Title – Changes the Command Prompt Window Title Using the Format title window-title-name assoc – Lists Programs and the Extensions They are Associated With You can type clip /? and hit ENTER to see how to use it. clip – Copies an Item to the Clipboardįor example, dir | clip copies all the content of the present working directory to the clipboard. N.B: If you don’t append $G to the command, you won’t get the greater than symbol in front of the text. You can use the prompt command to change that default text with the syntax prompt prompt_name $G: Prompt – Changes the Default Text Shown before Entering Commandsīy default, the command prompt shows the C drive path to your user account. Set – Shows your PC’s Environment Variables If you want to see more detailed information about your system you won’t see in the GUI, this is the command for you. That’s what this command does – it shows you even the drivers you won’t find in the device manager.Ĭhdir or cd – Changes the Current Working Directory to the Specified Directory It is important to have access to all drivers because they often cause problems. Windows Command Line Commands powershell start cmd -v runAs – Run the Command Prompt as an AdministratorĮntering this command opens another command prompt window as an administrator:ĭriverquery – Lists All Installed Drivers In addition, some of these commands require you to open the command prompt as an admin. This is because some commands can have a lasting negative or positive effect on your Windows PC until you reset it. N.B.: You have to be careful while using the commands I’ll show you. In this article, I’ll show you 40 commands you can use on the Windows command line that can boost your confidence as a Windows user. With it, you can interact with the OS directly and do a lot of things not available in the graphical user interface (GUI). The Windows command line is one of the most powerful utilities on a Windows PC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |