$ uname -r
It will display current linux version
$ uname -a
It will display all the information with version
$ cat /proc/version
It will also display version and release information of Linux
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
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}
$ 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
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
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
Thursday, August 18, 2016
vi editor cursor navigation commands / shortcuts
Cursor navigation
G - go to the last line
gg - go to the first line
100G - go to the 100th line
J - Down
K - Up
H - Left
L - Right
G - go to the last line
gg - go to the first line
100G - go to the 100th line
J - Down
K - Up
H - Left
L - Right
Subscribe to:
Posts (Atom)