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勉強メモ #17

Posted at

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

練習問題2.2
カレントディレクトリにあるファイルtestのアクセス権を、所有者は読み取り、書き込み、実行ができ、グループは読み取りと実行ができ、その他ユーザーは読み取りのみができるように設定しようとしています。実行すべきコマンドを選択してください。

A. chmod 754 test

B. chmod test 754

C. chmod 731 test

D. chmod test 731

(解答) A

(解説)
chmodコマンドは、アクセス権、対象ファイルの順に指定するため、選択肢BとDは不正解です。

chmodコマンドの書式
chmod[オプション] アクセス権 ファイル名

アクセス権を数値で表すと、
r=4, w=2, x=1 になるので
「rwxr-xr--」=754になります。

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?