21 Perintah CMD Yang Harus Diketahui Semua Pengguna Windows

21 Perintah CMD Yang Harus Diketahui Semua Pengguna Windows

21 Perintah CMD Yang Harus Diketahui Semua Pengguna Windows.

 21 Perintah CMD Yang Harus Diketahui Semua Pengguna Windows



Prompt perintah Windows adalah fitur yang telah menjadi bagian inti dari sistem operasi Windows untuk waktu yang lama. Ada beberapa perintah CMD yang sangat berguna dan mudah digunakan sehingga bahkan pengguna biasa melihat command prompt Windows sebagai bagian penting dari sistem operasi.


Selalu ada desas-desus bahwa itu akan dihapus di beberapa titik, tetapi itu tidak mungkin terjadi dalam waktu dekat.

Daftar isi


Berikut ini adalah 21 perintah CMD terbaik yang harus Anda ketahui jika Anda ingin memiliki kontrol lebih besar atas PC Windows Anda.


1. ASSOC: Perbaiki Asosiasi File


Salah satu alat paling kuat di pustaka perintah CMD adalah perintah ASSOC.


Komputer Anda mengaitkan ekstensi file tertentu dengan program tertentu. Beginilah cara komputer Anda mengetahui untuk membuka Adobe saat Anda mengklik dua kali file PDF, atau Microsoft Word saat Anda mengklik dua kali file DOC.


Anda dapat melihat semua asosiasi file yang diketahui komputer Anda dengan mengetik ASSOC di jendela perintah. Anda akan melihat ekstensi file dan program yang terkait dengannya.


Anda dapat mengatur asosiasi dengan mengetikkan sesuatu seperti assoc .doc=Word.Document.8.


2. FC: Perbandingan File


Terkadang ketika file diubah dari waktu ke waktu, sulit untuk mengingat apa perbedaan antar versi. Anda mungkin tidak tahu bahwa perintah CMD menawarkan kemampuan untuk membandingkan file dan melihat semua perbedaan, tetapi itu benar.


Perintah FC melakukan perbandingan file ascii atau biner dan akan mencantumkan semua perbedaan yang ditemukannya.


Fc /a File1.txt File2.txt akan membandingkan dua file ascii.

Fc /b Picture1.jpg Picture2.jpg akan melakukan perbandingan biner pada dua gambar.


3. IPCONFIG: Konfigurasi IP


Pemecahan masalah jaringan tidak pernah sederhana, tetapi satu perintah yang membuatnya lebih mudah adalah IPCONFIG.


Menggunakan perintah ini di command prompt CMD mengembalikan informasi rinci tentang koneksi adaptor jaringan Anda saat ini termasuk:

  * Alamat IP Saat Ini

  * Subnetmask

  * IP Gerbang Default

  * Domain saat ini


Informasi ini dapat membantu Anda memecahkan masalah router dan masalah koneksi lain yang mungkin Anda alami dengan adaptor jaringan Anda.


4. NETSTAT: Statistik Jaringan


Khawatir bahwa Anda dapat menjalankan malware di komputer Anda yang terhubung ke lokasi internet tanpa Anda sadari?


Jika Anda menjalankan perintah NETSTAT di prompt perintah, Anda bisa mendapatkan daftar semua koneksi TCP aktif dari komputer Anda.


5. PING: Kirim Paket Tes


Sahabat Analis TI adalah perintah PING. Menjalankan perintah ini mengirimkan paket uji melalui jaringan ke sistem target.


Anda dapat menggunakan perintah PING untuk menguji apakah komputer Anda dapat mengakses komputer lain, server, atau bahkan situs web. Ini dapat membantu dengan mengungkapkan pemutusan jaringan. Ini juga menyediakan waktu transit untuk paket dalam milidetik, sehingga juga menunjukkan koneksi jaringan yang buruk.


6. TRACERT: Rute Jejak


TRACERT adalah Perintah Windows yang menarik untuk digunakan. Jika Anda penasaran untuk melihat jalur yang diambil lalu lintas internet Anda dari browser Anda ke sistem jarak jauh seperti server Google, Anda dapat menggunakan TRACERT untuk melihatnya.

The command stands for “Trace Route”, which sends packets out to a remote destination (server or website), and provides you with all of the following information:

  * Number of hops (intermediate servers) before getting to the destination

  * Time it takes to get to each hop

  * The IP and sometimes the name of each hop


TRACERT can reveal how the routes of your internet requests change depending where you’re accessing the web. It also helps with troubleshooting a router or switch on a local network that may be problematic.


7. POWERCFG: Power Configuration


Are you frustrated with how quickly your laptop seems to run out of power? It could be that your power settings are configured as efficiently as possible. There’s a windows CMD command called POWERCFG (power configuration) that can help. Run the command prompt as an administrator and type powercfg – energy to get a full power efficiency report.


The process can take up to about a minute, but when it’s done, you’ll see whether there are any warnings or errors that might help you improve the power efficiency of your system.


View the energy-report.html file to see the details of those errors and warnings.


8. SHUTDOWN: Turn Off Computer


The SHUTDOWN command is a pretty versatile command that lets you shutdown the computer but control the behavior of that shutdown. It’s commonly used as a scheduled task or part of an IT batch job after patches have been applied to a computer system.


Typing shutdown /i from the command prompt will initiate a shutdown, but it’ll upon a GUI to give the user an option on whether to restart or do a full shutdown. If you don’t want to have any GUI pop up, you can just issue a shutdown /s command.


There is a long list of other parameters you can use to do a log off, hibernate, restart, and more. Just type shutdown without any arguments to see them all.


9. SYSTEMINFO: System Information


If you need to know what brand of network card you have, processor details, or the exact version of your Windows OS, the SYSTEMINFO command can help.


This command polls your system and pulls the most important information about your system. It lists the information in a clean format that’s easy to read.


10. SFC: System File Checker


If you’re ever concerned that a virus or some other software might have corrupted your core system files, there’s a Windows command that can scan those files and ensure their integrity.


You need to launch CMD as administrator (right click and choose Run as Administrator). Typing SFC /SCANNOW will check the integrity of all protected system files. If a problem is found, the files will be repaired with backed-up system files.


The SFC command also lets you:

  * /VERIFYONLY: Check the integrity but don’t repair the files.

  * /SCANFILE: Scan the integrity of specific files and fix if corrupted.

  * /VERIFYFILE: Verify the integrity of specific files but don’t repair them.

  * /OFFBOOTDIR: Use this to do repairs on an offline boot directory.

  * /OFFWINDIR: Use this to do repairs on an offline Windows directory.

  * /OFFLOGFILE: Specify a path to save a log file with scan results.


The scan can take up to 10 or 15 minutes, so give it time.


11. NET USE: Map drives


If you want to map a new drive, you could always open File Explorer, right click on This PC, and go through the Map Network Drive wizard. However, using the NET USE command, you can do the same thing with one command string.


For example, if you have a share folder on a computer on your network called \\OTHER-COMPUTER\SHARE\, you can map this as your own Z: drive by typing the command:


Net use Z: “\\OTHER-COMPUTER\SHARE” /persistent:yes


The persistent switch tells your computer that you want this drive remapped every time you log back into your computer.


12. CHKDSK: Check Disk


While the SFC command only checks the integrity of core system files, you can use the CHKDSK command to scan an entire drive.


The command to check the C: drive and repair any problems, launch the command window as an administrator and type CHKDSK /f C:.


This command checks for things like:

  * File fragmentation

  * Disk errors

  * Bad sectors


The command can fix any disk errors (if possible). When the command is finished, you’ll see a status of the scan and what actions were taken.


13. SCHTASKS: Schedule Tasks


Windows comes with a wizard for creating scheduled tasks. For example, maybe you have a BAT file stored on C:\temp that you want to run every day at noon.


You’d have to click through the Scheduled Task wizard to configure this. Or you can type a single SCHTASKS command to set it up.


SCHTASKS /Create /SC HOURLY /MO 12 /TR Example /TN c:\temp\File1.bat


The scheduled switch accepts arguments like minute, hourly, daily, and monthly. Then you specify the frequency with the /MO command.


If you typed the command correctly, you’ll see the response, SUCCESS: The scheduled task “Example” has successfully been created.


14. ATTRIB: Change File Attributes


In Windows, you can change file attributes by right clicking on a file and finding the right property to change. However, instead of hunting around for the file attribute, you can use the ATTRIB command to set the file attributes.


For example, if you type: ATTRIB +R +H C:\temp\File1.bat, it’ll set File1.bat as a hidden, read-only file.


There is no response when it’s successful, so unless you see an error message, the command worked.


Other Windows CMD Commands


As you can see, there are some powerful and useful things you can do with the Windows command prompt, if you know the right commands.


Believe it or not, there are even more commands that will give you the ability to do some things you probably never realized just by typing a simple command.

  * BITSADMIN: Initiate upload or download jobs over the network or internet and monitor the current state of those file transfers.

  * COLOR: Change the background color of the command prompt window.

  * COMP: Compare the contents of any two files to see the differences.

  * FIND/FINDSTR: Search for strings inside of any ASCII files.

  * PROMPT: Change the command prompt from C:\> to something else.

  * TITLE: Change the title of the command prompt window.

  * REGEDIT: Edit keys in the Windows registry (use with caution).

  * ROBOCOPY: A powerful file copy utility built right into Windows.


If you’re interested in learning more, Microsoft offers a full list of all of the Windows CMD commands included in the latest version of the Windows OS.



Sekian artikel tentang 21 Perintah CMD Yang Harus Diketahui Semua Pengguna Windows. Baca juga artikel mengenai 4 Alat Pembandingan Tablet dan Smartphone yang Berguna yang mungkin perlu Sobat ketahui.

Lebih baru Lebih lama