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 list contents of directories?
Options
A. ls
B. lp
C. dir
D. tar
E. None of the above
Correct Answer
ls
Unix problems
Search Results
1. Which option is used with rm command to make the command prompt the user with each filename and a?, before acting on it
Options
A. -r
B. -x
C. -i
D. -1
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: -i
2. Which command sends the word count of the file infile to the newfile.
Options
A. wc infile >newfile
B. wc <infile >newfile
C. wc infile - newfile
D. wc infile | newfile
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: wc infile >newfile
3. The field separator in cut command is specified with
Options
A. -a option
B. -d option
C. -r option
D. -x option
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: -d option
4. Which command is used to extract specific columns from the file?
Options
A. cat
B. cut
C. grep
D. paste
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: cut
5. Which command is used to count just the number of characters in a file?
Options
A. wc - 1
B. wc -c
C. wc -w
D. wc -r
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: wc -c
6. Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?
Options
A. -m.n
B. +m.n
C. + n.m+1
D. +(m+l).n
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: +m.n
7. Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?
Options
A. cat emp[!0-9]
B. more [emp][!0-9]
C. cat emp[x-z]
D. cat emp[a-z]
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: cat emp[!0-9]
8. Which command is used to copy all files having the string chap and any two characters after that to the progs directory?
Options
A. cp chap?? progs
B. cp chap* progs
C. cp chap[12] /progs/*.*
D. cp chap?? /progs/*
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: cp chap?? progs
9. Which command is used to display and create files?
Options
A. cat
B. vi
C. ed
D. lyrix
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: cat
10. Which of the following commands is used to display the directory attributes rather than its contents?
Options
A. ls -l -d
B. ls -l
C. ls -x
D. ls -F
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: ls -l -d
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