Useful shortcuts for vi editor

Showing posts with label cmd. Show all posts
Showing posts with label cmd. Show all posts

Thursday, 29 December 2016

How to merge text files in cmd?

Run this command in current path
CMD> 
for %f in (*.txt) do type "%f" >> merged.txt

Tuesday, 10 March 2015

How to run SVN cleanup and update commands in CMD?

e.g. cleanup:
CMD> TortoiseProc.exe /command:cleanup /path:"D:\AlperSVN" /cleanup /noui

e.g. update:
CMD> TortoiseProc.exe /command:update /path:"D:\AlperSVN"

Sunday, 26 October 2014

How to check NTFS file system in CMD?

Only you need to run this command.

e.g. chkntfs C:

C:\Windows\system32>chkntfs C:
The type of the file system is NTFS.
C: is not dirty.

How to defrag disk partiton in CMD?

Only you need to run this command as Administrator.

e.g. defrag C:


How to change font color in CMD?

Only you need to run this command in cmd.

e.g. color A

0 = Black
1 = Blue
2 = Green
3 = Aqua
4 = Red
5 = Purple
6 = Yellow
7 = White
8 = Gray
9 = Light Blue
A = Light Green
B = Light Aqua
C = Light Red
D = Light Purple
E = Light Yellow
F = Bright White

Tuesday, 21 October 2014

How to know file format description in CMD?

Please you run this command in CMD.

e.g. assoc .rar
.rar=WinRAR

e.g. assoc .txt
.txt=txtfile