Unix – Section 2


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 to count the number of files in the current directory by using pipes, is

A. ls | wc
B. ls -l | wc -l
C. ls | wc -w
D. ls | ws -c
E. None of the above

Correct Answer: C. ls | wc -w
Advertisement

22. Which of the following commands is used to get directory one level up?

A. cd
B. cd ..
C. cd/
D. chdir
E. None of the above

Correct Answer: B. cd ..
Advertisement

23. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.

A. count p
B. wc
C. wcount
D. countw
E. None of the above

Correct Answer: B. wc
Advertisement

24. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?

A. rm *
B. rm -r *
C. rm all
D. rm *.*
E. None of the above

Correct Answer: B. rm -r *
Advertisement

25. Which of the following commands is used to change the working directory?

A. cd
B. changedir
C. chdir
D. cdir
E. None of the above

Correct Answer: A. cd
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 1
NEXT POST >Unix - Section 3

Leave A Comment?