使用“Git Bash”的控制台问题
我正在使用 Git Bash 来练习 Unix 命令。
当我打开控制台时,以下行是什么意思? Palex02@LAPTOP-TO2B6AA MINDF64
另外,当我尝试使用 ls Desktop 命令时,我看不到任何文件或目录。另外,使用 mkdir (始终在桌面上)时,我看不到创建的文件夹(但如果我转到桌面文件夹,我会看到它已创建)。
这是我使用的路径:
~/Desktop
我该如何解决这个问题?
I am using Git Bash to practice Unix commands.
What does the following line mean as soon as I open the console?
palex02@LAPTOP-TO2B6AA MINDF64
Also, when I try to use the ls Desktop command I don't see any files or directories. Also with mkdir (always on the Dsktop) I do not see the folder created (but if I go to the Desktop folder I see that it has been created).
This is the path I use:
~/Desktop
How can I solve this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我见过有人在使用 OneDrive 并备份桌面时发生这种情况。
如果这是您遇到这种情况的原因,则
C:\Users\\Desktop
存在,但其内容已被移动。访问 Windows 桌面的典型方法现在是使用 OneDrive 控制文件夹中名为“Desktop”的不同文件夹。这将是C:\Users\\OneDrive\Desktop
或C:\Users\<用户名>\OneDrive - <您的公司名称>\Desktop
。在这种情况下,通常会将相同类型的更改应用于“
Documents
”和“Pictures
”文件夹,但它们都是可选的。I've seen that happen when someone is using OneDrive, and they're backing up the desktop.
If that is the cause of your situation,
C:\Users\<username>\Desktop
exists but its contents were moved. The typical methods of accessing Windows Desktop are now using a different folder called "Desktop" in the OneDrive controlled folder.That would beC:\Users\<username>\OneDrive\Desktop
orC:\Users\<username>\OneDrive - <your business name>\Desktop
.In such cases, it's common for the same kind of change to apply to "
Documents
" and "Pictures
" folders, but they're each optional.