Question
a.
$ tr ‘[a-z]’ ‘[A-Z]’ shortlist | head-3
b.
$ head-3 shortlist | tr ‘[a-z]’ ‘[A-Z]’
c.
$ tr head-3 shortlist ‘[A-Z]’ ‘[a-z]’
d.
$ tr shortlist head-3 ‘[a-z]’ ‘[A-Z]’
Posted under UGC NET computer science question paper UNIX System
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Unix command to change the case of first three lines of file “shortlist” from lower to upper
Similar Questions
Discover Related MCQs
Q. Match the following vi commands in Unix:
List-I List-II
a. :w i. saves the file and quits
editing mode
b. :x ii. escapes unix shell
c. :q iii. saves file and remains
in editing mode
d. :sh iv. quits editing mode and
no changes are saved to
the file
Codes:
a b c d
View solution
Q. The Unix Operating System Kernel maintains two key data structures related to processes, the process table and the user structure. Now, consider the following two statements:
I. The process table is resident all the time and contain information needed for all processes, even those that are not currently in memory.
II. The user structure is swapped or paged out when its associated process is not in memory, in order not to waste memory on information that is not needed.
Which of the following options is correct with reference to above statements ?
View solution
Q. Consider the following operations to be performed in Unix:
“The pipe sorts all files in the current directory modified in the month of “June” by order of size and prints them to the terminal screen. The sort option skips ten fields then sorts the lines in numeric order.”
Which of the following Unix command will perform above set of operations?
View solution
Q. 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.
View solution
Q. In UNIX, processes that have finished execution but have not yet had their status collected are known as ................
View solution
Q. 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?
View solution
Q. Which of the following information about the UNIX file system is not correct?
View solution
Q. Which of the following option with reference to UNIX operating system is not correct?
View solution
Q. What is the function of following UNIX command?
WC – l < a >b&
View solution
Q. Which of the following statement is not correct with reference to cron daemon in UNIX O.S?
View solution
Q. In Unix, files can be protected by assigning each one a 9-bit mode called rights bits. Now, consider the following two statements:
I. A mode of 641 (octal) means that the owner can read and write the file, other members of the owner’s group can read it, and users can execute only.
II. A mode of 100 (octal) allows the owner to execute the file, but prohibits all other access.
Which of the following options is correct with reference to above statements?
View solution
Q. In Unix, the login prompt can be changed by changing the contents of the file ...............
View solution
Q. A unix file system has 1-KB blocks and 4-byte disk addresses. What is the maximum file size if i-nodes contain 10 direct entries and one single, double and triple indirect entry each?
View solution
Q. In Unix operating system, special files are used to :
View solution
Q. Match the following in Unix file system :
List - I List - II
(a) Boot block (i) Information about file system
(b) Super block (ii) Information about file
(c) Inode table (iii) Storage space
(d) Data block (iv) Code for making OS ready
Codes :
(a) (b) (c) (d)
View solution
Q. In Unix, the command to enable execution permission for file “mylife” by all is ................
View solution
Q. What will be the output of the following Unix command ?
$rm chap0\[1 - 3\]
View solution
Q. Which of the following out commands will output "onetwothree"?
View solution
Q. Assume that an implementation of Unix operating system uses i-nodes to keep track of data blocks allocated to a file. It supports 12 direct block addresses, one indirect block address and one double indirect block address. The file system has 256 bytes block size and 2 bytes for disk block address. The maximum possible size of a file in this system is
View solution
Q. Which of the following set of Unix commands will always display “WELCOME” ?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX System? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!