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 command is used to display all the lines with the string 'sales' from the file empl.lst?
Options
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
grep sales empl.lst
Unix problems
Search Results
1. The command that can be used to restrict incoming messages to a user is
Options
A. mesg
B. grep
C. halt
D. sleep
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: mesg
2. Major expressions used with find command to select file is it has been accessed in more than 375 days, is
Options
A. -atime +365
B. -mtime + 365
C. -atime -365
D. -mtime -365
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: -atime +365
3. The special shell variable $* is used
Options
A. to exit status of ast command executed.
B. to process number of the current shell
C. to list the positional parameters
D. to name the command being executed
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: to list the positional parameters
4. Which of the following commands is used to have a two-way communication with any person who is currently logged in?
Options
A. mail
B. mesg
C. write
D. grep
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: write
5. The UNIX file system stores a data in physical blocks of
Options
A. 1024 bytes
B. 2048 bytes
C. 512 bytes
D. 256 bytes
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: 512 bytes
6. Which command is used to save the standard output in a file, as well as display it on the terminal?
Options
A. more
B. cat
C. grep
D. tee
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: tee
7. The [line number G] key allows you
Options
A. to move cursor left by one position
B. to move cursor right by one position
C. to move cursor down by one line
D. to move cursor to the beginning of the line specified by the number
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: to move cursor to the beginning of the line specified by the number
8. Which command is used with vi editor to save file and remain in the editing mode?
Options
A. :q
B. :w
C. q!
D. :x
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: :w
9. Which command is used to terminate all processes in your own system except the login shell?
Options
A. kill 1
B. kill 0
C. cancel all
D. cancel 1
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: kill 0
10. Which of the following commands is used to display the filenames in multiple columns?
Options
A. ls
B. ls -1
C. ls -x
D. lc
E. None of the above
Show Answer
Scratch Pad
Discuss
Correct Answer: ls -x
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