logoalt Hacker News

The Windows equivalents of the most used Linux commands

57 pointsby elsadekyesterday at 10:25 PM41 commentsview on HN

Comments

voidUpdatetoday at 8:38 AM

> "Author's note: From here on, the content is AI-generated"

Ah, I see, googling the equivalent of "clear" was too much work and you had to get an LLM to do it for you. Well at least you were honest about it

Skywalker13today at 8:58 AM

ridiculous...

Why this entry is in the top 30?

not_a_bot_4shotoday at 4:44 AM

A great non-AI resource on this topic: https://ss64.com/

Akuehnetoday at 1:36 AM

My most used windows command is, and will always be, `ls`.

Then I'm reminded that it's not a know file or directory.

show 3 replies
hackyhackytoday at 2:57 AM

> Author's note: From here on, the content is AI-generated

Kudos to the author for their honesty in admitting AI use, but this killed my interest in reading this. If you can use AI to generate this list, so can anyone. Why would I want to read AI slop?

HN already discourages AI-generated comments. I hope we can extend that to include a prohibition on all AI-generated content.

> Don't post generated comments or AI-edited comments. HN is for conversation between humans.

show 3 replies
malbstoday at 2:17 AM

findstr is an underappreciated command line tool. I use it a lot

flexagoontoday at 5:20 AM

> Finding a specific file by name across the system

> Linux: find / -name "config.txt"

This is not how you find a file across the entire system, you use plocate for that. find would take ages to do what plocate does instantly

show 2 replies
red_admiraltoday at 8:10 AM

which / where is the one that always trips me up.

jmclnxtoday at 1:22 AM

Not bad, but one big criticism, never do a 'kill -9' first, that will stop the program from cleaning up after itself if killed using -9.

Use one of these instead:

    -TERM   then wait, if not
    -INT    then wait, if not
    -HUP    then wait, if not
    -ABRT
If you are sure all of these fail, then use -9 (-KILL). But assume the program has a major bug and try and find another program that will do the same task and use that instead.
show 5 replies
WaterRuntoday at 1:30 AM

I recently had a similar idea. https://github.com/Water-Run/Cmdset

8notetoday at 2:04 AM

ok, but how do i get the only linux command i know?

ctrl+r

show 2 replies
srotttoday at 7:45 AM

less or at least more?

themafiatoday at 3:27 AM

> Windows: netstat -n -a | findstr "https" (//note the double quotes)

netstat works perfectly fine on linux as well. If you're looking for https connections it's certainly far more efficient than 'lsof'.

also if you use '-n' then you're not going to get service names translated, so that probably should be:

netstat -n -a | find "443"

HDBaseTtoday at 4:11 AM

traceroute vs tracert always catches me out.

jpeasetoday at 1:20 AM

CTRL-ALT-DEL?

tpoachertoday at 7:28 AM

Can we do a satirical thread here please? I'm curious what HN can come up with :D

I'll start:

  Linux             : trash-empty 
  windows equivalent: format C:

  Linux             : sudo apt update && sudo apt upgrade
  Windows equivalent: shutdown /r
owlstuffingtoday at 6:01 AM

Not having to run a mess of Linux commands to install software.