0% found this document useful (0 votes)
8 views2 pages

Linux Command Equivalents in Windows

This document provides a detailed guide on simulating common Linux commands using their Windows equivalents. It includes commands such as ls (dir), cp (copy), mv (move), rm (del), mkdir, cd, grep (find/findstr), touch, cat (type), clear (cls), ps (tasklist), and kill (taskkill). Each command is accompanied by a description and examples for both Linux and Windows environments.

Uploaded by

saiputti11
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Linux Command Equivalents in Windows

This document provides a detailed guide on simulating common Linux commands using their Windows equivalents. It includes commands such as ls (dir), cp (copy), mv (move), rm (del), mkdir, cd, grep (find/findstr), touch, cat (type), clear (cls), ps (tasklist), and kill (taskkill). Each command is accompanied by a description and examples for both Linux and Windows environments.

Uploaded by

saiputti11
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Detailed Guide: Simulating Linux Commands (cp, ls,

grep) Using Windows Commands (dir, cd, mkdir,


etc.)

1. Simulating Linux ls Command in Windows Linux Command: ls


Windows Equivalent: dir

Description: Lists files and directories in the current path.


Example (Windows):
dir
Example (Linux):
ls -l

2. Simulating Linux cp Command in Windows Linux Command: cp source destination


Windows Equivalent: copy or xcopy

Description: Copies files from one location to another.


Example (Windows):
copy [Link] D:\Backup\
Example (Linux):
cp [Link] /home/user/Documents/

3. Simulating Linux mv Command in Windows Linux Command: mv oldname newname


Windows Equivalent: move

Description: Moves or renames files.


Example (Windows):
move [Link] D:\NewFolder\
Example (Linux):
mv [Link] /home/user/Desktop/

4. Simulating Linux rm Command in Windows Linux Command: rm file


Windows Equivalent: del

Description: Deletes a file.


Example (Windows):
del [Link]
Example (Linux):
rm [Link]

5. Simulating Linux mkdir Command in Windows Linux Command: mkdir foldername


Windows Equivalent: mkdir

Description: Creates a new directory.


Example (Windows & Linux):
mkdir NewFolder

6. Simulating Linux cd Command in Windows Linux Command: cd folder


Windows Equivalent: cd
Description: Navigates between directories.
Examples:
cd Documents
cd .. (go back)

7. Simulating Linux grep Command in Windows Linux Command: grep "text" filename
Windows Equivalent: find or findstr

Description: Searches for text inside files.

Example (Windows):
findstr "hello" [Link]
Example (Linux):
grep "hello" [Link]

8. Simulating Linux touch Command in Windows Linux Command: touch [Link]


Windows Equivalent: type nul > [Link]

Description: Creates an empty file.


Example (Windows):
type nul > [Link]

9. Simulating Linux cat Command in Windows Linux Command: cat [Link]


Windows Equivalent: type [Link]

Description: Displays file content.


Example:
type [Link]

10. Simulating Linux clear Command in Windows Linux Command: clear


Windows Equivalent: cls

11. Simulating Linux ps Command in Windows Linux Command: ps


Windows Equivalent: tasklist

12. Simulating Linux kill Command in Windows Linux Command: kill PID
Windows Equivalent: taskkill

Example:
taskkill /IM [Link] /F

You might also like