Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

is there any option for grep only non default processes and services? I know how show all of this and export to file, but manual reading and deleting line by line is not ideal. :-)

Thanks for your answer.

share|improve this question
3  
grep selects lines from files or a stream based on patterns. You'll have to explain what you mean by default processes and services. I'm guessing you're grepping the output of ps with some options, but even then, what you mean by default processes and services is vague. –  geirha Jan 26 at 12:08
    
I'd like get as output all what was installed after installation. That is for purpose as preparation before upgrade server. –  zorbon.cz Jan 26 at 12:10
    
Try: cat /var/log/apt/history.log | awk '/Commandline: apt-get install/ { $1=$2=$3=""; print $0}' and see (but I doubt it myself :) –  edwin Jan 26 at 14:10
    
If you are interested in a list of installed packages you should edit your question to make this clear - most people will read "processes and services" to mean running processes such as you would see in the output of ps. –  steeldriver Jan 26 at 14:20
    
No only list of packages, I need list of processes and services which was installed after installation OS and which running with custum parameters. But how I see that was easily make it manually. :-) –  zorbon.cz Jan 26 at 16:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.