Sei sulla pagina 1di 3

1) What is uid of root user ?

2) What is gid of root user ?


3) What is default shell in CentOS7 ?
4) What is home of root user ?

5) What is permission of current directory ?


6) This is output from command ?
7) File type in Linux
7.1)
7.2)
7.3)
7.4)
7.5)
7.6)
7.7)
8) A user can have many UID . ( True or False )
9) A user can be member of many group. ( True or False )
10) What is group of user1 when add user with command “useradd user1” ?
11) What is command that provide output as below ?
uid=1000(user1) gid=1000(user1) groups=1000(user1)
12) Which command use to switch from current user to another
13) Which command use to switch from current user to root user ?
14) Command as below correct or not ?
#useradd -u user1 -g group1 -s /bin/ksh
15) Which command use to prevent user to login?
16) Which shell is not allow user to login?
17) Which command use to show last change password of user ?
18) What Is the meaning of minage field in /etc/shadow
19) After password of user had expired . User still can login ?
20) Which command use to force user to change password after next login?

21) What command will show output like above?


22) Which command use to stop running process ?
23) What is signal number when press Crtl+C ?
24) What is name of signal number 9 ?
25) What is command for running a.sh script in background mode ?
[root@localhost tmp]# ls -la fileA
brw-r--r--. 1 root root 8, 10 Feb 24 03:46 fileA
[root@localhost tmp]#
26) From output from command ls as whabove . What is file type of fileA
27) Which command use to change permission of fileA to access by owner only ( numberic mode )?
28) Which command use to change permission of fileA to access by owner only ( symbolic mode )?
29) Which command user to change file owner of fileA to user oracle ?
30) Which command use to add write permission to group ?
31) What is permission of /tmp directoty ( numberic ) ?
32) What is umask value if need to set default permission of newly create directory to 700 ?
33) From umask value in 32) what is set default permission of newly create file ?
34) What is command for redirect output of command “ls -la “ to file /tmp/ls-la.txt?
35) What is command to redirect output of command “ls -la fileA fileB “ follow condition as below
- Ouput redirect to output.txt
- Error redirect to err.txt
36) rpm is short name of ……
37) what is rpm command to show all files in packA ?
38) What is rpm option for use to display installation date of package ?
39) Which command use to check file /bin/ls is provide by which package ?
40) Which command use to show all package version in repository ?
41) Which process has PID = 1 ?
42) What is command use to autostart service “chronyd” every boot time ?
43) Process sshd will be stop after run command “systemctl disable sshd” ( True or False )
44) Which command use to display all failed service in system?
45) What is default port of ssh ?
46) What is main configuration file for sshd service ?
47) What is parameter for prevent root login ?
48) “ssh-keygen” command will generate 2 files ( ………… , ………………… )
49) If private key is missing we can regenerate from public key ( True or False )
50) Which log priority that have highest priority ?

*.info;mail.none;authpriv.none;cron.none /var/log/messages

authpriv.* /var/log/secure

51) From rsyslog.conf as above logs from authpriv.info will write to file …….
52) Which command use to show log messges from chronyd service only ?
53) Which command use to show log message from httpd service that have PID 5000 ?
54) Re-order step to enable persistence system journal logs.
- #killall -USR1 systemd-journald
- #mkdir /var/log/journal
- #chown root:systemd-journal /var/log/journal
- #chmod 2755 /var/log/journal
55) Which command use to set/display current time zone ?
56) What is timezone for Thailand ?
57) What is command for create archive from /etc and compress with xz format ?
58) cpio command can create archive from /etc and compress with gzip format as below
……………………………………
59) what is network address of IP : 192.168.100.15/23 ?
60) IP: 192.168.123.20/26 GW: 192.168.123.1 ( True or False )
61) Which command use to translate from name to IP ?
62) Which command use to translate from IP to name ?
63) Which file is local database for translate from name to IP ?
64) We can not set gateway by command “nmcli” ( True or False )
65) Which command are display about routing information ? ( 3 )
66) What is command for set one time scheduling ?
67) What is daemon processs for on time scheduling ?
68) Set scheduling for stop service httpd at 13:00 on 24/7/2019.
69) Set scheduling for create archivie of /etc every sun day in December .
70) What is daemon process of recurring job schedule?
71) What happen if user1 existing in /etc/cron.allow and cron.deny ?
72) What happen if /etc/at.allow is empty but /etc/at.deny not existing ?
73) What happen if /etc/at.deny is empty but /etc/at.allow not existing ?
74) File ACL support on XFS by default . That mean we can enable ACL by add option acl at mount
command ( True or False )
75) File ACL not support on ext4 file system ( True or False )
76) Which command use to display file ACL ?
77) Which command use to remove all ACL from file ?
78) What is command to set ACL for allow user1 to read fileA ?
79) root user can not set file ACL on file which belong to another user ( True or False )
80) default ACL can set to file only ( True or False )

Potrebbero piacerti anche