Bash Scripting and Command Prompt in Microsoft Windows

While Bash and the Command Prompt have some similarities, they also have some differences in terms of the commands and syntax they support. Here is a table of some common Bash commands and their Command Prompt equivalents:

Bash command Command Prompt equivalent
alias doskey
cd cd or chdir
echo echo
find dir or for
grep findstr
ls dir
man help or /?
mkdir mkdir
mv move
rm del or rd
sed findstr or for /f
sort sort
tail more or tail
tee type or `>

 

License

Developers ultimate guide: Linux Bash scripting Copyright © 2022 by Matin Maleki. All Rights Reserved.

Share This Book