Essential Windows Commands: A Step-by-Step Tutorial

0

  


Windows Basic Commands

 

cd = Change directory


cd .. = Go back to the previous directory cd / = Go to the root partition

dir = Show files and folders

 

. = Indicate hidden files

 

dir /ad = Show only directories dir /a-d = Show only files

md ts = Create a directory named ts mkdir ts = Create a directory named ts

mkdir d1 d2 d3 = Create three directories named d1, d2, d3 rmdir d1 d2 d3 = Delete directories d1, d2, d3

cp file.txt file2.txt = Copy file.txt to file2.txt

 

xcopy file.txt "path_name" = Copy file.txt to the specified path del info.txt = Delete the file info.txt

mv file.txt file2.txt = Move or rename file.txt to file2.txt move info.txt "ts" = Move info.txt to the directory ts

ren file1.txt file2.txt = Rename file1.txt to file2.txt tasklist = List running tasks

taskkill /pid 9716 = Kill the task with process ID 9716 calc = Open the calculator

cls = Clear the screen

 

driverquery = List installed and missing drivers

 

netsh advfirewall set all state off = Turn off the firewall netsh advfirewall set all state on = Turn on the firewall wmic cpu = Get CPU information

wmic nic get macaddress = Get MAC address information


wmic process list brief = List all processes winver = Check Windows version

chkdisk = Check disk getmac = Get MAC address diskpart -list disk = List disks

lusrmgr.msc = Open Windows user management tool net user = Check all users

net user hacker 123456 /add = Add user 'hacker' with password '123456' net user hacker /del = Delete user 'hacker'

cipher /e = Encrypt files cipher /d = Decrypt files attrib +h +r +s = Hide files attrib -h -r -s = Unhide files

netsh wlan show profiles = Show all Wi-Fi profiles netsh wlan show all = Show all network information

netsh wlan show profile blackhat key=clear = Show Wi-Fi password for 'blackhat' profile netsh wlan delete profile name=blackhat = Delete Wi-Fi profile 'blackhat'

netstat -e = Check data usage

 

nslookup google.com = Get IP address of google.com color 0c = Change console color to red

hostname = Display the hostname of the computer




Post a Comment

0Comments

"Please keep your comments respectful and on-topic."
"Your email address will not be published."
"HTML tags are not allowed in comments."
"Spam comments will be deleted."

Post a Comment (0)