Write a shell script to save the output of 'ls -ltr' every five minutes and after every hour it should print which all files are changed/modified/created.
Latest Answer: find . -mtime 0 # find files modified between now and 1 day ago (i.e., within the past 24 hours)find . -mtime -1 # find files modified less than 1 day ago (i.e., within the past 24 hours, as before)find . -mtime 1 ...
In shell scripting How to indentify that the previous command was run successfully?
Latest Answer: Using echo $? ...
How will you write a shell script to connect to SQL database?
Latest Answer: 1> #!/bin/ksh
2>
3> sqlplus /nolog < /dev/null
4>
5> connect USER/PASSWORD@DATABASENAME
6>
7> WHENEVER SQLERROR EXIT 5
8> WHENEVER OSERROR EXIT 10
9>
10> @ONE.sql
11>
----------------------------------------------
given ...
What does UID and GID signify?
Latest Answer: To find a user's UID or GID in Unix, use the id command.
To find a specific user's UID, at the Unix prompt, enter:
id -u username
Replace username with the appropriate user's username.
To find a user's GID, at the Unix prompt, enter:
id -g username ...
What are the different security mechanisms available in UNIX?
Latest Answer: Unix is having 3 ways of Security Mechanism:1. By granting or revoking File permissions. Owner or Admin can change permissions to be given to group or others by using chmod command in Unix.2. Login is restricted using login credetials ( User name and ...
What are the different types of shells available in UNIX?
Latest Answer: bourne (sh)c shell (csh)korn (ksh)bourne again shell (bash)TC shell (tcsh) ...
how many users have logged in and logged out in last five or 10 minutes
Latest Answer: Using SIGALRM ...
nishanth.sed1h2,10{H;g}$q1,9dNDinput_fileaabbccddeeffgghhiijjkkllmmscriptsed -f nishanth.sed input_file
You have current directory containing set of directories which contain files.One file can reside in many directories.Write script which returns number of unique file names inall the subdirectories of
Latest Answer: set -x
input_string=$1
if [ -z "$input_string" ] ; then
echo "Please enter a Text along with the script namen"
exit
fi
reversed_string=$(rev $input-string)
if [ "$input_string" -eq "$reverse_string" ] ; ...
Latest Answer: Make provides most help when the program consists of many component files. As the number of files in the program increases so to does the compile time, complexity of compilation command and the likelihood of human error when entering command lines, i.e. ...
View page [1] 2 3 4 5 Next >>

Go Top