今天我打开终端,它看起来像:
user@MacBook-Pro-de-User:~$ ls
total 8
drwxr-xr-x+ 5 user 170B Oct 3 16:57 Public/
0: group:everyone deny delete
drwx------+ 3 user 102B Oct 3 16:57 Pictures/
0: group:everyone deny delete
drwx------+ 3 user 102B Oct 3 16:57 Music/
0: group:everyone deny delete
drwx------+ 3 user 102B Oct 3 16:57 Movies/
0: group:everyone deny delete
drwx------@ 49 user 1.6K Oct 6 12:09 Library/
0: group:everyone deny delete
drwx------ 3 user 102B Oct 6 13:44 VirtualBox VMs/
-rw-r--r-- 1 user 2.9K Oct 7 08:14 Vagrantfile
drwxr-xr-x 8 user 272B Oct 8 22:44 Jupyter/
drwxr-xr-x 5 user 170B Oct 8 23:04 polyglot_data/
drwx------+ 5 user 170B Oct 11 08:11 Desktop/
0: group:everyone deny delete
drwx------+ 2 user 68B Oct 11 08:36 Downloads/
0: group:everyone deny delete
drwx------@ 3 user 102B Oct 11 08:38 Google Drive/
如何返回旧的可视化样式?:
user@MacBook-Pro-de-User:~$ ls
Public Pictures Music Movies Library
答案1
ls
显然,系统管理员或使用您帐户的其他人已为您的帐户设置了别名。
搜索文件~/.bashrc
或~/.bash_profile
查找类似的行
alias ls='ls <some-options-here>'
并将其删除。
如果它已作为系统范围的设置,您将需要具有超级用户访问权限并编辑/etc/bashrc
或/etc/profile
.
或者,您可以随时运行非别名命令LS通过任一
/bin/ls
或者
\ls