meaning of sudo chown -R `id -u` /data/db
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: This command is actually a solution for this question about mongodb issue . But the ichiness of not knowing what exactly it is doing, command by command, is really drive me nut! If anyone could dissect what this line does to... the /data/db directory, or even any other directory! Will be really appreciated (also those who like me, very noobie in command line) Thanks! 回答1: The main command is chown, which itself change the owner of the files. -R means Recursively, means, its applied to every files in the directory the command inside