Computer Science - Unix

Exercise : Unix - Section 2
21.
The command to count the number of files in the current directory by using pipes, is
ls | wc
ls -l | wc -l
ls | wc -w
ls | ws -c
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

22.
Which of the following commands is used to get directory one level up?
cd
cd ..
cd/
chdir
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

23.
Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
count p
wc
wcount
countw
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

24.
Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
rm *
rm -r *
rm all
rm *.*
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

25.
Which of the following commands is used to change the working directory?
cd
changedir
chdir
cdir
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.