For the accompanying inquiries enter the answer and give complete explanation or
ID: 3697585 • Letter: F
Question
For the accompanying inquiries enter the answer and give complete explanation or rational for your answer with examples and charts when required. enter the screen showing execution the execution of the command in Linux workstation alongside the clarification (you might have the capacity to utilize the Linux command brief in your Mac's)
1. You would like to automatically create home directories for users when you generate their accounts. What switch should you use with the useradd command?
A. useradd -h
B. useradd -m
C. useradd -c
D. useradd -d
Explanation:
2. Jiaying would like to know the number of entries in a log file named mylog.txt. What command can she use to achieve this result if each log entry is a single line?
A. wc -c
B. wc -m C.
C. wc -l
D. wc -w
Explanation:
3. Examine the permissions for the Linux file shown below.
rwrwr 1 rich rich 46 Oct 24 17:35 file1.txt
What numeric string would provide the equivalent permission settings?
rwrwr 1 rich rich 46 Oct 24 17:35 file1.txt What numeric string would provide the equivalent permission settings?
A. 664
B. 466
C. 773
D. 377
Explanation:
4. Examine the permissions for the Linux file shown below.
rwrwr 1 rich rich 46 Oct 24 17:35 file1.txt
With this permission string, what category of users do not have access to write the file?
A. Group
B. User
C. Owner
D. Others
Explanation:
Explanation / Answer
1) (B) useradd -m username : - If you want to create the user's home directory if it does not exist, then run the useradd command with the -m flag. This will copy all files from the /etc/skel directory
2) (C) wc -l mylog.txt: prints the line count which is separated by
3) (A) 664 : 4 stands for "read",2 stands for "write",1 stands for "execute"(i.e r=4,w=2,e=1)
4) (D) Others : others don't have permission to write on file. (i.e "4" indicates only read permission)