Linux Shell Scripting Cookbook(Third Edition)
上QQ阅读APP看书,第一时间看更新

Changing ownership

The chown command will change the ownership of files and folders:

    $ chown user.group filename

Consider this example:

    $ chown slynux.users test.sh

Here, slynux is the user, and users is the group.