简体   繁体   English

应用程序未显示在终端中

[英]Applications don't show in terminal

When I 'cd' into Applications in terminal, none of my applications show.当我在终端中“cd”到应用程序时,我的应用程序都没有显示。 Any advice on how I can fix this?关于我如何解决这个问题的任何建议?

(The "" and - are just my name) (“”和 - 只是我的名字)

""-MacBook-Pro:Applications -$ ls ""-MacBook-Pro:应用程序-$ ls

""-MacBook-Pro:Applications -$ ""-MacBook-Pro:应用程序-$

Don't forget the slash / before Applications since you are trying to access a top level directory. 在尝试访问顶级目录时,请不要在应用程序前加上斜杠/

cd /Applications/ cd /应用程序/

In most operating systems many of the files are hidden by default, these are usually setting files and things like that that a regular user wouldn't usually have to access. 在大多数操作系统中,默认情况下会隐藏许多文件,这些文件通常是设置文件,诸如普通用户通常无需访问的文件。 When you type ls it will only show "visible" files. 键入ls ,它将仅显示“可见”文件。 To see "hidden" files you need to use: ls -a , you can also get more information on files such as size and read/write permissions with ls -al 要查看需要使用的“隐藏”文件: ls -a ,还可以使用ls -al获取有关文件的更多信息,例如大小和读/写权限。

For the application view in the finder window, what is displayed is not really what is stored in the system.对于finder窗口中的应用程序视图,显示的并不是系统中真正存储的。 The view of applications in the finder window is more of and end-user friendly view. finder 窗口中的应用程序视图更多是终端用户友好的视图。 From the finder window you can right click and get info on any of the apps.在查找器窗口中,您可以右键单击并获取有关任何应用程序的信息。 View the Where: metadata.查看 Where: 元数据。 This reveals the true path.这揭示了真正的道路。 Often the application binary will resides in root/Applications/System/AppName/Contents/AppNameBinary.通常,应用程序二进制文件将驻留在 root/Applications/System/AppName/Contents/AppNameBinary 中。 In the terminal the Applications folder under your profile stores app settings specific to your user account.在终端中,您的个人资料下的 Applications 文件夹存储特定于您的用户帐户的应用程序设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM