SHARE
TWEET

command demo

a guest Jan 21st, 2013 28 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. bash-4.2$ which command
  2. which: no command in (/usr/lib/jvm/java-7-openjdk/jre/bin:/usr/lib/jvm/java-7-openjdk/bin:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/local/bin:/usr/bin:/bin)
  3.  
  4. bash-4.2$ date() { echo 'at the end of days...'; }
  5.  
  6. bash-4.2$ date
  7. at the end of days...
  8.  
  9. bash-4.2$ command date
  10. Mon Jan 21 17:56:16 EET 2013
  11.  
  12. bash-4.2$ dash
  13.  
  14. $ date() { echo 'at the end of days...'; }
  15.  
  16. $ date
  17. at the end of days...
  18.  
  19. $ command date
  20. Mon Jan 21 17:56:40 EET 2013
  21.  
  22. bash-4.2$ ksh
  23.  
  24. $ date() { echo 'at the end of days...'; }
  25.  
  26. $ date
  27. at the end of days...
  28.  
  29. $ command date
  30. Mon Jan 21 17:57:20 EET 2013
  31.  
  32. bash-4.2$ zsh
  33.  
  34. manatwork% date() { echo 'at the end of days...'; }
  35.  
  36. manatwork% date
  37. at the end of days...
  38.  
  39. manatwork% command date
  40. Mon Jan 21 17:57:45 EET 2013
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top