chown: change ownership

“chown” can change a ownership of user and group.

“-c” : option for change ownership

“-R” : option for sub-directories

(1) root has a ownership of “test.jnl”

그림1

(2) type “chown -c dwyi:dwyi test.jnl” then,

user and group ownership is changed.

“dwyi:dwyi” means “user ownership:group ownership”

그림2

(3) you can apply this option to the sub directories adding “-R” option.

Example)  chown -cR dwyi:dwyi test_folder/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s