Live data from Hacker News

The Windows equivalents of the most used Linux commands

techkettle.blogspot.com

41–50 of 72 posts

Re: The Windows equivalents of the most used Linux commands

#42
post #5

My most used windows command is, and will always be, `ls`. Then I'm reminded that it's not a know file or directory.

On one our linux machine filesystem became strange, probably because somebody mistyped `ls /bin` as `ln /bin`. I think docs say hardlinking folders is impossible or maybe /bin was a symlink.

Re: The Windows equivalents of the most used Linux commands

#45
Can I just do a shout-out for UnxUtils [1]?

I've had it on every Windows computer I used at work since forever now, and it is extremely useful to be able to use things like `sed` and `gawk` (and even `make`) from the command prompt

[1] https://unxutils.sourceforge.net/

Re: The Windows equivalents of the most used Linux commands

#46
post #45

Can I just do a shout-out for UnxUtils [1]? I've had it on every Windows computer I used at work since forever now, and it is extremely useful to be able to use things like `sed` and `gawk` (and even `make`) from the command prompt [1] https://unxutils.sourceforge.net/

Yuck. Just install WSL and be done with it

Re: The Windows equivalents of the most used Linux commands

#48

Why would you use CMD when Powershell exists?

Because powershell is weird and obtuse? Or because powershell works slightly different in the terminal va the powershell dev environment? Its a tool most of us use under duress rather than choice

Re: The Windows equivalents of the most used Linux commands

#49

Why would you use CMD when Powershell exists?

Its very likely that its just because i have almost no experience with powershell meanwhile i have now ~4-5 years of dailying linux but i just find the powershell commands to be very cumbersome to use. They are wayyy to long and descriptive instead of just 2-4 letters, there are 500 different commands for very specific uses instead of 10 tools that you can use and combine todo almost everything and if i recall correctly (my memory might trick me here tho) the errors are far less readable at a first glance and fill the entire terminal for simple things. CMD meanwhile feels like bash.

Most of my issues with it are probably just skill issues tho since like i said i dont really use or know it alot so i am happy to be corrected :) I mean if every Windows Sysadmin tells me how great powershell is, i cant just assume that they all are wrong (Or maybe its just the only way todo something thats otherwise simple over the terminal on windows, idk)

Re: The Windows equivalents of the most used Linux commands

#50
post #45

Can I just do a shout-out for UnxUtils [1]? I've had it on every Windows computer I used at work since forever now, and it is extremely useful to be able to use things like `sed` and `gawk` (and even `make`) from the command prompt [1] https://unxutils.sourceforge.net/

Yuck. Just install WSL and be done with it

Underrated secondary option: git bash. Lower setup overhead than full WSL, although it is slower if you need to work on a lot of files or spawn a lot of processes.
Post reply on HN