DEV Community

shun
shun

Posted on

Windows Command Prompt vs Linux Commands

File and Directory Operations

Windows Command Description Linux Command
dir List directory contents ls
cd Change directory cd
mkdir Create a new directory mkdir
rmdir Remove a directory rmdir or rm -r
copy Copy files cp
move Move or rename files mv
del Delete a file rm
type Display contents of a file cat

Text Processing

Windows Command Description Linux Command
find Search in a file grep
sort Sort input sort
more Display output one screen more or less

System Operations

Windows Command Description Linux Command
tasklist List running processes ps
taskkill Kill a process kill
shutdown Shutdown or restart system shutdown

Networking

Windows Command Description Linux Command
ipconfig Display IP configuration ifconfig or ip a
ping Send ICMP echo request ping
netstat Network statistics netstat

Disk Operations

Windows Command Description Linux Command
chkdsk Check disk for errors fsck
diskpart Disk partitioning fdisk or parted
format Format a disk mkfs

Top comments (0)