How does shell execute an command?
Shell is the best interface till date that allows system admins to quickly interact with the operating system in UNIX by allowing them to type command in a terminal. Have you wondered how does it...
View ArticleHow to get Weblogic Server Version via command Line?
Weblogic Server can be managed remotely via a shell script using the weblogic.Admin Java utility with CONNECT as the argument. This class takes in the security credentials (user name/password) and...
View ArticleHow to check if Weblogic Server is Up via command Line?
The following command line Windows BAT shell script can be used to remotely found out if the weblogic Server is up and running. It uses weblogic.Admin class/utility to issue a CONNECT command and see...
View ArticleHow to shutdown Weblogic Server via command Line?
Weblogic Server can be managed remotely via a shell script using the weblogic.Admin Java utility with CONNECT as the argument. This class takes in the security credentials (user name/password) and...
View ArticleHow to concatenate files in Unix?
NAME cat -- concatenate and print filesSYNOPSIS cat [-benstuv] [file ...]DESCRIPTION The cat utility reads files sequentially, writing them to the standard output. The file operands are...
View ArticleHow do you display last part of file in Unix?
NAME tail -- display the last part of a fileSYNOPSIS tail [-F | -f | -r] [-q] [-b number | -c number | -n number] [file ...]DESCRIPTION The tail utility displays the contents of file or, by...
View ArticleHow to sort the directories based on their sizes?
SolutionUse the du command with the sort command as $ du -s * | sort -rn747624 work23856 cards7040 postie680 convert120 thumbsThis will list the the size in bytes for the directories in...
View ArticleHow to find a list of files greater than a given size in Unix?
SolutionUse the find command with ls command to find a list of file in the current directory that are over 1000k or 1MB find . -size +1000k -print0 | xargs -0 ls -lShOutputread more
View ArticleHow does a typical standalone Java program shell script look like?
#!/bin/shecho "########################################################"echo "Sample Run Script"echo "Copyright reserved Developerfeed.com@2010-2012!"echo...
View ArticleHow do you find IP address for a Hostname?
AnswerThe nslookup command is the simplest way to it find out. The nslookup can be run at the terminal or command line using the following syntax.nslookup <hostname>ExampleLet's try to find the...
View Article
More Pages to Explore .....