Suppose 1000 processes are running on the system out of those
if you have to show only certain process ids which command
will you use?

Answer Posted / aseem

It is up to you, how you want. For example suppose you want
to display a range like PID from 1500 to 2000 then

ps -ef | grep '[1500 - 2000]'

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain mount and unmount command.

623


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

802


Which unix command lists files/folders in alphabetical order?

622


What does grep v grep do?

556


Why is shebang used?

600






What do chmod, chown, chgrp commands do?

642


What is grep and how do you use it?

581


What does the command '$ls | wc –l > file1' do?

684


Does cp command overwrite files?

628


What is the use of cut command in unix?

696


Explain ‘library functions’ with respect to unix commands?

606


What is the use of tee command?

573


How do I search a whole word in vim?

697


What does find command return in unix?

598


What do chmod command do?

606