How do I find the UUID of a filesystem

Another command that might be available and also works quite well for this is ‘blkid’. It’s part of the e2fsprogs package. Examples of it’s usage: Look up data on /dev/sda1: topher@crucible:~$ sudo blkid /dev/sda1 /dev/sda1: UUID=”727cac18-044b-4504-87f1-a5aefa774bda” TYPE=”ext3″ Show UUID data for all partitions: topher@crucible:~$ sudo blkid /dev/sda1: UUID=”727cac18-044b-4504-87f1-a5aefa774bda” TYPE=”ext3″ /dev/sdb: UUID=”467c4aa9-963d-4467-8cd0-d58caaacaff4″ TYPE=”ext3″ Show UUID data … Read more

Run a .bat file in a scheduled task without a window

You could run it silently using a Windows Script file instead. The Run Method allows you running a script in invisible mode. Create a .vbs file like this one Dim WinScriptHost Set WinScriptHost = CreateObject(“WScript.Shell”) WinScriptHost.Run Chr(34) & “C:\Scheduled Jobs\mybat.bat” & Chr(34), 0 Set WinScriptHost = Nothing and schedule it. The second argument in this … Read more

Nginx enable site command

If you have installed the nginx package from the Ubuntu repositories, you will have two directories. /etc/nginx/sites-enabled and /etc/nginx/sites-available. In the main nginx configuration, /etc/nginx/nginx.conf, you have the following line: include /etc/nginx/sites-enabled/*.conf; So basically to list all available virtualhosts, you can run the following command: ls /etc/nginx/sites-available To activate one of them, run the following … Read more