Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow unix cmds on Windows 10 #2178

Closed
hackhowtofaq opened this issue Sep 27, 2019 · 1 comment
Closed

Very slow unix cmds on Windows 10 #2178

hackhowtofaq opened this issue Sep 27, 2019 · 1 comment
Labels
👀 Awaiting Response Waiting to hear back from the issue reporter.

Comments

@hackhowtofaq
Copy link

hackhowtofaq commented Sep 27, 2019

I am adding this issue, because is difficult to locate this valuable information!

In my case, I had git installed separately, so cmder was using my installed version of git+all other Linux ({GIT path}/usr/bin) commands (ls for example).

I tried all workarounds from the numerous issues with no luck.

The craziest issue I encounter: sometimes all linux cmds were executing really fast with degradation to very slow execution (a simple ls more than 10sec!)

What solved the problem?
Both @lunyx on #993 and @davidnero on #763 are giving the correct solution.

cd to where your Git app folder is stored
i.e. c:\Users\myname\AppData\Local\Programs\Git
and execute
mkpasswd -l -c > passwd
mkgroup -l -c > group

then check that nsswitch.conf on i.e. c:\Users\myname\AppData\Local\Programs\Git\etc
is

# Begin /etc/nsswitch.conf

passwd: files db 
group: files # db

db_enum: cache builtin

db_home: env windows cygwin desc
db_shell: env windows # cygwin desc
db_gecos: env # cygwin desc

# End /etc/nsswitch.conf
@stale
Copy link

stale bot commented Nov 1, 2019

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution(s).

@stale stale bot added the 👀 Awaiting Response Waiting to hear back from the issue reporter. label Nov 1, 2019
@daxgames daxgames closed this as completed Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 Awaiting Response Waiting to hear back from the issue reporter.
Projects
None yet
Development

No branches or pull requests

2 participants