Unixxx
Unixxx
a) file permissions
b) file ownership
c) links
2.Like chmod, chown and chgrp can also use ___ option.
a)-R
b)-r
c)-x
d)-i
a) 0
b) 1
c) 2
d) 4
4.The Octal number to be given along with chmod command to make a file readable, writable and
executable to the owner, readable and executable to group and others is:
a) 000
b) 755
c) 744
d) 555
5.Which of the following commands is used to display the filenames in multiple columns with
indication of directories and executable file?
a) ls -F -x
b) ls – l
c) ls ~ x
d) lp
6.Which of the following symbol is used with chmod to assign permission to a file?
a) A. -
b) +
c) =
d) *
7.Which command is used with file named ‘note’ to remove the executable permission from the user
and assign read permission to the group and others?
a)rw-rw-rw-
b)rwxrwxrwx
c)r-r-r-
d)rw-rw-rwx
c) undefined output
d) erroneous
12.To specify permissions while using find command we have to use _____ option.
a) -perm
b) -inum
c) -name
d) -type
13.What does the following command do?
$ chmodugo +w file01.txt
a) 1024
b) 4021
c) 0022
d) 1001
a) rwxrwx- -x
b) rw- -w-r-x
c) rwxr-xr-x
d) rwxr- -rw–
16.To remove write permission from group and others, which one of the following commands will be
used?
a) chmodgo+w file01
a) a
b) v
c) x
d) o
18.Which file access mode grants the capability to modify, or remove the content of the file?
a) Read
b) Write
c) Execute
20.Hard linked files are provided with the same inode number as the original one.
a) True
b) False
21.Which command is used to display all the lines with the string ‘sales’ from the file empl.lst?
(A) –l
(B) –i
(C) –x
(D) -R
24.The Octal number to be given along with chmod command to make a file readable, writable and
executable to the owner, readable and executable to group and others is:
(A) 000
(B) 755
(C) 744
(D) 555
25.Which command is used to change protection mode of files starting with the string emp and
ending with 1,2, or 3?
(A) ls -l .lst
(B) ls lst
(C) ls .
(D) ls *[lst]
27.In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME
directory.
(A) .exrc
(B) .profile
(C) lastlogin
(D) .mbox
28.Which command is used to make all files and sub-directories in the directory (progs) executable
by all users?
a) group of functions
d) group of commands
32.To run the script, we should make it executable first by using _____?
a) chmod +w
b) chmod +rwx
c) chmod +x
d) chmod +r
33.Which of the following can be used to open file for reading and making changes in shell
programming?
a) r
b) w
c) r+
d) w+
34.Which option will be used with touch command to change the access time
a) -a
b) -b
c) -t
d) –h
35.Which operator will be used with chmod command to assign absolute permission?
a) +
b) -
c) =
d) %
36.Major expressions used with find command to select file is it has been accessed in more than 375
days, is
a) -atime +365
b) -mtime + 365
c) -atime -365
d) -mtime -365
37.Which command is used with file named 'note' to remove the executable permission from the
user and assign read permission to the group and others?
a) chgrp
b) chown
c) chmod
d) chusr
39.Which of the following commands is used to remove files with confirmation prompt from the
user file system which have neither been accessed nor modified i the last one year?
40.Which command is used with vi editor to save file and remain in the editing mode?
a) :q
b) w:
c) :w
d) r!