Go Back   The UNIX and Linux Forums > Operating Systems > Solaris


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.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 12-04-2012
Registered User
 
Join Date: Nov 2012
Location: earth
Posts: 26
Thanks: 1
Thanked 0 Times in 0 Posts
Difference between commands

i need to know the difference between two commands


Code:
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
    #2  
Old 12-04-2012
Scott's Avatar
Scott Scott is offline Forum Staff  
Administrator
 
Join Date: Jun 2009
Location: Zürich
Posts: 6,908
Thanks: 212
Thanked 753 Times in 657 Posts
The second one excludes grep itself from the result, and can also be achieved like:


Code:
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
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 09:22 PM.