Monday, August 22, 2016

Find websphere version in unix server

$ {appRootPath}/bin/versionInfo.sh

It will display the current websphere version information

{appRootPath} - directory path where the websphere component is installed

Find IP address in unix server

$ /sbin/ifconfig

It will display IP address in "ip addr:" section

Saturday, August 20, 2016

Creating multiple files in unix/linux

If you want to create a set of files like filename1, filename2,.., you can use touch command like below

$ touch filename{1,2,3}

$ ls -ltr
$ filename1 filename2 filename3

You could also use ranges to create multiple files

$ touch filename{1..5}

$ ls -ltr
$ filename1 filename2 filename3 filename4 filename5

You could also use any string of characters like below

$ touch {a..c}{1..5}

$ ls
a1  a2  a3  a4  a5  b1  b2  b3  b4  b5  c1  c2  c3  c4  c5

And you can use below command to remove set of files

$ rm -f {a..c}{1..5}

Friday, August 19, 2016

Nokia E72 Factory Reset

Nokia E72 - Factory reset command

Dial  *#7370#

It will ask lock code. Default lock code is 12345

Enter lock code and press [Ok]

Then, your phone will reset and restart in a while

Note: Factory reset will delete all your data from your phone

To check directory size in unix

$ du -sh *

It will display the size of all the directories, files in current directory

$ du -sh directoryname

It will display the total size of the given directory

Example:
$ du -sh dir*
$ 5G      dir1
$ 1G      dir2

Wednesday, August 17, 2016

vi Editor Save / Quit command

Following commands to Save or Quit from vi editor

ZZ or :wq - Save and exit from vi editor (Shift + ZZ)
:w - Save and continue to edit
:q! - Quit without saving changes