.xpm 01;35
.png 01;35
.tif 01;35
6. Test that your new setup works, using the /usr/local/bin/ls --color command in a couple of directorIEs.
If your colours seem ok (look also at other than plain text files), proceed to the next step.
7. Now we don"t want to type /usr/local/bin/ls --color all the time. You can solve the problem by altering your PATH variable:
user@host ~> export PATH=/usr/local/bin:$PATH
This way, when you just type ls, the first occurance in your search path will be the ls from /usr/local/bin instead of the default one from /usr/bin.
8. Now we already have the correct program when we call it, but we are lazier than that, because we don"t want to type the --color option all the time either. So you might want to alias the ls command:
user@host ~> alias ls="ls --color"
Mind that this does not work for the common shell, /sbin/sh. You need a more advanced shell for making aliases, such as bash or ksh.
9. Of course, when you log out, all these settings are gone, so add these lines to your shell configuration file, e.g. ~/.bashrc:
user@host ~> echo "export PATH=/usr/local/bin:$PATH" >> ~/.bashrc
user@host ~> echo "alias ls="ls --color"" >> ~/.bashrc
10. In order to make these settings available for all users on the system, put these last two lines in /etc/profile (check first, if PATH is already defined, it is cleaner to arrange the existing definition.
推荐阅读
- 债权债务转让给一方需要哪些条件
- solaris x86 下装openq
- Solaris8 公用桌面环境管理 -- 特殊的 CDE 配置
- 股权转让后多久能重组
- crypt Solaris7 交流 --- 程序生成系统用户方法
- 在solaris9 x86下安装mozilla 1.4 完全安装指南
- solaris下安装的带颜色分辨的ls
- Solaris和IP Filter软件包搭建防火墙的详细步骤
- Solaris7 交流 --- 进程管理、进程控制及cron处理
- Solaris数据备份命令
