loading...

Today I learnt | 22 April 2020

banzyme2 profile image EN_DEE_SA ・1 min read

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

Discussion

pic
Editor guide