linux用戶組管理命令_Linux用戶和組命令能力問題和解答

linux用戶組管理命令

This section contains Aptitude Questions and Answers on Linux User and Group Commands.

本節包含有關Linux用戶和組命令的 Aptitude問答。

1) Which of the following commands is used to create a new user in the Linux operating system?
  1. createuser

  2. adduser

  3. useradd

  4. user

Answer & Explanation

Correct answer: 3
useradd

The useradd command is used to create a new user in the Linux operating system.

1)以下哪個命令用于在Linux操作系統中創建新用戶?
  1. 創建用戶

  2. 添加用戶

  3. 用戶添加

  4. 用戶

答案與解釋

正確答案:3
用戶添加

useradd命令用于在Linux操作系統中創建新用戶。

2) What operations are performed when a new user is created?
  1. Creates a new home directory for the user

  2. The ownership and permissions are assigned to the home directory

  3. Both of the above

  4. None of the above

Answer & Explanation

Correct answer: 3
Both of the above

When we create a new user then a new home directory gets created with required ownership and permissions.

2)創建新用戶時執行什么操作?
  1. 為用戶創建一個新的主目錄

  2. 所有權和權限分配給主目錄

  3. 以上兩者

  4. 以上都不是

答案與解釋

正確答案:3
以上兩者

當我們創建新用戶時,將創建具有所需所有權和權限的新主目錄。

3) Which of the files gets edited when we create a new in Linux operating system?
  1. /etc/group

  2. /etc/shadow

  3. /etc/gshadow

  4. /etc/passwd

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 4
A, B, C, and D

All given files get edited when we create a new in Linux operating system.

3)當我們在Linux操作系統中創建新文件時,哪個文件會被編輯?
  1. / etc / group

  2. / etc / shadow

  3. / etc / gshadow

  4. / etc / passwd

選項:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案與解釋

正確答案:4
A,B,C和D

當我們在Linux操作系統中創建新文件時,所有給定的文件都會被編輯。

4) What is the default UID of root user in the Linux operating system?
  1. 0

  2. 1

  3. 2

  4. 3

Answer & Explanation

Correct answer: 1
0

The 0 UID is reserved for root users in Linux operating system.

4)Linux操作系統中root用戶的默認UID是什么?
  1. 0

  2. 1個

  3. 2

  4. 3

答案與解釋

正確答案:1
0

0 UID為Linux操作系統中的root用戶保留。

5) What is the range of UIDs is reserved for groups and system accounts?
  1. 1-50

  2. 51-100

  3. 100-999

  4. 1000-9999

Answer & Explanation

Correct answer: 3
100-999

The UIDs range 100-999 and are reserved for groups and system accounts.

5)為組和系統帳戶保留的UID范圍是多少?
  1. 1-50

  2. 51-100

  3. 100-999

  4. 1000-9999

答案與解釋

正確答案:3
100-999

UID的范圍為100-999,并且保留給組和系統帳戶使用。

6) There are the following statements that are given below, which of them are correct about GID in the Linux operating system?
  1. GID is a group identification number that is used it identify a group in Linux OS.

  2. GID is provided by the Linux operating system to the newly created group.

  3. GID is provided by the user who created the group in the Linux operating system.

  4. GIDs are stored in /etc/group file.

Options:

  1. A and B

  2. A, B, and D

  3. A, B, and C

  4. B, C, and D

Answer & Explanation

Correct answer: 2
A, B, and D

Statements A, B, and D are correct about GID in the Linux operating system.

6)下面給出了以下語句,其中哪些對于Linux操作系統中的GID是正確的?
  1. GID是一個組標識號,用于在Linux OS中標識一個組。

  2. GID由Linux操作系統提供給新創建的組。

  3. GID由在Linux操作系統中創建組的用戶提供。

  4. GID存儲在/ etc / group文件中。

選項:

  1. A和B

  2. A,B和D

  3. A,B和C

  4. B,C和D

答案與解釋

正確答案:2
A,B和D

關于Linux操作系統中GID的語句A,B和D是正確的。

7) Which exact command is used to create a user with a specified name for the home directory, here we will create a user with user1 name and name of the home directory will be MyHome?
  1. useradd -m /MyHome user1

  2. useradd -m -d /MyHome user1

  3. useradd -m -h /MyHome user1

  4. useraddhome /MyHome user1

Answer & Explanation

Correct answer: 2
useradd -m -d /MyHome user1

The 2nd option is an exact command to create a user user1 with home directory MyHome.

7)使用哪個確切的命令創建一個具有主目錄指定名稱的用戶,這里我們將創建一個具有user1名稱的用戶,并且主目錄的名稱將為MyHome?
  1. useradd -m / MyHome user1

  2. useradd -m -d / MyHome user1

  3. useradd -m -h / MyHome user1

  4. useraddhome / MyHome user1

答案與解釋

正確答案:2
useradd -m -d / MyHome user1

第二個選項是使用主目錄MyHome創建用戶user1的精確命令。

8) Which Linux command is used to assign a password to the created user?
  1. password

  2. newpass

  3. passwd

  4. pwd

Answer & Explanation

Correct answer: 3
passwd

The passwd command is used to assign a password to the created user.

8)使用哪個Linux命令向創建的用戶分配密碼?
  1. 密碼

  2. 新通

  3. 密碼

  4. 密碼

答案與解釋

正確答案:3
密碼

passwd命令用于為創建的用戶分配密碼。

9) Can we create a new user with an expiry date?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes, we can create a new user with an expiry date; it means the user gets deleted automatically after a particular date.

9)我們可以創建一個具有到期日期的新用戶嗎?
  1. 沒有

答案與解釋

正確答案:1

是的,我們可以創建一個具有到期日期的新用戶; 這意味著用戶將在特定日期后自動刪除。

10) Which of the following commands are used to know about the current user?
  1. who

  2. whoami

  3. who am i

  4. w

Options:

  1. A and B

  2. C and D

  3. A, B, and C

  4. A, B, C, and D

Answer & Explanation

Correct answer: 4
A, B, C, and D

All given commands are used to know about the current user.

10)以下哪個命令用于了解當前用戶?
  1. WHO

  2. 我是誰

  3. 我是誰

  4. w

選項:

  1. A和B

  2. C和D

  3. A,B和C

  4. A,B,C和D

答案與解釋

正確答案:4
A,B,C和D

所有給定的命令用于了解當前用戶。

11) There are the following statements that are given below, which of them are correct about the "id" command in the Linux operating system?
  1. This command describes the user id.

  2. This command describes the group id.

  3. This command describes the list of groups belongs to the user.

  4. All the above

Options:

  1. A and B

  2. A and C

  3. B and C

  4. D

Answer & Explanation

Correct answer: 4
D

All statements are correct about the id command.

11)下面給出了以下語句,其中哪些對于Linux操作系統中的“ id”命令是正確的?
  1. 此命令描述用戶標識。

  2. 此命令描述組ID。

  3. 此命令描述屬于用戶的組列表。

  4. 以上全部

選項:

  1. A和B

  2. A和C

  3. B和C

  4. d

答案與解釋

正確答案:4
d

所有關于id命令的語句都是正確的。

12) How to change the normal user to root user using the terminal in the Linux operating system?
  1. Using sudo command

  2. Using su command

  3. Using super command

  4. None of the above

Answer & Explanation

Correct answer: 2
Using su command

Using su command is used to change a normal user to root user.

12)如何在Linux操作系統中使用終端將普通用戶更改為root用戶?
  1. 使用sudo命令

  2. 使用su命令

  3. 使用超級命令

  4. 以上都不是

答案與解釋

正確答案:2
使用su命令

使用su命令可將普通用戶更改為root用戶。

13) Can we create a new user without becoming a root user?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 1
Yes

Yes we can create a new user without becoming root user using the sudo command.

13)我們可以創建新用戶而不成為root用戶嗎?
  1. 沒有

答案與解釋

正確答案:1

是的,我們可以使用sudo命令創建新用戶而無需成為root用戶。

14) Which file contains encrypted user's passwords?
  1. /etc/passwords

  2. /etc/shadow

  3. /etc/pwd

  4. /etc/pwds

Answer & Explanation

Correct answer: 2
/etc/shadow

The /etc/shadow file contains encrypted user's passwords.

14)哪個文件包含加密的用戶密碼?
  1. / etc / passwords

  2. / etc / shadow

  3. / etc / pwd

  4. / etc / pwds

答案與解釋

正確答案:2
/ etc / shadow

/ etc / shadow文件包含加密的用戶密碼。

15) Can a non-root user read /etc/shadow file?
  1. Yes

  2. No

Answer & Explanation

Correct answer: 2
No

No, a non-root user cannot read /etc/shadow file.

15)非root用戶可以讀取/ etc / shadow文件嗎?
  1. 沒有

答案與解釋

正確答案:2
沒有

否,非root用戶無法讀取/ etc / shadow文件。

16) Which Linux command is used to create an encrypted password?
  1. encrypt passwd

  2. secure passwd

  3. openssl passwd

  4. All the above

Answer & Explanation

Correct answer: 3
openssl passwd

The openssl password command is used to create an encrypted password.

16)使用哪個Linux命令創建加密密碼?
  1. 加密密碼

  2. 安全密碼

  3. openssl密碼

  4. 以上全部

答案與解釋

正確答案:3
openssl密碼

openssl password命令用于創建加密密碼。

17) There are the following statements that are given below, which of them are correct about "/etc/login.defs" file in the Linux operating system?
  1. In this file, we can define the maximum number of days a password may be used.

  2. In this file, we can define the minimum number of days allowed between password changes.

  3. In this file, we can also define the minimum and maximum length of the password.

  4. There is no "/etc/login.defs" file exists in the Linux operating system.

Options:

  1. A and B

  2. A and C

  3. A, B and C

  4. D

Answer & Explanation

Correct answer: 3
A, B and C

Statements A, B, and C are correct about /etc/login.defs file.

17)下面給出了以下語句,其中哪些對于Linux操作系統中的“ /etc/login.defs”文件是正確的?
  1. 在此文件中,我們可以定義密碼可以使用的最大天數。

  2. 在此文件中,我們可以定義兩次密碼更改之間允許的最少天數。

  3. 在此文件中,我們還可以定義密碼的最小和最大長度。

  4. Linux操作系統中不存在“ /etc/login.defs”文件。

選項:

  1. A和B

  2. A和C

  3. A,B和C

  4. d

答案與解釋

正確答案:3
A,B和C

關于/etc/login.defs文件,語句A,B和C是正確的。

18) Which command is used to know information about a password?
  1. change

  2. knowpass

  3. passinf

  4. info

Answer & Explanation

Correct answer: 1
change

The change command is used to know password information.

18)使用哪個命令來了解有關密碼的信息?
  1. 更改

  2. 知識通

  3. 密碼

  4. 信息

答案與解釋

正確答案:1
更改

change命令用于了解密碼信息。

19) Which command is used to enable/disable password for a particular user?
  1. usermod

  2. userenable

  3. userdisable

  4. change

Answer & Explanation

Correct answer: 1
usermod

The usermod command is used to enable and disable password for a particular user.

19)哪個命令用于啟用/禁用特定用戶的密碼?
  1. 用戶模組

  2. 用戶可使用的

  3. 用戶禁用

  4. 更改

答案與解釋

正確答案:1
用戶模組

usermod命令用于為特定用戶啟用和禁用密碼。

20) Which exact command is used to disable password for a particular user?
  1. usermod -D <user name>

  2. usermod -d <user name>

  3. usermod -l <user name>

  4. usermod -L <user name>

Answer & Explanation

Correct answer: 4
usermod -L <user name>

The 4th option is correct command to disable password for a particular user.

20)使用哪個確切命令來禁用特定用戶的密碼?
  1. usermod -D <用戶名>

  2. usermod -d <用戶名>

  3. usermod -l <??用戶名>

  4. usermod -L <用戶名>

答案與解釋

正確答案:4
usermod -L <用戶名>

第四個選項是正確的命令,用于禁用特定用戶的密碼。

21) Which command is used to create a new group in the Linux operating system?
  1. creategroup

  2. addgroup

  3. groupadd

  4. groupcreate

Answer & Explanation

Correct answer: 3
groupadd

The groupadd command is used to create a new group.

21)在Linux操作系統中使用哪個命令創建新組?
  1. 創建組

  2. 添加組

  3. 組添加

  4. 組創建

答案與解釋

正確答案:3
組添加

groupadd命令用于創建新組。

22) Which command is used to know about groups that belong to the current user?
  1. grouplist

  2. groups

  3. groupinfo

  4. groupinformation

Answer & Explanation

Correct answer: 2
groups

The groups command is used to know about groups that below to current user.

22)使用哪個命令了解屬于當前用戶的組?
  1. 群組清單

  2. 團體

  3. 組信息

  4. 組信息

答案與解釋

正確答案:2
團體

groups命令用于了解當前用戶下面的組。

23) Which command is used to rename the existing group?
  1. rename

  2. rengroup

  3. groupmode

  4. groupmod

Answer & Explanation

Correct answer: 4
groupmod

The groupmod command is used to rename the existing group.

23)使用哪個命令來重命名現有組?
  1. 改名

  2. 人組

  3. 組模式

  4. 組mod

答案與解釋

正確答案:4
組mod

groupmod命令用于重命名現有組。

24) Which command is used to remove an existing group?
  1. removegroup

  2. deletegroup

  3. groupdel

  4. grouprmv

Answer & Explanation

Correct answer: 3
groupdel

The groupdel command is used to remove an existing group.

24)使用哪個命令刪除現有組?
  1. 刪除組

  2. 刪除組

  3. groupdel

答案與解釋

正確答案:3
groupdel

groupdel命令用于刪除現有組。

25) Which command is used to pass control of group membership to another user?
  1. groupuser

  2. gpasswd

  3. grouppasswd

  4. None of the above

Answer & Explanation

Correct answer: 2
gpasswd

The gpasswd command is used to pass control of group membership to another user.

25)使用哪個命令將組成員身份控制權傳遞給另一個用戶?
  1. 組用戶

  2. gpasswd

  3. 組密碼

  4. 以上都不是

答案與解釋

正確答案:2
gpasswd

gpasswd命令用于將組成員身份控制權傳遞給另一個用戶。

翻譯自: https://www.includehelp.com/linux/user-and-group-commands-commands-aptitude-questions-and-answers.aspx

linux用戶組管理命令

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/542662.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/542662.shtml
英文地址,請注明出處:http://en.pswp.cn/news/542662.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Failed to start firewalld.service: Unit firewalld.service is masked.

2019獨角獸企業重金招聘Python工程師標準>>> FireWall in Centos 7 masked How to resolve the error message belowFailed to issue method call: Unit firewalld.service is masked. The main reason a service is masked is to prevent accidental starting or e…

mysql第二個索引_MySQL高級第二章——索引優化分析

一、SQL性能下降原因1.等待時間長&#xff1f;執行時間長&#xff1f;可能原因&#xff1a;查詢語句寫的不行索引失效(單值索引、復合索引)CREATE INDEX index_user_name ON user(name);(底層做了一個排序)CREATE INDEX index_user_nameEmail ON user(name,email);查詢關聯join…

遞歸反轉鏈表改變原鏈表嗎_在不使用遞歸的情況下找到鏈表的長度

遞歸反轉鏈表改變原鏈表嗎Solution: 解&#xff1a; Algorithm to find length 查找長度的算法 Input: 輸入&#xff1a; A singly linked list whose address of the first node is stored in a pointer, say head. 一個單鏈表 &#xff0c;其第一個節點的地址存儲在指針(例…

西瓜仿站高手v1.08官方正式版

2019獨角獸企業重金招聘Python工程師標準>>> 西瓜仿站高手是一款綠色好用的由追風網絡出品的網站模板批量下載軟件&#xff0c;西瓜仿站高手是一款仿站工具&#xff0c;仿站神器。軟件功能強大&#xff0c;能夠幫你輕松幫你下載任意網站、任意模板&#xff0c;并且速…

用hundred造句子_八個有趣的開學破冰游戲,線上線下都能用

知道大家最近都很忙&#xff0c;所以省略開篇&#xff0c;直接上正題——開學“破冰游戲”走起&#xff01;一、你比劃我來猜把詞語展示在PPT上&#xff0c;猜詞的同學背對PPT&#xff0c;其他同學可以看到詞語并且用身體動作把詞語表現出來&#xff0c;直到猜詞的同學可以把詞…

java 執行順序_Java代碼執行順序

程序中代碼執行的順序非常重要&#xff0c;稍有不慎便會是程序運行出錯&#xff0c;那么我將結合實例來分析代碼中的執行。名詞解釋首先了解幾個名詞&#xff1a;非靜態代碼塊直接由 { } 包起來的代碼&#xff0c;稱為非靜態代碼塊靜態代碼塊直接由 static { } 包起來的代碼&am…

mysql 包含的那些文件

*.frm是描述了表的結構 *.MYD保存了表的數據記錄 *.MYI則是表的索引 ibd是MySQL數據文件、索引文件&#xff0c;無法直接讀取。 轉載于:https://www.cnblogs.com/07byte/p/5823667.html

math 計算float_Java Math類靜態float min(float f1,float f2)與示例

math 計算float數學類靜態浮點數min(float f1&#xff0c;float f2) (Math Class static float min(float f1 , float f2) ) This method is available in java.lang package. 此方法在java.lang包中可用。 This method is used to return the minimum one of both the given a…

vector 不初始化時什么狀態_Vue原理解析(三):初始化時created之前做了什么?...

讓我們繼續this._init()的初始化之旅&#xff0c;接下來又會執行這樣的三個初始化方法&#xff1a;initInjections(vm) initState(vm) initProvide(vm)5. initInjections(vm): 主要作用是初始化inject&#xff0c;可以訪問到對應的依賴。inject和provide這里需要簡單的提一下&a…

switch 字符串 java_JDK7新特性switch支持字符串

在JDK7中,switch語句的判斷條件增加了對字符串類型的支持。由于字符串的操作在編程中使用頻繁,這個新特性的出現為Java編程帶來了便利。接下來通過一個案例演示一下在switch語句中使用字符串進行匹配。public class Example {public static void main(String[] args) {String w…

cisco packet tracer路由器配置_【干貨】思科交換機路由器怎么配置密碼?

今天帶大家看看如何在思科的交換機路由器當中配置安全特性&#xff0c;也就是密碼的配置方式。在學習配置之前&#xff0c;我們先回顧一下密碼相關知識。密碼學是研究信息系統安全保密的科學。人類有記載的通信密碼始于公元前400年&#xff0c;古希臘人是置換密碼學的發明者。密…

perl 哈希數組的哈希_使用哈希檢查兩個數組是否相似

perl 哈希數組的哈希Prerequisite: Hashing data structure 先決條件&#xff1a; 哈希數據結構 Problem statement: 問題陳述&#xff1a; Check whether two arrays are similar or not using the hash table. The arrays are of the same size. 使用哈希表檢查兩個數組是否…

codevs3872 郵遞員送信(SPFA)

郵遞員送信 時間限制: 1 Sec 內存限制: 64 MB提交: 10 解決: 5[提交][狀態][討論版] 題目描述 有一個郵遞員要送東西&#xff0c;郵局在節點1.他總共要送N-1樣東西&#xff0c;其目的地分別是2~N。由于這個城市的交通比較繁忙&#xff0c;因此所有的道路都是單行的&#xff0…

java上傳csv文件上傳_java處理csv文件上傳示例詳解

前言&#xff1a;示例只是做了一個最最基礎的上傳csv的示例&#xff0c;如果要引用到代碼中去&#xff0c;還需要根據自己的業務自行添加一些邏輯處理。readcsvutil工具類package com.hanfengyeqiao.gjb.utils;import java.io.*;import java.util.*;/*** csv工具類*/public cla…

360更新補丁一直提示正在安裝_遠程利用POC公布|CVE20200796:微軟發布SMBv3協議“蠕蟲級”漏洞補丁通告...

更多全球網絡安全資訊盡在邑安全www.eansec.com0x00 事件描述2020年3月11日&#xff0c;360CERT監測到有海外廠家發布安全規則通告&#xff0c;通告中描述了一處微軟SMBv3協議的內存破壞漏洞&#xff0c;編號CVE-2020-0796&#xff0c;并表示該漏洞無需授權驗證即可被遠程利用&…

字符串的回文子序列個數_計算給定字符串中回文子序列的數量

字符串的回文子序列個數Problem statement: 問題陳述&#xff1a; Given a string you have to count the total number of palindromic subsequences in the giving string and print the value. 給定一個字符串&#xff0c;您必須計算給定字符串中回文子序列的總數并打印該值…

Linux-破解rhel7-root密碼

破解7的密碼1.linux16 rd.break2.mount -o remount,rw /sysroot3.chroot /sysroot4.passwd5.touch /.autorelabelexitexit7版本grub菜單加密1.grub2-mkpasswd-pbkdf22.vi /etc/grub.d/40_customset superusers"root"password_pbkdf2 root grub.pbkdf2.sha512.10000.…

適配接口 java_【Java 設計模式】接口型模式--Adapter(適配器)模式

簡介&#xff1a;【Java設計模式】接口型模式–Adapter(適配器)模式Adapter模式的宗旨就是&#xff1a;向客戶提供接口&#xff0c;并使用現有的類所提供的服務&#xff0c;以滿足客戶的需求。 或者說&#xff0c;現在有classA的方法滿足客戶的部分要求&#xff0c;將另一部分需…

deepinu盤制作工具_u盤啟動盤制作工具怎么制作 u盤啟動盤制作工具制作方法【詳細步驟】...

在電腦城很多技術人員都會使用u盤裝系統的方法給用戶電腦安裝系統&#xff0c;他們是怎么操作的呢?其實很簡單&#xff0c;就是通過u盤啟動盤來安裝系統的。而u盤啟動盤是需要用 u盤啟動盤制作工具 來制作的。那么問題又來了&#xff0c;u盤啟動盤制作工具怎么制作呢?下面就給…

openstack私有云_OpenStack-下一代私有云的未來

openstack私有云The OpenStack project is an open source cloud computing platform for all types of clouds, which aims to be simple to implement, massively scalable, and feature rich. Developers and cloud computing technologists from around the world create t…