Tuesday, April 7, 2015

UNIX Commands

 

  • to check and see if anything is already running do the following :  ps -ef | grep weblogic

  • to start weblogic  nohup ./startWebLogic.sh &

  • to read the file : tail -f nohup.out

  • Ctrl+C – halts the current command
  • id - shows all users, groups with id in brackets
  • date - shows date on the server
  • lastb | grep -i *some-text* - shows list of similar patterns. 
  • show last logged in users lastb
last, lastb - shows listing of last logged in users


How to start SVN Repo
  • Step 1: cd /home/WL12c/src/csvn/bin 
  • Step 2: ./csvn start

How to copy some x number of lines in nohup.out to a text file
  •  tail -2000 nohup.out | less > vj.txt & 

No comments:

Post a Comment