Important CLI Commands for IT Help Desk Interview
Windows CMD Commands
Command
Description
ipconfig
Shows IP address and network details
ipconfig /all
Detailed IP info (MAC, DNS)
ping [website/IP]
Checks connectivity
tracert [website]
Path packets take
nslookup [domain]
DNS resolution
netstat
Network connections and ports
netsh interface ip show config
IP config details
netsh winsock reset
Resets network settings
tasklist
Lists running processes
taskkill /IM [name].exe /F
Force kills a task
sfc /scannow
Scans system files for errors
chkdsk
Checks disk for errors
shutdown /r /t 0
Restart PC immediately
systeminfo
Hardware/software info
whoami
Current logged-in user
net user
List users
net user [user] [pass] /add
Adds a new user
net localgroup administrators [user] /add
Makes user admin
gpupdate /force
Force group policy update
Linux Basic Commands
Command
Description
Important CLI Commands for IT Help Desk Interview
ifconfig / ip a
Shows IP address and network info
ping [IP/URL]
Tests connectivity
traceroute [domain]
Shows path of packets
sudo
Run as admin
ls
List files
cd
Change directory
pwd
Current directory path
df -h
Disk space usage
top
Running processes
kill [PID]
Kill a process