Unix – Section 3


Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

21. The command used to remove the directory is;

A. rmdir
B. rd
C. remove
D. rdir
E. None of the above

Correct Answer: A. rmdir
Advertisement

22. Which symbol will be used with grep command to match the pattern pat at the end of a line?

A. ^pat
B. $pat
C. pat$
D. pat^
E. None of the above

Correct Answer: C. pat$
Advertisement

23. Which command is used to display all the lines with the string ‘sales’ from the file empl.lst?

A. cut sales empl.lst
B. /sales > empl.lst
C. grep sales empl.lst
D. cat | /sales > empl.lst
E. None of the above

Correct Answer: C. grep sales empl.lst
Advertisement

24. Which of the following commands is not the vi Input mode command?

A. rch
B. R
C. S
D. j
E. None of the above

Correct Answer: D. j
Advertisement

25. Which of the following commands is used to remove files?

A. erase
B. delete
C. rm
D. dm
E.  . None of the above

Correct Answer: C. rm
Advertisement

Warning: Undefined variable $in_same_cat in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27
< PREVIOUS POSTUnix - Section 2

Leave A Comment?