In Linux, the subdirectory that contains system configuration files including user passwords:
/usr
/boot
/etc
/proc
64 practice sets · Page 3 of 4
In Linux, the subdirectory that contains system configuration files including user passwords:
/usr
/boot
/etc
/proc
Linux partitions are created using the file system:
EXT3
FAT
NTFS
FAT32
Which UNIX/Linux command is used to make all files and sub-directories in the directory "progs" executable by all users?
chmod -R a+x progs
chmod -R 222 progs
chmod ugo+x progs
chmod a+x progs
Consider the following statements:
Statement I: UNIX provides three types of permissions: Read, Write, and Execute.
Statement II: The command chmod is used to change these permissions.
Which of the statements given above is/are correct?
Only Statement I
Only Statement II
Both Statement I and Statement II
Neither Statement I nor Statement II
Match the following WINDOWS system calls and UNIX system calls with reference to process control and file manipulation:
| Windows | UNIX |
|---|---|
| (a) CreateProcess() | (i) read() |
| (b) WaitForSingleObject() | (ii) close() |
| (c) ReadFile() | (iii) fork() |
| (d) CloseHandle() | (iv) wait() |
(a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)
(a)-(iii), (b)-(iv), (c)-(i), (d)-(ii)
(a)-(iii), (b)-(iv), (c)-(ii), (d)-(i)
(a)-(iv), (b)-(iii), (c)-(ii), (d)-(i)
In UNIX, which of the following command is used to set the task priority?
nice
ps
kill
init
Which of the following flags are set when ‘JMP’ instruction is executed?
SF and CF
No flag is set
All flags
AF and CF
Everything below the system call interface and above the physical hardware is known as ______.
Stub
Shell
Bus
Kernel
Linux operating system uses
Hand Shaking
Fair Preemptive Scheduling
Affinity Scheduling
Highest Penalty Ratio Next
In Unix, how do you check that two given strings a and b are equal?
test b
test b
test b
Both A and B
The directory structure used in Unix file system is called
Graph structured directory
Hierarchical directory
Tree structured directory
Directed acyclic graph
Which statement is not true about process 0 in the Unix operating system?
Process 0 is not created by fork system call
Process 0 is a special process created when system boots
Process 0 is called init process
After forking process 1, process O becomes swapper process
Which of the following commands would return the process_id of the sleep command?
sleep 1 & echo $!
sleep 1 & echo $*
sleep 1 & echo $?
sleep 1 & echo $$
What does the following command do?
grep -vn "abc" x
It will print the specific line numbers of file x in which there is a match for the string "abc"
It will print total no of the lines in file x that match the search string "abc"
It will print all of the lines in the file x that match the search string "abc"
It will print all of the lines in file x that do not match the search string "abc", along with their line numbers
The Unix Kernel maintains two key data structures related to processes, the progress table and the user structure. Which of the following information is not a part of the user structure?
System call state
File descriptor table
Scheduling parameters
Kernel stack
A Unix file may be of the type:
Regular file
Directory file
Device file
All of the above
Match the following for Unix system calls:
| List – I | List – II |
|---|---|
| (a) exec() | (i) Creates a new process |
| (b) brk() | (ii) Replaces the core image of a process |
| (c) wait() | (iii) Changes data segment size |
| (d) fork() | (iv) Blocks caller until child terminates |
(a)-(iv), (b)-(iii), (c)-(ii), (d)-(i)
(a)-(iii), (b)-(ii), (c)-(iv), (d)-(i)
(a)-(iv), (b)-(iii), (c)-(i), (d)-(ii)
(a)-(ii), (b)-(iii), (c)-(iv), (d)-(i)
WOW32 is a:
Kernel - mode objects accessible through Win 32 API
Win 32 API library for creating processes and threads
Special execution environment used to run 16 bit Windows applications on 32 - bit machines
Special kind of file system to the NT name space
The Unix command:
$ vi file1 file2
Edits file1 and stores the contents of file1 in file2
Both files i.e. file1 and file2 can be edited using 'ex' command to travel between the files
Both files can be edited using 'mv' command to move between the files
Edits file1 first, saves it and then edits file2
______ maintains the list of free disk blocks in the Unix file system.
I-node
Super block
File allocation table
Boot block