Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged shell-script
1
votes
1
answer
1
UGC NET CSE | June 2019 | Part 2 | Question: 50
Which of the following UNIX/Linux pipes will count the number of lines in all the files having .c and .h as their extension in the current working directory? cat $* \cdot$ ch $ \: \mid$ wc $-1$ cat $* \cdot [$ c-h $] \: \mid$ wc $-1$ cat $* \cdot [$ ch $] \: \mid$ ls $-1$ cat $* \cdot [$ ch $] \: \mid$ wc $-1$
Which of the following UNIX/Linux pipes will count the number of lines in all the files having .c and .h as their extension in the current working directory?cat $* \cdot$...
Arjun
1.3k
views
Arjun
asked
Jul 2, 2019
Operating System
ugcnetcse-june2019-paper2
shell-script
+
–
0
votes
0
answers
2
GATE CSE 1989 | Question: 4-xiii
Provide short answers to the following questions: Consider the following sequence of UNIX commands: grep main a.c b.c c.c > grepout & wc < grepout & rm grepout & Why is this not equivalent to the following? grep main a.c.b.c c.c | wc
Provide short answers to the following questions:Consider the following sequence of UNIX commands:grep main a.c b.c c.c grepout & wc < grepout & rm grepout &Why is this ...
makhdoom ghaya
525
views
makhdoom ghaya
asked
Nov 30, 2016
Operating System
descriptive
gate1989
operating-system
shell-script
out-of-gate-syllabus
+
–
3
votes
1
answer
3
UGC NET CSE | June 2016 | Part 3 | Question: 69
In Unix, files can be protected by assigning each one a 9-bit mode called rights bits, now, consider the following two statements: A mode of 641 (octal) means that the owner can read and write the file, other members of the owner's ... to above statements? Only I is correct Only II is correct Both I and II are correct Both I and II are incorrect
In Unix, files can be protected by assigning each one a 9-bit mode called rights bits, now, consider the following two statements:A mode of 641 (octal) means that the own...
go_editor
4.2k
views
go_editor
asked
Aug 21, 2016
Operating System
ugcnetcse-june2016-paper3
unix
shell-script
+
–
2
votes
1
answer
4
UGC NET CSE | June 2016 | Part 3 | Question: 68
Which of the following statements is not correct with reference to cron daemon in UNIX OS? The cron daemon is the standard tool for running commands on a predetermined-schedule It starts when the system boots and runs as long as ... files that contain list of command lines and the times at which they invoked Crontab for individual users are not stored
Which of the following statements is not correct with reference to cron daemon in UNIX OS?The cron daemon is the standard tool for running commands on a predetermined-sch...
go_editor
2.9k
views
go_editor
asked
Aug 21, 2016
Operating System
ugcnetcse-june2016-paper3
unix
shell-script
+
–
4
votes
1
answer
5
UGC NET CSE | Junet 2015 | Part 3 | Question: 75
The unix command: $ vi file1 file2 Edits file1 and stores the contents of file1 in file2 Both files i.e., file1 and file2 can be edited using 'ex' command to travel between the files Both files can be edited using 'mv' command to move between the files Edits file1 first, saves it and then edits file2
The unix command: $ vi file1 file2Edits file1 and stores the contents of file1 in file2Both files i.e., file1 and file2 can be edited using 'ex' command to travel between...
go_editor
1.8k
views
go_editor
asked
Aug 2, 2016
Operating System
ugcnetcse-june2015-paper3
shell-script
+
–
1
votes
1
answer
6
UGC NET CSE | Junet 2015 | Part 2 | Question: 39
What does the following command do? grep -vn "abc" x It will print all of the lines in the file x that match the search string "abc" It will print all of the lines in file x that do not match the search ... "abc" It will print the specific line numbers of the file x in which there is a match for string "abc"
What does the following command do? grep -vn "abc" xIt will print all of the lines in the file x that match the search string "abc"It will print all of the lines in file ...
go_editor
2.2k
views
go_editor
asked
Jul 30, 2016
Operating System
ugcnetcse-june2015-paper2
operating-system
shell-script
non-gate
+
–
1
votes
1
answer
7
UGC NET CSE | September 2013 | Part 3 | Question: 75
Which of the following statements is not true for UNIX Operating System? Major strength of UNIX Operating System is its open standards which enables large number of organizations ranging from academicia to industries to participate in ... simplify the management of I/O devices and files. The directories structure used is directed acyclic graph.
Which of the following statements is not true for UNIX Operating System?Major strength of UNIX Operating System is its open standards which enables large number of organi...
go_editor
3.5k
views
go_editor
asked
Jul 24, 2016
Operating System
ugcnetcse-sep2013-paper3
unix
shell-script
+
–
3
votes
1
answer
8
UGC NET CSE | September 2013 | Part 3 | Question: 72
Which of the following shell scripts will produce the output “my first script”? for i in my first script { echo –i $i } for my first script; do echo –n; done for i in my first script; do echo –i $i; done for n in my first script; do echo –i $i; done
Which of the following shell scripts will produce the output “my first script”?for i in my first script { echo –i $i }for my first script; do echo –n; donefor i i...
go_editor
1.6k
views
go_editor
asked
Jul 24, 2016
Operating System
ugcnetcse-sep2013-paper3
unix
shell-script
non-gate
+
–
0
votes
1
answer
9
UGC NET CSE | June 2014 | Part 3 | Question: 39
Match the following with reference to Unix shell scripts $:$ ... $\text{a-iv, b-iii, c-i, d-ii}$ $\text{a-i, b-iii, c-i, d-iv}$
Match the following with reference to Unix shell scripts $:$$\begin{array}{clcl} & \textbf{List – I} & & \textbf{List – II} \\ \text{a.} & \text{\$?} & \text{i.} & ...
makhdoom ghaya
1.6k
views
makhdoom ghaya
asked
Jul 10, 2016
Others
ugcnetjune2014iii
unix
shell-script
+
–
0
votes
1
answer
10
UGC NET CSE | June 2014 | Part 2 | Question: 35
Which of the following commands will output “onetwothree” ? for val; do echo-n $val; done < one two three for one two three; do echo-n-; done for n in one two three; do echo-n $n; done for n in one two three {echo –n $ n}
Which of the following commands will output “onetwothree” ?for val; do echo-n $val; done < one two threefor one two three; do echo-n-; donefor n in one two th...
makhdoom ghaya
1.9k
views
makhdoom ghaya
asked
Jun 29, 2016
Others
ugcnetcse-june2014-paper2
non-gate
unix
shell-script
+
–
0
votes
0
answers
11
shell program
Which of the following commands will output “onetwothree” ? (A) for val; do echo-n \$val; done <one two three (B) for one two three; do echo-n-;done (C) for n in one two three; do echo-n \$n; done (D) for n in one two three {echo –n \$ n}
Which of the following commands willoutput “onetwothree” ?(A) for val; do echo-n \$val; done <one two three(B) for one two three; do echo-n-;done(C) for n in one two ...
Sanjay Sharma
571
views
Sanjay Sharma
asked
May 12, 2016
Operating System
shell-script
non-gate
+
–
7
votes
2
answers
12
GATE IT 2005 | Question: 18
The shell command find -name passwd -print is executed in /etc directory of a computer system running Unix. Which of the following shell commands will give the same information as the above command when executed in the same directory? ls passwd cat passwd grep name passwd grep print passwd
The shell commandfind -name passwd -printis executed in /etc directory of a computer system running Unix. Which of the following shell commands will give the same informa...
Ishrat Jahan
3.2k
views
Ishrat Jahan
asked
Nov 3, 2014
Operating System
gateit-2005
operating-system
shell-script
normal
out-of-syllabus-now
+
–
9
votes
2
answers
13
GATE IT 2005 | Question: 17
A student wishes to create symbolic links in a computer system running Unix. Three text files named $``\text{file 1}", ``\text{file 2}"$ and $``\text{file 3}"$ exist in her current working directory, and the student has read and ... information would be lost from her file system? Hobbies Friends Courses I and II only II and III only II only I and III only
A student wishes to create symbolic links in a computer system running Unix. Three text files named $ \text{file 1}", \text{file 2}"$ and $ \text{file 3}"$ exist in h...
Ishrat Jahan
4.1k
views
Ishrat Jahan
asked
Nov 3, 2014
Operating System
gateit-2005
operating-system
shell-script
out-of-syllabus-now
normal
+
–
1
votes
1
answer
14
GATE IT 2007 | Question: 59
The contents of the text file t1 txt containing four lines are as follows : a1 b1 a2 b2 a3 b2 a4 b1 The contents of the text file t2 txt containing five lines are as follows : a1 c1 a2 c2 a3 c3 a4 c3 a5 c4 Consider the following Bourne ... that the given strings may be substrings of a printed line.) "b1 c1" "b2 c3" "b1 c2" "b1 c3"
The contents of the text file t1 txt containing four lines are as follows :a1 b1a2 b2a3 b2a4 b1The contents of the text file t2 txt containing...
Ishrat Jahan
1.5k
views
Ishrat Jahan
asked
Oct 30, 2014
Operating System
gateit-2007
out-of-syllabus-now
shell-script
normal
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register