0% found this document useful (0 votes)
32 views

Null

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Null

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

1- Which is the core of the operating system?

A) Shell
B) Kernel
C) Commands
D) Script

2- SSH service port number is …………..


A) 22
B) 23
C) 24
D) 25

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

5- Which option of rm command is used to remove a directory with all its


subdirectories?
A) -b
B) -o
C) -p
D) -r
6- Command used to count number of character in a file is
A) grep
B) wc
C) count
D) cut

7- Which command is used to display all the files including hidden files?
A) ls
B) ls -a
C) ls -R
D) ls -l

8- pwd command displays


A) user password
B) password file content
C) present working directory
D) none of the mentioned

9- Which represents the user home directory?


A) /
B) .
C) ..
D) ~

10- What command is used to copy files and directories?


A) copy
B) cp
C) rn
D) cpy
11- Which command can be executed by a user who is already logged into the
system, in order to change to the root user? (Type the command without any
parameters)
A) su
B) root
C) chroot
D) user

12- SSH client that installed on windows is


A) RDP
B) SSH client
C) putty
D) gedit

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

15- Command used to return to the current user's home directory.


A) pwd
B) cd
C) ls -l
D) cd ~
16- User home directories located under which directory?
A) /root
B) /home
C) /usr/sbin
D) None of the mentioned

17-The interpreter that executes commands typed as strings.


A) shell
B) prompt
C) terminal
D) command

18- If you need to edit network configuration file to use dhcp server, set
parameter ………….= dhcp
A) TYPE
B) NAME
C) BOOTPROTO
D) DEVICE

19- Ethernet interfaces begin with…………...


A) ethernet
B) en
C) wl
D) ww

20- Symbol is used for output (STDOUT) redirection.


A) >
B) 8>
C) s>
D) 2>
21- Symbol is used for error (STDERR) redirection.
A) >
B) >>
C) s>
D) 2>

22- Symbol is used to discard stderr error msg by redirect to /dev/null.


A) > /dev/null
B) >> /dev/null
C) 2> /dev/null
D) S> /dev/null

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

25- …………. is text editor used in GUI


A) ls
B) gedit
C) vim
D) chmod
26- Command is used to show information about the current logged in user.
A) id
B) ic
C) if
D) df

27- Which file you can find the created groups


A) /groups
B) /etc/group
C) /group
D) /etc/users_groups

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

29- If your user in /etc/sudoers file what is that mean?


A) It doesn’t mean anything.
B) The user can use su command.
C) The user lost some permission.
D) Allows a regular user to be permitted to run a command as root.

30- Command useradd used to


A) delete account from the system.
B) add new account to the system.
C) modified an existing user.
D) add new group to the system.

31- userdel username removes the user ………………………………


A) from /etc/passwd but leaves the home directory.
B) from /etc/passwd and remove its home directory.
C) from /etc/passwd but leaves its primary group.
D) from /etc/group but leaves its primary group.

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

34- How edit group id


A) groupmod -r
B) groupchange -g
C) groupmod -g
D) groupmod -id

35-Which command used to show files and directory permission


A) show -p
B) show
C) ls
D) ls -l

36- chmod command used to


A) change file or directory user.
B) change file or directory permission.
C) change file or directory group.
D) change file name.
37- How add execute permission for everyone on f2 using symbolic method:
A) chmod a+x f2
B) chmod f2
C) chmod everyone f2
D) chmod 777 f2

38- Option used for setting permissions on an entire directory tree:


A) -K
B) -f
C) -r
D) -R

39- Change the group ownership only for file f1


A) chown username:groupname f1
B) chown groupname f1
C) chmod :groupname f1
D) chown :groupname f1

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.

43- Users and encrypted passwords can be found in:


A) /etc/passwd
B) /etc/password
C) /etc/shadow
D) /etc/group

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

45- We run the command ls -l /home/bob and we found result like:


drwxrw-r-- bob alice 74 Feb 4 15:23 Desktop
The Desktop is:
A) Directory
B) File.
C) shortcut.
D) hidden file.

46- We run the command ls -l /home/bob and we found result like:


drwxrw-r-- bob bob 74 Feb 4 15:23 Desktop
The user bob can:
A) read and write only.
B) read only
C) full permission.
D) not have permission.
47- Which of the following command can be used to create directory in Linux?
A) touch
B) mkdir
C) createdir
D) makedir

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

You might also like