Unix/Linux Go Back    

Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Difference between commands


Closed Linux or Unix Question    
Thread Tools Search this Thread Display Modes
Old Unix and Linux 12-04-2012
smazshah smazshah is offline
Registered User
Join Date: Nov 2012
Last Activity: 4 November 2013, 5:32 AM EST
Location: earth
Posts: 40
Thanks: 1
Thanked 0 Times in 0 Posts
Difference between commands

i need to know the difference between two commands

ps -ef|grep oracle
ps -ef|grep -v grep |grep oracle

Last edited by Scott; 12-04-2012 at 08:52 AM.. Reason: Cde tags
Sponsored Links
Old Unix and Linux 12-04-2012
Scott's Unix or Linux Image
Scott Scott is offline Forum Staff  
Join Date: Jun 2009
Last Activity: 19 June 2016, 12:16 PM EDT
Location: Zürich
Posts: 8,594
Thanks: 341
Thanked 1,090 Times in 947 Posts
The second one excludes grep itself from the result, and can also be achieved like:

ps -ef | grep [o]racle

You could easily have found an answer to this by searching the net, or the forum. Please search first.
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
HACMP: difference between 'cl' commands and 'cli' commands peppix AIX 0 06-21-2011 02:43 AM
Difference between the commands saiki Shell Programming and Scripting 0 06-17-2010 02:55 AM
Difference in commands grin1dan UNIX for Dummies Questions & Answers 4 06-22-2009 04:26 PM
difference between these commands?? wrapster Solaris 3 02-22-2008 02:38 PM
what's the difference of these two commands? kfad UNIX for Dummies Questions & Answers 3 04-25-2005 10:40 AM

All times are GMT -4. The time now is 06:07 AM.