免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3040 | 回复: 4
打印 上一主题 下一主题

熟悉SOLARIS 8的兄弟指点一下 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-17 15:20 |只看该作者 |倒序浏览
在LINUX中有.bash_history记录所有在LINUX操作的信息,但是我们的SOLARIS却没有这个,听说是这个服务没有打开,怎么才可以在SOLARIS下面打开这个服务了

论坛徽章:
0
2 [报告]
发表于 2006-01-17 15:51 |只看该作者
最初由 brucewoo 发布
[B]你使用ksh就可以了 [/B]

谢谢兄弟:rose: :rose: :rose: ,但是我还是不明白,能再指点一下吗

论坛徽章:
0
3 [报告]
发表于 2006-02-04 18:41 |只看该作者
在 login 后

exec bash

或 直接换用户的 shell

usermod -s /usr/bin/bash username

只有在 bash shell 里 才有记录在 .bash_history

论坛徽章:
0
4 [报告]
发表于 2006-02-05 17:25 |只看该作者
最初由 danand333 发布
[B]在 login 后

exec bash

或 直接换用户的 shell

usermod -s /usr/bin/bash username

只有在 bash shell 里 才有记录在 .bash_history [/B]



    谢谢,但是还是不可以的

com$ exec bash
bash-2.03$ ls


bash-2.03$ pwd
/u01/home/oracle

ls -al .bash_history
.bash_history: No such file or directory


还是不可以

论坛徽章:
0
5 [报告]
发表于 2006-02-06 16:29 |只看该作者
bash-2.05# su - abc
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
$ pwd
/export/home/abc
$ ls -la
total 12
drwxr-xr-x   2 abc      other        512 Feb  6 16:25 .
drwxr-xr-x   4 root     root         512 Feb  6 16:25 ..
-rw-r--r--   1 abc      other        144 Feb  6 16:25 .profile
-rw-r--r--   1 abc      other        136 Feb  6 16:25 local.cshrc
-rw-r--r--   1 abc      other        157 Feb  6 16:25 local.login
-rw-r--r--   1 abc      other        174 Feb  6 16:25 local.profile
$ exec bash


bash-2.05$ exit
exit
bash-2.05# su - abc
Sun Microsystems Inc.   SunOS 5.9       Generic May 2002
bash-2.05$ ls -la
total 14
drwxr-xr-x   2 abc      other        512 Feb  6 16:25 .
drwxr-xr-x   4 root     root         512 Feb  6 16:25 ..
-rw-------   1 abc      other         27 Feb  6 16:25 .bash_history
-rw-r--r--   1 abc      other        144 Feb  6 16:25 .profile
-rw-r--r--   1 abc      other        136 Feb  6 16:25 local.cshrc
-rw-r--r--   1 abc      other        157 Feb  6 16:25 local.login
-rw-r--r--   1 abc      other        174 Feb  6 16:25 local.profile


*****exit 后 才会记录在 .bash_history
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP