Tag Archives: User



Size of Directories

Get the real file or directory size in unix or linux

All BASH users (Linux, Unix, OSX, etc) use the ls command, but when we want to know how much disk space has been used, the ls command just doesn’t cut it sometimes. While it is a useful command for listing information about files in a directory, or the directory structure, it doesn’t give you the overall space that a directory uses – including the files Read More →

javascript return confirm() – user redirection

The javascript “confirm” script is used on a webpage where you need to give the user a choice. If they press the OK button in the popup, it redirects them. If they press cancel, then it cancels the script and leaves things as is. <script type="text/javascript">  <!–  function confirmation() {    var answer = confirm("Put pop up window message here")    if (answer){     Read More →