英文:
How to hide default folders in Windows?
问题
I haven't used Windows in years and trying to simply run the command: "ls" to show the list of files/folders, but when I do that I see other default folders that I don't want to show. Can anyone tell me how to only show "MyFolder" when doing "ls"? Thanks a lot in advance.
英文:
I haven't used Windows in years and trying to simply run the command: "ls" to show the list of files/folders, but when I do that I see other default folders that I don't want to show. Can anyone tell me how to only show "MyFolder" when doing "ls"? Thanks a lot in advance.
NOTES:
1) I'm currently using Windows 11
2) I also tried using git bash and the result is the same.
This is what I see when doing "ls" on the CMD.
答案1
得分: 1
你可以使用以下命令来隐藏文件夹:
attrib +h [文件夹名称/文件名]
你也可以点击这个链接来了解更多关于如何使用命令提示符在Windows中隐藏/显示文件夹或文件的信息:
英文:
You can use
attrib +h [FolderName/FileName]
To hide your folder. You can also follow this link to learn more How to hide/unhide the folders/files using command prompt in windows
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论