DEV Community

ENDEESA
ENDEESA

Posted on

Today I learnt | 22 April 2020

1. Clear screen in windows cmd

> cls
  • Similar to clear in unix

2. Modifying console colors

  • Syntax: color (background-color)(foreground-color)
  • Example:
> color 08

# Sets background to black and foreground(text color) to green
  • More color codes
    • Black = 0
    • White = 7
    • Green = 8 etc.

3. Creating aliases in windows cmd

  • Example:
 > doskey ls = dir
  • Now running ls in your cmd shell will list the files and directories inside the current folder.
  • Note: This alias will be 'lost' when you close the current shell

Top comments (0)