Commands
In Windows, two built-in command-line interfaces allow users to execute commands, manage system settings, and automate tasks. It is important to be familiar with these utilities to fully leverage the potential of the operating system.
CMD
Known as Command Prompt, is a command-line interpreter that allows users to execute commands from a text-based interface. It supports a wide range of commands for file manipulation, system configuration, and troubleshooting.
Some of the commands that can be used through this interface are:
Show the name of the system
Show the logged-in user
Show manual for a command
Show network address settings
Show protocol statistics and current TCP/IP network connections
Makes a ping to a machine
Traces the route taken by the packets from your system to another host
Check, modify, and assign permissions to a file or directory
PowerShell
A command-line interpreter that supports a wide range of commands for automating administrative tasks, managing complex configurations, and interacting with web services or APIs. Integrates the .NET framework and offers advanced scripting capabilities.
Some of the commands for this interface are:
Retrieves a list of currently running processes
Lists all services on the system and their current status
Configures the execution policy, controlling the ability to run scripts
Displays detailed help information about commands, including usage examples
Lists the files and directories in a specified location, similar to
dir
orls
in other systems
Generate a copy of files or directories from one location to another, similar to
cp
in Linux
Displays the content of a file, similar to
cat
in Linux
Creates a new file, directory, or other type of item
Move a file or folder, similar to
mv
in Linux
Finds text within a file
Show the firewall rules
Last updated
Was this helpful?