Null
Null
A) Shell
B) Kernel
C) Commands
D) Script
3- Which option can be used to create a directory structure with the missing
parent directories (if any)
A) -l
B) -p
C) -a
D) -f
4- Which command creates an empty file if the file does not exist?
A) cat
B) touch
C) ed
D) read
7- Which command is used to display all the files including hidden files?
A) ls
B) ls -a
C) ls -R
D) ls -l
13- Which of the following commands can be used to change the user password?
A) user can’t change the password
B) passwd
C) passd
D) pwd
14- Which of the following directory is the root account's home directory?
A) /root
B) /home
C) /
D) None of the mentioned
18- If you need to edit network configuration file to use dhcp server, set
parameter ………….= dhcp
A) TYPE
B) NAME
C) BOOTPROTO
D) DEVICE
23- Symbol is used to redirect stdout to a file, append to current file content.
A) >
B) >>
C) s>
D) 2>
24- …………. is text editor used in CLI
A) ls
B) mkdir
C) vim
D) chmod
28- How can you switch from user Ahmed to user Ibrahim
A) [Ahmed@localhost ~]$ su - Ibrahim
B) [Ahmed@localhost ~]$ su -
C) [Ahmed@localhost ~]$ su - Ali
D) [Ahmed@localhost ~]$ sudo - Ibrahim
32- Which option that is used with userdel command to delete the user and the
user's home directory.
A) -i
B) -g
C) -r
D) -x
33- The current login user can use……… command to change password.
A) passwd username
B) passwd
C) changewd
D) changepassword
40- Set permissions on the /home/fci directory as: owner (6), group (5) and other
users have no permission:
A) chmod 551 /home
B) chmod 560 /home/fci
C) chmod 650 /home/fci
D) chown 056 /home/fci
41- Set permissions on the /home directory so it is a set the owner can read, write
and execute, group can read only and other users have no permission:
A) chmod 751 /home
B) chmod 740 /home
C) chmod 660 /home
D) chown 740 /home
42- /etc/passwd contains:
A) All users on the system.
B) All users and passwords.
C) All groups on the system.
D) Information about current user only.
44- Remove read and write permission for group and other on f1
A) chown go+rw f1
B) chmod go-rw f1
C) chmod g-rw, o-rw f1
D) chmod g-r o-w f1
48- When login as root, the shell prompt to end with ….........
A) $
B) !
C) %
D) #
49- root account need to change password for ahmed account, which command
can root use?
A) passwd ahmed
B) root can’t change the password
C) pwd
D) passwd
50- Which of these is absolute path of file1 that was created inside dir1 that was
found inside home directory for user root
A) /dir1/file1
B) dir1/file1
C) /home/root/dir1/file1
D) /root/dir1/file1