Question
echo today is:
date
If you type x.then
a.
It echoes the message. followed by date.
b.
It gives the desired output only if the execute permission of file x is set.
c.
The desired output can be got by the command sh x. which works even if x has its execute permission not set.
d.
Both (b) and (c)
Posted under UNIX
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. A file x is created with the following contents echo today is: date If you type x.then
Similar Questions
Discover Related MCQs
Q. Shell script is preferable to other forms of programming because it
View solution
Q. Choose the incorrect statement.
View solution
Q. Files that store data in the same format as used in program are called
View solution
Q. To allow only one user to work with a particular file at a particular time, one has to use
View solution
Q. Which of the following remarks about realloc are true?
View solution
Q. The differences between malloc( ) and calloc() are:
View solution
Q. The file that stores an integer as a sequence of characters is a
View solution
Q. If cat x. prints garbage. then x is probably a
View solution
Q. Which of the following file names can be found in more than one directory?
View solution
Q. /bin
View solution
Q. Which of the following information is not present in an i-node ?
View solution
Q. The system identifies a file by its
View solution
Q. The system identifies the end of a file by the
View solution
Q. The command line argument a.out x 'a b' "c d"
View solution
Q. Which of the following metacharacters will be recognized by the shell, even if it comes within double quotes?
View solution
Q. lint should be used
View solution
Q. Environment variables can be accessed by
View solution
Q. Which of the following are character special files
View solution
Q. The .(dot) shell command
View solution
Q. m4
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? 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!