100% found this document useful (1 vote)
7 views

CMD Learning File

The document outlines the importance of learning CMD for enhancing confidence and simplifying job tasks. It provides a comprehensive list of commands for file management, task management, user account management, system information retrieval, and network troubleshooting. Additionally, it covers advanced commands for creating, exporting, and managing files, as well as utilities for system maintenance and monitoring.

Uploaded by

adu g
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
7 views

CMD Learning File

The document outlines the importance of learning CMD for enhancing confidence and simplifying job tasks. It provides a comprehensive list of commands for file management, task management, user account management, system information retrieval, and network troubleshooting. Additionally, it covers advanced commands for creating, exporting, and managing files, as well as utilities for system maintenance and monitoring.

Uploaded by

adu g
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 3

why i have to learn about cmd ?

1- For countering the description (for getting more confidence).


2- To know the basics inorder to make my job easy.
Basic Files and Folders Operations | Create, Copy, Move, and Delete
cd.. :- to go one step back to the previous dir(if we are in c-users-admin:- to go
back from admin to users).
cd/ :- to go back to the parent dir.
dir :- to see the contents in the specific directory.
cd specificdir :- to getinto the sepcific dir.
mkdir name :- to create a dir.
ren oldname newname :- to rename the dir.
type nul> name.filename :- to create a folder in that dir.
copy filename file :- to copy a file.
del filename :- to delete the file.
mov filename file :- to move a file.
rmdir dirname :- to remove directories.
Managing Tasks and Services of Windows using cmd | Start & Stop
tasklist :- to see the tasks in the os.
taskkill /pid pidnum :- to terminate a task.
net start :- to see the services in the background of the os.
net stop specificservice :- to stop a service.
net start specificservice :- to start a service.
driverquery :- to see the drivers installed in the computer.
Getting System & Programs information Using CMD | Full Details
wmic & /output:c:\jss.txt product get name,version :- when you want to collect
product details and also software details on your machine.
cpu:- when you want to know your cpu details(but in the same command under wmic).
diskpart :- to know the details of your disk.
list disk :- to see the disks installed in you computer.
select disk disknum :- to select a specific disk.
detail disk :- to know the details about the selected disk.
chkdsk :- to chek the disk if there there are any issues in the disk.
getmac :- to know your computers physical address.
systeminfo :- to know the details about your system.
Managing User Accounts Using CMD | Create, Remove & Manage user.
net user :- to know the users of your computer.
net user username /add password :- to create a user account.
net user /del username :- to del a user account.
net user administrator /active:yes :- to enable your administrator account.
net user administrator /active:no :- to disable your administrator account.
net user "username" * :- to create or delete your user account password.
Hide & Encrypt Files Using CMD | Hide, Encrypt & Naming extensions
first you type cmd in the dir space above the files.
attrib +h +r +s :- to hide files.
attrib -h -r -s :- to show the hidden files.
cipher /e :- to encypt your file.
cipher /d :- to decrypt your file.
cipher /reker :- to updated the encryption key.
assoc .fileextention :- to know the file extention.
Creating & Exporting Files through CMD | Create, Export & Read Files Via CUI
tasklist > jss.txt :- to export or create any file in a separate text file.
echo thetextyouwant > jss.txt :- to create a file that contains the exact text in
the command.
copy con filename :- to type plenty of text(after you type the command you have to
type ctrl + z).
type filename :- to open your text file on command prompt or CLI.
type nul> filename :- to open a new file.
filename :- to open a specific application.
In general the difference between tasklist > jss.txt, echo thetextyouwant >
jss.txt, copy con filename, type filename, type nul> filename in creating -
tasklist > jss.txt, echo thetextyouwant > jss.txt, to type multiple text- copy con
filename, to open your file- type filename, to create a new file- type nul>
filename, to open the specific file app- filename.
Format, Boot & Label USB or CD through CMD | Create Bootable USB or Labeling.
Under are the steps to format a USB drive in CLI or CMD :-
1- diskpart :- to enter in the disks command.
2- listdisk :- to see the disks.
3- select disk num :- to select a specific disk.
4- clean :- to quickly check the selected disk.
5- create partition primary :- to create a primary partition.
6- select partition num :- to select the primary partition.
7- format fs=ntfs quick :- to format the pen drive, removable drive...
8- active :- to active the specific drive.
9- assign :- to attach
label thedriveletter :- to label the drive.
Best Utility Commands in CMD | Shutdown, History & Tree Commands
tree :- provide to know every files, sub folders and sub directories in your any
folder.
date :- if you want to change the date.
time :- if you want to change the time.
doskey/history :- help you to track your command histories that are excuted.
shutdown -s :- to shutdown your pc.
shutdown -s -t :- to shutdown your pc in specific time you want.
shutdown -r :- to restart your pc.
shutdown -r -t :- to restart your pc in specific time you want.
Commands that helps you to check scheduel tasks and monitor shared files
chkntfs :- checks the ntfs file system.
chkntfs drive :- to test or check the specific drive file system.
control :- to open the control panel
schtasks :- helps to see and check also monitior all the scheduled tasks in your
pc.
schtasks >filename :- to make the list of all schdule file in a separate file.
ver :- to find out the specific version of your operation.
openfiles :- tell the current shared file( how many users are accesing that dir
currently).
Practical Examples of IPCONFIG Command
ipconfig :- to investigate network issues.
ipconfig /all :- same all with the above but with more details.
ipconfig /renew :- to refersh the ipconfig command.
ipconfig /displaydns :- tells all the dns connections.
ipconfig /flushdns :- caches the dns flush and refershs all the dns activity.
The ping tool
ping ipaddress :- to reach your destination host.
ping -? :- shows what else can be done with the ping command(for example :- -s, -t,
-a,...).
note: destination host unreachable, request timed out, and packet loss are error
messages.
The tracert(traceroute) tool
tracert desireddestination :- helps when you have multiple devices and that you
don't know in what device there is an issue.
tracert -? :- shows more detailed options of tracert.
The netstat tool
netstat :- utility command that shows all the active connections and port
connections you have.
netstat -? :- shows more detailed options of netstat.
The other tools
getmac, getmac /v, ARP, Nslookup, Route print, | more.
taskkill /f /im tskkilled :- to kill or terminate a task.
taskkill /? :- shows more detailed options.
The gpupdate command
gpupdate, gpupdate /force, gpupdate /target:user, gpupdate /wait:0, gpupdate /?.
(These all about group policy).
The gpresult command
other tools that helps in group policies are:- gpresult, gpresult /?, gpresult /s
remotecomputer /r.
The net use command
net use /z:yes, net use \\remotecomputer\c$ /persistent :yes, net use x: /delete,
net use /?.
The net user command
net user wilson password /add /times:ALL - to create a user account.
The copy command
copy filename filelocation :- copies file to a specific location.
copy /y filename filelocation :- to overwrite a file in the same file location.
The xcopy command
xcopy /y *.txt c:\users :- copies a directories and sub directories.
xcopy filelocation destination /e :- to copy a file.
xcopy /? :- to explor this command.
The robocopy command
it copies the file data and all the necceery parameters have to be passed in the
command it self. The source dir, destination dir and file whose content are to get
copied, like details are specified. The robocopy command will keep the original
file and create the replica of the same at the specified location.
robocopy downloads c:\users :- copies the replica of the file and also whole the
contents in a specified location.
robocopy /? :- shows more detailed options about the command.

END JUST FOR NOW

You might also like