Q.1

Which of the following commands is used to rename a file?

  • rename
  • remove
  • mv
  • ren
  • None of the above
Q.2

Which command is used to copy all files having the string chap and any two characters after that to the progs directory?

  • cp chap?? progs
  • cp chap* progs
  • cp chap[12] /progs/*.*
  • cp chap?? /progs/*
  • None of the above
Q.3

Which of the following is not a filter?

  • cat
  • grep
  • wc
  • sort
  • None of the above
Q.4

Which of the following command is used to count just the number of lines contained in a file?

  • wc -l
  • wc -c
  • wc -w
  • wc -r
  • None of the above
Q.5

Which command is used to change protection mode of files starting with the string emp and ending with 1,or 3?

  • chmod u+x emp[1-3]
  • chmod 777 emp*
  • chmod u+r ??? emp
  • chmod 222 emp?
  • None of the above
Q.6

Which of the following commands is used to copy a file wb from the programs directory into a file called wbx in the misc directory?

  • copy programs/wb misc/wbx
  • cp programs/wb misc/wbx
  • tar programs/wb misc/wbx
  • copy a:programs/wb b:misc/wbx
  • None of the above
Q.7

Which of the following command is used to go to home directory?

  • cd..
  • cd/
  • cd
  • cd HOME.
  • None of the above
Q.8

Which command is used to move all files to the bin sub-directory of the parent directory?

  • mv *.* /bin/
  • mv * /bin/*
  • mv * ../bin
  • mv * ../bin *.*
  • None of the above
Q.9
UNIX is a
  • Compiler
  • Interpreter
  • Operating System
  • linker
Q.10
Which command is used to sort the lines of data in a file in reverse order
  • sort
  • sh
  • st
  • sort -r
Q.11
Which set option is used with vi editor to display line numbers on screen?
  • nm
  • nu
  • ic
  • li
  • E. None of the above
Q.12
The following command can list out all the current active logins.
  • whoami
  • who am i
  • who
  • None of the above.
Q.13
The chmod ugo+rw note command can be represented in octal notation as
  • chmod 555 note
  • chmod 666 note
  • chmod 444 note
  • chmod 333 note
  • E. None of the above
Q.14
Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
  • cp chap?? progs
  • cp chap* progs
  • cp chap[12] /progs/*.*
  • cp chap?? /progs/*
  • E. None of the above
Q.15
Which of the following is not a feature of UNIX?
  • a) multitasking
  • b) multiuser
  • c) portability
  • d) easy to use
Q.16
Which command is used to extract specific columns from the file?
  • cat
  • cut
  • grep
  • paste
  • E. None of the above
Q.17
Unix operating system is written in
  • Ada Language
  • Perl Language
  • C Language
  • Pascal Language
Q.18
Which of the following commands is used to display the directory attributes rather than its contents?
  • ls -F
  • E. None of the above
  • ls -l -d
  • ls -l
  • ls -x
Q.19
Match the following WINDOWS system calls and UNIX system calls with reference to process control and File manipulation.Windows(a) Create - process ()(b) WaitForSingleObject ()(c) CreateFile ()(d) CloseHandle ()UNIX(i) Open ()(ii) Close ()(iii) Fork ()(iv) Wait ()Code :(a) (b) (c) (d)
  • (iii) (iv) (i) (ii)
  • (iv) (iii) (i) (ii)
  • (iv) (iii) (ii) (i)
  • All of above
Q.20
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 −X a+x progs
  • Both A & B
Q.21
Linux partitions are created using the file system:
  • FAT
  • FAT32
  • EXT3
  • All of above
Q.22
In Linux, the subdirectory that contains system configuration files including user passwords:
  • /boot
  • /usr
  • /proc
  • /etc
Q.23
Which of the following OS treats hardware as a file system?
  • UNIX
  • DOS
  • Windows NT
  • Both A & B
Q.24
Which of the following changes permission to deny write permission to group and others?
  • Chmod go-w filex
  • Chmod go w filex
  • Chmod go=w filex
  • All of above
Q.25
Find the odd man out:
  • tail
  • cut
  • wart
  • Both A & B
Q.26
An example of a memory management system call in UNIX is:
  • fork
  • execve
  • sigaction
  • mmap
Q.27
An example of a directory found in most UNIX system is:
  • usr
  • waitpid
  • brk
  • All of above
Q.28
The “nice” command is used in Unix:
  • to decrease the priority of a process
  • to increase the priority of a process
  • to get the highest priority
  • both a and b
Q.29
Which of the following is not an Unix Command ?
  • Whoami
  • wc
  • ls
  • put
Q.30
A system call in Linux operating system to create a new child process, which is a copy of the parent process:
  • access
  • fork
  • flock
  • All of above
0 h : 0 m : 1 s