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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay