0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linucレベル1勉強メモ #18

Posted at

# 第二章 ファイル・ディレクトリの操作と管理

練習問題2.3
カレントディレクトリdataと、そのディレクトリ内にあるすべてのファイルの所有者をpenguinに変更するコマンドを記述してください。

#_____________

(解答)chown -R penguin data

(解説)
ファイルやディレクトリの所有者を変更するにはchownコマンドを使います。ディレクトリ内のすべてのファイルやサブディレクトリの所有者も同時に変更するには、-Rオプションを付ける必要があります。

chownコマンドの書式
chown [オプション] ユーザー[:グループ] ファイル名やディレクトリ名

chownコマンドのオプション
-R, --recursive
指定したディレクトリとその中にある全ファイルの所有者を変更する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?