Tuesday, December 11, 2007

[DOS batch]How I get filename without extension?

@echo off
setlocal
set List=C:\Temp\*.*
for /f "delims=" %%a in ('dir /b "%List%"') do echo %%~na

Centos 7 reset root/ any user lost password / lockout due to cant remember password

1. Need to be in front of the terminal. (Physically if not vm). 2. Reboot the server 3. Press 'e' in the GRUB2 boot screen. 3. bunch...