Deck 3: Unix Commands and File System Structure

ملء الشاشة (f)
exit full mode
سؤال
Which command changes a file's group owner

A)cgrp
B)chgrp
C)change
D)group
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
Which command is used to extract intermediate result in a pipeline

A)tee
B)extract
C)exec
D)none of the above
سؤال
Which command is used to display disk consumption of a specific directory

A)du
B)ds
C)dd
D)dds
سؤال
Which command is used to perform backup in unix?

A)backup
B)cpio
C)zip
D)gzip
سؤال
Which command creates an empty file if file does not exist?

A)cat
B)touch
C)ed
D)read
سؤال
Which option of rm command is used to remove a directory with all its subdirectories

A)-b
B)-o
C)-p
D)-r
سؤال
Write the command to display the current date in the form dd/mm/yyyy.

A)date +%d/%m/%y
B)date +"%d/%m/%y"
C)date +/%d/%m/20%y
D)date +"/%d/%m/20%y"
سؤال
Which command will delete all the blank lines in file old.txt?

A)sed '/d' old.txt
B)sed '/^/d' old.txt
C)sed '/^$/d' old.txt
D)sed '/^*/d' old.txt
سؤال
The command "sed -n '/mcqmate/p' old.txt" will

A)print the lines containing the word 'mcqmate' in file old.txt
B)delete the lines containing the word 'mcqmate' in file old.txt
C)will generate an error message
D)none of the mentioned
سؤال
Which option is used by sed to specify that the following string is an instruction or set of instructions?

A)-n
B)-e
C)-f
D)-i
سؤال
When we install a new package in linux system, then

A)all the files of the packages are installed in a single directory
B)different files are installed at different locations of the file system
C)package works just after extraction, installation is not required
D)none of the mentioned
سؤال
Host specific configuration files are installed in

A)/etc directory
B)/lib directory
C)/root directory
D)/bin directory
سؤال
The directory /media is the

A)mount point for removable media
B)mount point for filesystem
C)both (a) and (b)
D)none of the mentioned
سؤال
What is /bin/sh ?

A)bourne shell
B)hard or symbolic link to the real shell command
C)bash shell
D)both (b) and (c)
سؤال
The /boot directory stores the data that is used

A)before the kernel begins executing user mode programs
B)after the kernel begins executing user mode programs
C)before the bootloader is loaded in the ram
D)none of the mentioned
سؤال
Which one of the directory does not contain binary files?

A)/bin
B)/sbin
C)/etc
D)none of the mentioned
سؤال
Kernel modules are present in

A)/lib directory
B)/root directory
C)/boot directory
D)none of the mentioned
سؤال
The directory /opt is reserved for

A)installation of add-on application software packages
B)optional booting files
C)optional user specific files
D)none of the mentioned
سؤال
The directory /srv contains

A)site-specific data which is served by the system
B)all the system files
C)all the service files provided by the specific user
D)none of the mentioned
سؤال
Any file or directory present in the ______ directory may not be reserved between the invocation of the program.

A)/var
B)/tmp
C)/etc
D)all of the mentioned
سؤال
What is a context switch?

A)kernel switches from executing one process to another.
B)process switches from kernel mode to user mode.
C)process switches from user mode to kernel mode.
D)none of the above
سؤال
Pid of init process

A)0
B)1
C)32767
D)none of the above
سؤال
How do you get parent process identification number?

A)waitpid
B)getpid()
C)getppid()
D)parentid()
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/23
auto play flashcards
العب
simple tutorial
ملء الشاشة (f)
exit full mode
Deck 3: Unix Commands and File System Structure
1
Which command changes a file's group owner

A)cgrp
B)chgrp
C)change
D)group
chgrp
2
Which command is used to extract intermediate result in a pipeline

A)tee
B)extract
C)exec
D)none of the above
tee
3
Which command is used to display disk consumption of a specific directory

A)du
B)ds
C)dd
D)dds
du
4
Which command is used to perform backup in unix?

A)backup
B)cpio
C)zip
D)gzip
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
5
Which command creates an empty file if file does not exist?

A)cat
B)touch
C)ed
D)read
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
6
Which option of rm command is used to remove a directory with all its subdirectories

A)-b
B)-o
C)-p
D)-r
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
7
Write the command to display the current date in the form dd/mm/yyyy.

A)date +%d/%m/%y
B)date +"%d/%m/%y"
C)date +/%d/%m/20%y
D)date +"/%d/%m/20%y"
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
8
Which command will delete all the blank lines in file old.txt?

A)sed '/d' old.txt
B)sed '/^/d' old.txt
C)sed '/^$/d' old.txt
D)sed '/^*/d' old.txt
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
9
The command "sed -n '/mcqmate/p' old.txt" will

A)print the lines containing the word 'mcqmate' in file old.txt
B)delete the lines containing the word 'mcqmate' in file old.txt
C)will generate an error message
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which option is used by sed to specify that the following string is an instruction or set of instructions?

A)-n
B)-e
C)-f
D)-i
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
11
When we install a new package in linux system, then

A)all the files of the packages are installed in a single directory
B)different files are installed at different locations of the file system
C)package works just after extraction, installation is not required
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
12
Host specific configuration files are installed in

A)/etc directory
B)/lib directory
C)/root directory
D)/bin directory
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
13
The directory /media is the

A)mount point for removable media
B)mount point for filesystem
C)both (a) and (b)
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
14
What is /bin/sh ?

A)bourne shell
B)hard or symbolic link to the real shell command
C)bash shell
D)both (b) and (c)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
15
The /boot directory stores the data that is used

A)before the kernel begins executing user mode programs
B)after the kernel begins executing user mode programs
C)before the bootloader is loaded in the ram
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
16
Which one of the directory does not contain binary files?

A)/bin
B)/sbin
C)/etc
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
17
Kernel modules are present in

A)/lib directory
B)/root directory
C)/boot directory
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
18
The directory /opt is reserved for

A)installation of add-on application software packages
B)optional booting files
C)optional user specific files
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
19
The directory /srv contains

A)site-specific data which is served by the system
B)all the system files
C)all the service files provided by the specific user
D)none of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
20
Any file or directory present in the ______ directory may not be reserved between the invocation of the program.

A)/var
B)/tmp
C)/etc
D)all of the mentioned
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
21
What is a context switch?

A)kernel switches from executing one process to another.
B)process switches from kernel mode to user mode.
C)process switches from user mode to kernel mode.
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
22
Pid of init process

A)0
B)1
C)32767
D)none of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
23
How do you get parent process identification number?

A)waitpid
B)getpid()
C)getppid()
D)parentid()
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.
فتح الحزمة
k this deck
locked card icon
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 23 في هذه المجموعة.