0% found this document useful (0 votes)
19 views6 pages

Command Line Tatoruial

cbms

Uploaded by

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

Command Line Tatoruial

cbms

Uploaded by

Hosam Mohammed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Command line tatoruial

Deep information :
- Shell :command line interpreter
- Terminal : text input / output environment
- CMD : is the original shell for the Microsoft
Dos operating system
- PowerShell : is after CMD and is powerful
than the CMD
Why to use command line ?
- Use less system resources
- Intelligent tab completion to complete
paths and common commands
- Use loops to repeat commands
- Same like code only text nothing to
distract you
- Command line don’t cate about OS
distribution Bash is Bash
- Deal with package manager
- Use Git commands
- Commands is commands nothing change
- Increase writing speed
Examples of what you can do with the
command line
- Ip config
- Move all text in subdirectories
- Delete files with Extensions
- Change settings quickly
- Create many directories at once
- Edit system files quickly
- Create batch to automate things like
registry edit
What we will learn ?
- Windows CMD commands
- Unix systems command [linux / mac]
Commands
 Cd ..
 Color
 Ip config
 Title
 Mkdir
 Cd
 Explorer
 Cls
Dealing with files and directories
 Cd : change directory to change the
directory from one to another and we can
user [cd..] to back to the previous
directory
 Cd + the name of the directory + \ : it
used to open the directory
 Cd \ : it is used to back to the root
 Mkdir : it is used to make directory
 Clear - cls : to clear the screen
 Ls : list the directories
 Dir : list the directories
 Mkdir ..\ + directory name : to make a
directory in the previous directory without
move to it
 Move + the name of directory + the new
name : to rename the name of the
directory
 Move + name of the directory + the
directory name : to move the directory
form his place to another directory
 Rename + the name of the directory + the
new name of the directory : to rename the
directory with another name
 Command + --help : to show the
information of the command
 Cp + directory1 + directory2 : make a
directory2 copy of the directory
 Rm + the name of the directory : to
remove the directory
 [Cd /d D: ] : this command is used to
change the path from C to D
 Echo +”message” : to print the word in
the terminal
 Echo +“message” + > + file name : to
make a file if it isn’t exist and write the
message in this file . but if the file exist so
the overwrite of the file will happen so the
file will contain the message only and the
previous writing will be removed
 Echo +”message” + >>+ file name : to
make a file is it isn’t exist and write the
message in this file . but if the file exist
the message will append in the file and
the past writing still
 Cat + file name : to show the content of
the file in the terminal
 Cat + file name + > + new file : copy the
file name to a new file (same as cp )
 Grep + “search ” +”file name ” : to search
about the search word in the file name
 Grep +”search ” + -r : to search for the
word in the all files in the directories
 Grep + “search” + -r + directory name
[path ]: search for the word in the files in
that path
 Grep +”search ” + -r + -l : search for the
word in the files and list the files that the
word exists in it
 Exit : to exit the command line
 Touch + file name. Extension : to make a
file with the extension
 Command + /? : show the explanation of
the command
 Ctrl + C : to stop the command
 Tree /a : list the structure of the directories
 Osk : to show the keyboard on the screen
 Tasklist : to show the the task list
 Taskkill /F /PID + the id of the process : to
kill the process by its PID
 Taskkill /IM + “process name ” /F : to kill
the process by its name
 Taskkill /IM +”process name ” /IM
+”process name ” /F : to kill multiple
processes by their name simultaneously
 Taskkill /PID +”id of the proceess” + /PID
+”the id of the process ” + /F : to kill
multiple processes by its id
 Alias alias name = command : to make
another name for the command
 Command && command : to execute the
two commands
 Whoami : to know the name of the user
 Systeminfo : to show the information of
the system
 Ping +”website name ” + > + “file name “
: to copy the ping info into a file
 Ipconfig | clip : to copy the content of the
ip configuration into the clip board
Ss64.com is a website to show the
commands of the different operating
systems

You might also like