Skip to main content

Posts

Disk Usage

https://docs.microsoft.com/en-us/sysinternals/downloads/du Download Disk Usage

VMware vCenter Settings

Database Retention Policy Let's set it 90 days. Database Retention Policy

Archive log files

:: Daily archive log files older than n days :: Created date: YYYYMMDD :: Created by: :: Last modified: YYYYMMDD :: Last modified by: :: History: :: SET DIRLOG=D:\_scripts\Logs\ SET ziptype=gz SET days=1 :: archive files ECHO "Begin" >> %dirlog%daily-archive-logfiles.txt DATE /T >> %dirlog%daily-archive-logfiles.txt TIME /T >> %dirlog%daily-archive-logfiles.txt FORFILES /P %DIRLOG% /S /M *.log /D -%days% /C "cmd /c ^0x22C:\Program^ Files\7-Zip\7z.exe^0x22 a -tgzip @path.gz @path" >> %dirlog%daily-archive-logfiles.txt ECHO "Finished" >> %dirlog%daily-archive-logfiles.txt DATE /T >> %dirlog%daily-archive-logfiles.txt TIME /T >> %dirlog%daily-archive-logfiles.txt :: END of script

VMware Workstation: Backup inventory and preferences

Backup these two files in your profile.

Ubuntu: Install Midnigth Commander (mc)

sudo apt install mc

Freeware: WinSCP

Powershell: head and tail command

Use head or tail to skim the first or last 5 lines.

Linux Bash Shell on Windows 10

IBM Domino: Set maximum message size

How to set maximum message size to 4MB (4096KB), then use telnet to verify setting. Check gmail limit size telnet smtp.gmail.com 25 EHLO practice You can replace 'practice' with any hostname. 250-SIZE 35883577 means the maximum message size is 35883577 bytes. In reality, when creating an empty message in gmail and attach an exact 25MBytes (26214400Bytes) file, then send out. The generated message size is up to 35876118Bytes (~34.214MBytes).

How to check Linux version

RedHat Enterprise Linux (RHEL) cat /etc/redhat-release Ubuntu lsb_release -a SuSE cat /etc/os-release cat /etc/*release hostnamectl