wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

LFAD - MIDTERM

Total questions: 100

Worksheet time: 50mins

Name
Class
Date
1.

intended to make a Linux operating system easy to use for non-programmers and generally corresponds to the Windows desktop interface and its most common set of applications. In fact, __allows the user to select one of several desktop appearances.

a)

GNOME

b)

Userdel

c)

Shell

2.

is a command use to delete a user profile account.

a)

GNOME

b)

Userdel

c)

Shell

3.

command is used to Create a group account.

a)

GNOME

b)

Userdel

c)

groupadd

4.

a command use delete an existing Group account.

a)

groupdel

b)

Userdel

c)

groupadd

5.

a command used to add an Existing account to an existing group account

a)

groupdel

b)

usermod

c)

groupadd

6.

You can also display the list of user and group accounts Using terminal just simply press __ to switch on Single user text mode terminal.

a)

ctrl + alt + f1

b)

ctrl + f1

c)

ctrl + alt + f3

7.

this command is used to assign a password for the user account it will automatically hide the information password of the user.

a)

groupdel

b)

Password [account name]

c)

groupadd

8.

Using the octal notations table instead of ‘r’, ‘w’ and ‘x’. Each digit octal notation can be used of either of the group ‘u’,’g’,’o’:

a)

chmod ugo+rx [file_name]

b)

Password [account name]

c)

groupadd

9.

is a letter used to specify an option Wherein the list of supplementary can be specified, which the user should become a member of

a)

G

b)

Inode

c)

Inode number

10.

consider as a database of a file it contains many information about the file

a)

G

b)

Inode

c)

Inode number

11.

it refers to the physical file, the data stored in a particular location

a)

G

b)

Inode

c)

Inode number

12.

In Linux, the __ file stores the user information, such as the user's name, UID, group id (GID), user's home directory, and user's shell. We can get the username by parsing.

a)

/etc/passwd

b)

Inode

c)

Inode number

13.

Type ___ into the terminal, replacing “/path/to/file” with the file you want to give permissions to everyone for, and press “Enter.”

a)

/etc/passwd

b)

sudo chmod a+rw /path/to/Sample1

c)

Inode number

14.

to allow executable permissions.

a)

/etc/passwd

b)

sudo chmod a+rw /path/to/Sample1

c)

Chmod +x filename

15.

are core to the security model used by Linux systems. They determine who can access files and directories on a system and how.

a)

File permission

b)

sudo chmod a+rw /path/to/Sample1

c)

Chmod +x filename

16.

The first field of the __ output is a group of metadata that includes the permissions on each file.

a)

ls -l

b)

sudo chmod a+rw /path/to/Sample1

c)

Chmod +x filename

17.

The R means you can “__” the file’s contents.

a)

read

b)

write

c)

other

18.

If any of the “rwx” characters is replaced by a __, then that permission has been revoked.

a)

ls -l

b)

-

c)

=

19.

The first argument you give to the __command is ‘u’, ‘g’, ‘o’.

a)

chmod

b)

sudo chmod a+rw /path/to/Sample1

c)

Chmod +x filename

20.

Now you would type a ‘+’ to say that you are “adding” a permission:

a)

chmod

b)

chmod o+

c)

Chmod +x filename

21.

Then using __ sub user name user1 Is already created.

a)

chmod

b)

chmod o+

c)

Cat/etc/passwd

22.

The command for changing directory permissions for group owners is similar, but add a “g” for group or “o” for users: foldername:

a)

chmod o-rwx

b)

chmod o+

c)

Cat/etc/passwd

23.

to give only read permission for everyone.

a)

chmod o-rwx

b)

chmod a=r foldername

c)

Cat/etc/passwd

24.

You can use multiple__statements to perform a multiway branch. However, this is not always the best solution, especially when all of the branches depend on the value of a single variable.

a)

chmod o-rwx

b)

chmod a=r foldername

c)

case .. esac

25.

is a command-line interpreter and typical operations performed by shell scripts include file manipulation, program execution, and printing text

a)

Shell

b)

database

c)

gnome

26.

A __ is the string of directories and sub-directories you would have to navigate through in order to reach a given location in the le system Linux Suse Enterprise Server.

a)

Shell

b)

path

c)

gnome

27.

To have__ means to be logged in using the root account. This can be done from the main login screen, a shell prompt, or any application that requires your root password. Root access means that the user has permission to do anything on the system, so use root access with care.

a)

Shell

b)

path

c)

Root access

28.

It also called a file format, is the layout of a file -- in terms of how the data within the file is organized.

a)

Shell

b)

File extensions

c)

Root access

29.

gz. a file compressed with gzip

a)

abc.gz.

b)

.tbz or .tar.bz.

c)

Posix

30.

a tarred and bzipped le

a)

abc.gz.

b)

.tbz or .tar.bz.

c)

Posix

31.

The conventional __ permission concept uses three classes of users for assigning Permissions in the file system: the owning user, the owning group and other users.

a)

abc.gz.

b)

.tbz or .tar.bz.

c)

Posix

32.

The ACL contains two entries, one for the name user __ and one __entry.

a)

James and Mask

b)

.tbz or .tar.bz.

c)

Posix

33.

is a computer program designed to be run by the Unix/Linux shell.

a)

James and Mask

b)

Shell script

c)

Posix

34.

The following script uses the __ command which takes the input from the keyboard and assigns it as the value of the variable PERSON and finally prints it on STDOUT.

a)

Read

b)

write

c)

Posix

35.

It provides you with an interface to the Unix system. It gathers input from you and executes programs based on that input

a)

Read

b)

Shell

c)

Posix

36.

The prompt __, which is called the command prompt

a)

$

b)

*

c)

^

37.

If you are using a __, the $ character is the default prompt.

a)

abc.gz.

b)

Bourne-type shell

c)

Posix

38.

Move forward one word ( delimited by a white space )

a)

W

b)

O

c)

R

39.

Jumps to the previous paragraph

a)

{

b)

}

c)

'

40.

Jump to the end of the next section

a)

][

b)

{}

c)

()

41.

to Insert text at the end of the line.

a)

A

b)

G

c)

O

42.

to insert the file, below the cursor

a)

:r [ filename]

b)

:g [ filename]

c)

:l [ filename]

43.

Delete to the end of sentence

a)

D)

b)

g

c)

a

44.

Replace the character under the cursor with

a)

r{txt}

b)

w{txt}

c)

r(txt)

45.

to paste from register x before current line

a)

[:x]P

b)

(v)P

c)

[:x]s

46.

to Redo the last undo.

a)

Ctrl + r

b)

r{txt}

c)

:r [ filename]

47.

Switch case

a)

~

b)

/

c)

-

48.

Creating a Syntax for zip file

a)

$zip myfile.zip filename.txt

b)

chmod o+

c)

K or ctrl + j.

49.

Bourne shell is usually installed as __ on most versions of Unix.

a)

$zip myfile.zip filename.txt

b)

/bin/sh

c)

K or ctrl + j.

50.

The basic concept of a shell script is a list of commands, which are listed in the order of execution. A good shell script will have comments, preceded by __ sign, describing the steps.

a)

$zip myfile.zip filename.txt

b)

#

c)

K or ctrl + j.

51.

The __ statement in the Unix shell is very similar to the switch...case statement we have in other programming languages like C or C++ and PERL, etc

a)

Variables

b)

CASE … esac

c)

K or ctrl + j.

52.

can contain only letters (a to z or A to Z), numbers ( 0 to 9) or the underscore character ( _).

a)

Variables

b)

CASE … esac

c)

K or ctrl + j.

53.

Variables are defined as follows -

a)

Variables

b)

CASE … esac

c)

variable_name=variable_value

54.

is used to locate /search file in linux or Unix

a)

Find

b)

look

c)

search

55.

Display full details on matches

a)

–Ls

b)

lss

c)

search

56.

Display path to binaries

a)

–Ls

b)

lss

c)

–b

57.

text editor was the brainchild of Bram Moolenar, a Dutch software engineer.

a)

–Ls

b)

Vim

c)

–b

58.

The following script will access the value of defined variable

NAME and print it on STDOUT –

#!/bin/sh

NAME="James "

echo $NAME

a)

James

b)

NAME

c)

bin

59.

The exit status of the last command executed is

a)

$

b)

!

c)

~

60.

The following script generates an error while trying to change the value of

NAME – #!/bin/sh

NAME="Emma"

readonly NAME

NAME="Hello world!!"

a)

main.ksh: line 5: NAME: is read only

b)

main.ksh: line 5: Bin: is read only

c)

main.ksh: line 5:

61.

is a variable that is present within the current instance of the shell. It is not available to programs that are started by the shell. They are set at the command prompt.

a)

Local Variable

b)

Object

c)

Folder

62.

is available to any child process of the shell. Some programs need environment variables in order to function correctly.

a)

Local Variable

b)

Environment Variable

c)

Folder

63.

All the arguments are individually double quoted. If a script receives two arguments, $@ is equivalent to $1 $2

a)

$@

b)

$!

c)

$ =

64.

There are special parameters that allow accessing all the command-line arguments at once. __ both will act the same unless they are enclosed in double quotes, "".

a)

$@

b)

$ and $@

c)

$ =

65.

Last line mode

a)

/

b)

:

c)

;

66.

Insert mode

a)

/

b)

|

c)

;

67.

Move cursor one character to the left

a)

W

b)

R

c)

H

68.

Move cursor up one line

a)

K or ctrl + a

b)

K or ctrl + j

c)

K or ctrl + s

69.

This option is used when we want to append the output, retaining the prior content of the file.

a)

+a

b)

–a

c)

-s

70.

This option is used when we want to run a particular command rather than interactive shell and get terminal information in the file given as argument or typescript by default

a)

+a

b)

–a

c)

-c

71.

if you want to search a particular information the postal code from a text file.

a)

Control command

b)

Grep command

c)

command

72.

shows the matching line and its number.

a)

+a

b)

–n

c)

-c

73.

matches both (upper and lower) case.

a)

+a

b)

–n

c)

-i

74.

This command helps in sorting out the content of a file alphabetically.The syntax is

a)

Sort abc

b)

Sort a

c)

Sort m

75.

This symbol send the output of one command as input of another command

a)

+a

b)

+

c)

|

76.

These are small accounts created inside the linux operating system linux accounts are useful especially if you are going to create a workstation

a)

group1

b)

user1

c)

user4

77.

This symbol send the output of one command as input of another command

a)

+a

b)

-j

c)

-v

78.

Same as :ql! Without writing changes

a)

ZQ

b)

SR

c)

BR

79.

The filename of the current script

a)

$0

b)

$9

c)

$06

80.

These variables correspond to the arguments with which a script was invoked

a)

$N

b)

$J

c)

$A

81.

The Pipe is a command in Linux that lets you use two or more commands.

a)

FACTS

b)

MYTHS

82.

Locate searching tool is used to search for file index that actual file name.

a)

FACTS

b)

MYTHS

83.

The three user class are the owner,group and others

a)

FACTS

b)

MYTHS

84.

To add permissions for a group (group is either the group name or ID): # setfacl -m "g:group:permissions"

a)

FACTS

b)

MYTHS

85.

The path of the Bash shell in the directory structure is /bin/sh.

a)

FACTS

b)

MYTHS

86.

sort -r is used to sort a data in reverse order.

a)

FACTS

b)

MYTHS

87.

If you cannot remember the Ubuntu username, you can display a list of all users for the system. To do this, restart the machine, press "Shift" at the GRUB loader screen, select "Rescue Mode" and press "Enter." At the root prompt, type "cut –d: -f1 /etc/passwd" and then press "Enter." Ubuntu displays a list of all usernames assigned to the system. After finding the correct username, you can use the "passwd" command to assign a new password for the user.

a)

FACTS

b)

MYTHS

88.

Access control list (ACL) provides an additional, more flexible permission mechanism for file systems.

a)

FACTS

b)

MYTHS

89.

-i of grep will accept both (upper and lower) case.

a)

FACTS

b)

MYTHS

90.

Basically, ACLs are used to make a flexible permission mechanism in Linux

a)

FACTS

b)

MYTHS

91.

setfacl is used to set the ACLs of a file or directory

a)

FACTS

b)

MYTHS

92.

grep will scan the document for the desired information and present the result in a format you want. 114. To add permission for user setfacl -m "u:user:permissions" /path/to/file.

a)

FACTS

b)

MYTHS

93.

Bash or Bourne Again Shell is not the identical similar shell to Bourne or .sh in Unix.

a)

FACTS

b)

MYTHS

94.

-v of grep displays only the count of matching lines.

a)

FACTS

b)

MYTHS

95.

Sort can use powerful commands which can perforcomplex tasks in a jiffy.

a)

FACTS

b)

MYTHS

96.

Korn Shell or KSH was developed by a person named Davi Korn, which attempts to integrate the features of other shells like C shell, Bourne Shell, etc.

a)

FACTS

b)

MYTHS

97.

The default ACL is a specific type of permission assigned to a file.

a)

FACTS

b)

MYTHS

98.

Default ACLs can only be applied to files.

a)

FACTS

b)

MYTHS

99.

If you want to remove the set ACL permissions, use setfacl command with -r option.

a)

FACTS

b)

MYTHS

100.

Assigned a 777 permission for his file name "Linux.txt" to restrict the group account in editing the file.

a)

FACTS

b)

MYTHS