如何隐藏Windows中的默认文件夹?

huangapple go评论70阅读模式
英文:

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.

如何隐藏Windows中的默认文件夹?

答案1

得分: 1

你可以使用以下命令来隐藏文件夹:

attrib +h [文件夹名称/文件名]

你也可以点击这个链接来了解更多关于如何使用命令提示符在Windows中隐藏/显示文件夹或文件的信息:

如何在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

huangapple
  • 本文由 发表于 2023年5月14日 10:30:15
  • 转载请务必保留本文链接:https://go.coder-hub.com/76245577.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定