If you’re going to be doing anything with AI you’re gonna be in the command terminal. Here’s some basic commands
Here’s a list of some of the most basic and commonly used commands in the Command Prompt (cmd) on Windows:
cd
(Change Directory): Changes the current directory.cd path\to\directory cd ..
dir
(Directory): Lists files and directories in the current directory.dir
cls
(Clear Screen): Clears the Command Prompt screen.cls
copy
: Copies files from one location to another.copy source_file destination
move
: Moves files from one location to another.move source_file destination
del
(Delete): Deletes one or more files.del filename
rmdir
orrd
(Remove Directory): Removes a directory.rmdir directory_name rmdir /s /q directory_name # Remove a directory and all its contents
mkdir
ormd
(Make Directory): Creates a new directory.mkdir new_directory
ren
(Rename): Renames a file or directory.ren old_name new_name
type
: Displays the contents of a text file.type filename.txt
echo
: Displays messages or turns command echoing on or off.echo Hello, World! echo off echo on
exit
: Exits the Command Prompt.exit
ping
: Tests network connectivity to a specific host.ping hostname_or_ip
ipconfig
: Displays network configuration details.ipconfig ipconfig /all
tasklist
: Lists all running processes.tasklist
taskkill
: Kills a running process.taskkill /PID process_id taskkill /IM process_name
chkdsk
: Checks the file system and status of the system’s hard drives.chkdsk chkdsk /f # Fixes errors on the disk
format
: Formats a disk for use with Windows.format drive_letter:
***CAUTION***attrib
: Displays or changes file attributes.attrib +r filename # Sets the read-only attribute attrib -r filename # Removes the read-only attribute
netstat
: Displays network statistics.netstat
These commands provide a solid foundation for basic file and system management tasks in the Command Prompt.
Leave a Reply