CuriousTab
Search
CuriousTab
Home
Aptitude
Computer
C Programming
C# Programming
C++ Programming
Database
Java Programming
Networking
Engineering
Biochemical Engineering
Biochemistry
Biotechnology
Chemical Engineering
Civil Engineering
Computer Science
Digital Electronics
Electrical Engineering
Electronics
Electronics and Communication Engineering
Mechanical Engineering
Microbiology
Technical Drawing
GK
Current Affairs
General Knowledge
Reasoning
Data Interpretation
Logical Reasoning
Non Verbal Reasoning
Verbal Ability
Verbal Reasoning
Exams
AIEEE
Bank Exams
CAT
GATE
IIT JEE
TOEFL
Jobs
Analyst
Bank PO
Database Administrator
IT Trainer
Network Engineer
Project Manager
Software Architect
Discussion
Home
‣
Computer Science
‣
Unix
Comments
Question
Which of the following commands is used to count the total number of lines, words, and characters contained in a file.
Options
A. count p
B. wc
C. wcount
D. countw
E. None of the above
Correct Answer
wc
Unix problems
Search Results
1. Which command is used to delete all files in the current directory as well as all files and sub-directories in its subdirectories?
Options
A. rm *
B. rm -r *
C. rm all
D. rm *.*
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: rm -r *
2. Which command is used to set the three permissions for all the three categories of users of a file?
Options
A. chgrp
B. chown
C. chmod
D. chusr
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: chmod
3. Which command is used to locate all the .profile files in the system?
Options
A. ls profile
B. find /-name profile -print
C. cd /.profile
D. l -u .profile
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: find /-name profile -print
4. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?
Options
A. copy programs/wb misc/wb
B. cp programs/wb misc
C. tar programs/wb misc/wb
D. copy a:programs/wb b:misc/wb
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: cp programs/wb misc
5. Which of the following commands is used to assign executable permission to the owner of the file named "note"?
Options
A. chmod g+x note
B. chmod u+w note
C. chmod u+x note
D. chmod ugo+x note
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: chmod u+x note
Explanation:
Users selection:
u - user: the owner of the file.
g - group: users who are members of the file's group.
o - others: users who are not the owner of the file or members of the group.
a - all: all three of the above, is the same as ugo.
Permissions:
r - read
w - write
x - execute
So, u+x => Execute (x) permission to Owner (u).
6. Which command is used to create a directory?
Options
A. crdir
B. md
C. mkdir
D. cr
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: mkdir
7. Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?
Options
A. tch
B. fch
C. rch
D. ech
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: fch
8. Which of the following commands is used to copy directory structures in and out
Options
A. cp
B. cpio
C. cp - p
D. copy
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: cpio
9. Which operator will be used with chmod command to assign absolute permission?
Options
A. +
B. -
C. =
D. %
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: =
10. Which command will be used with vi editor to append text at end of line?
Options
A. A
B. a
C. i
D. I
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: A
Comments
There are no comments.
Enter a new Comment
Save
More in Computer Science:
Artificial Intelligence
Automation System
Computer Fundamentals
Computer Hardware
Database Systems
Digital Computer Electronics
Disk Operating System (DOS)
Electronic Principles
Language Processors
Linux
Management Information Systems
Networking
Object Oriented Programming Using C++
Operating Systems Concepts
System Analysis and Design
Unix
Windows 2000 Server
Windows NT