UNIX

Last Updated :
Discuss
Comments

Question 1

Which of the following commands or sequences of commands will rename a file x to file y in a Unix system? I. mv y, x II. mv x, y III. cp y, x (rm x) IV. cp x, y (rm x)
  • II and III
  • II and IV
  • l and III
  • II only

Question 2

In Unix operating system, special files are used to:
  • buffer data received in its input from where a process reads
  • provide a mechanism to map physical device to file names
  • store list of file names plus pointers associated with i-nodes
  • store information entered by a user application program or utility program

Question 3

In Unix operating system, when a process creates a new process using the fork () system call, which of the following state is shared between the parent process and child process?
  • Heap
  • Stack
  • Shared memory segments
  • Both Heap and Stack

Question 4

In UNIX, _________ creates three subdirectories : ‘PIS’ and two subdirectories ‘progs’ and ‘data’ from just created subdirectory ‘PIS’.
  • mkdir PIS/progs PIS/data PIS
  • mkdir PIS progs data
  • mkdir PIS PIS/progs PIS/data
  • mkdir PIS/progs data

Question 5

Which of the following statement(s) is/are True regarding ‘nice’ command of UNIX ? I. It is used to set or change the priority of a process. II. A process’s nice value can be set at the time of creation. III. ‘nice’ takes a command line as an argument.

  • I, II only

  • II, III only

  • I, II, III

  • I, III only

Question 6

Match the following vi commands in Unix: 75

  • (1)
  • (2)
  • (3)
  • (4)

Question 7

A user level process in Unix traps the signal sent on a Ctrl-C input, and has a signal handling routine that saves appropriate files before terminating the process. When a Ctrl-C input is given to this process, what is the mode in which the signal handling routine executes?
  • kernel mode

  • superuser mode

  • privileged mode

  • user mode

Question 8

A student wishes to create symbolic links in a computer system running Unix. Three text files named "file 1", "file 2" and "file 3" exist in her current working directory, and the student has read and write permissions for all three files. Assume that file 1 contains information about her hobbies, file 2 contains information about her friends and file 3 contains information about her courses. The student executes the following sequence of commands from her current working directory
ln -s file 1 file 2
ln -s file 2 file 3
Which of the following types of information would be lost from her file system? (I) Hobbies (II) Friends (III) Courses
  • (I) and (II) only

  • (II) and (III) only

  • (II) only

  • (I) and (III) only

Question 9

In Unix, the command to enable execution permission for file “mylife” by all is ____________.
  • Chmod ugo + X myfile
  • Chmod a + X myfile
  • Chmod + X myfile
  • All of the above

Question 10

Which of the following statement is not correct with reference to cron daemon in UNIX O.S. ?
  • The cron daemon is the standard tool for running commands on a pre-determined schedule.
  • It starts when the system boots and runs as long as the system is up.
  • Cron reads configuration files that contain list of command lines and the times at which they invoked.
  • Crontab for individual users are not stored.

There are 32 questions to complete.

Take a part in the ongoing discussion