Chinaunix首页 | 论坛 | 博客
  • 博客访问: 239337
  • 博文数量: 91
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 955
  • 用 户 组: 普通用户
  • 注册时间: 2007-08-12 09:38
文章分类

全部博文(91)

文章存档

2017年(1)

2011年(1)

2008年(15)

2007年(74)

我的朋友

分类: LINUX

2007-08-23 17:47:26

su
  su - user ;entry the user's catalog.
  su user ;indicate remain in the current directory.not entry the user'
s catalog
  
chown
  chown [options] user-owner files
  chown [options] user-owner. files
  chown [options] user-owner.group-owner files
  chown [options] .group-owner files
  chown [options] --reference=rfile files
  description
   used to change the owner and/or group of files to user-owner and/or group-owner.in the first form.user-owner is made the owner of files and the group is no affected.in the second form(note the trailing(结尾,尾随的) dot on user-owner),the user-owner is made the owner of files and the group of the files is changed to user-owner's default group.in the third form,both user-owner and group-owner are assigned to files.in the fourth form,only the group-owner is assigned to files,and the user is not affected.in the fifth form,the owner andd group of rfile is used as a template and applied to files.since this program can handle all types of changes to groups, it replaces the chgrp command.only the superuser may change file ownership.but group ownership may be set anyong belonging to the target group-owner.
  -c like verbose mode.but report only changes
  -R user recursive mode,descending through directory hierarchies under files and making midifications throughout.
  -v use verbose behavior,reporting actions for all files
  for example
   chown -v jdoe afile
   chown -Rv .sales sls
chgrp
   change the group parameter of files to group-owner;

which
   chich command
    for example   $which httpd

阅读(535) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~