<html>
<body>
<h1>Welcome to my Website</h1>
<h4 id=”msg”>You will be redirected to another page in 5 seconds!</h4>
<script type=”text/javascript”>
function countDown(i, callback) {
callback = callback || function(){};
var int = setInterval(function() {
//document.getElementById(“displayDiv”).innerHTML = “Number: ” + i;
document.getElementById(“msg”).innerHTML = “You will be redirected to backend page in “+i+” seconds!”;
i– || (clearInterval(int), callback());
}, 1000);
}
setTimeout(function(){
countDown(5, function(){
window.location=”[Give your absolute or relative url to redirect]”;
});
}, 3000);
</script>
</body>
</html>
Month: January 2018
How to untar or uncompress tar or tar.gz file
Untar files in Current Directory
tar xvf whatevername_yougive.tar
If you want to untar in specified directory
tar xvf whatevername_yougive.tar -C /path/of/directory/to/un-archive
Check how to compress or create tar file here
How to create tar archive file in linux
The below command will create a tar archive file whatevername_yougive.tar for a directory /path/of/directory/to/archive in current working directory.
See the example below.
tar cvf whatevername_yougive.tar /path/of/directory/to/archive
The options detail are explained as below
c – Creates a new .tar archive file.
v – Verbosely show the .tar file progress.
f – File name type of the archive file.
Similarly to create tar.gz file
tar cvzf whatevername_yougive.tar.gz /path/of/directory/to/archive
To untar or uncompress a tar file check here