SlideShare a Scribd company logo
Windows CLI
(Command Line Interface)
CLI vs GUI
• GUI (Graphical User Interface)
• Menu-driven interface - Extremely user-friendly and hence easy to learn
• Just click mouse buttons - Can even be used by toddlers and illiterates
• Provides a pleasant visual environment – desirable feature for most users
• Easy multitasking – Open multiple windows(applications) and switch from one
to another with a simple click of the mouse
• No need to remember any complex commands
• Useful for Office applications, games, surfing the web, ATM, Household
devices (TV, Microwave, Mobile Phone) etc.
CLI vs GUI
• GUI Disadvantages
• Graphical information, by nature, tends to be both larger and more complex
than text-based information
• Uses more system resources
• Requires a larger size OS, Memory, Faster and efficient Graphics card
CLI vs GUI
• CLI (Command Line Interface)
• If you can type fast, the command line will always be faster than a keyboard
and mouse – typing speed is the only limiting factor
• For most tasks it can be a lot faster using a command line than it can be using a GUI.
• Certain tasks can be done 10 to 100 times faster (some are impossible from a GUI )
• Very flexible with the use of “switches” (options)
• Good for “expert” users - can quickly access commands
• Uses the fewest system resources
• Need to memorize the commands – learning curve is steep
• Possibility of command chaining – use pipe and other operators
• Md ccis && dir
CLI vs GUI
• CLI (Command Line Interface) - Advantages
• Ability to go back and look at the history and replicate it on other machine
• Repeatability of commands
• Create scripts that can be used to automate processes
• DOS scripts are used on Windows machines
• Apple scripts are used in Mac machines etc.
• Used always by experts or specialists
• Command Line Interface Applications
• System administration
• Engineering applications
• Scientific applications
How to go to CLI?
• Start  Click on search
Type “cmd” in the search window
Right
click and
select
“Pin to
taskbar”
Command Prompt Window
• Called “Command prompt”
• Change to D drive – Type D: and press enter
• Type md dummy and press enter. Your cursor is at D:dummy
• Command format : “command” space arguments options
DOS Commands - Basic
• View the contents of a directory
• Dir
• The dir command allows you to see the
available files and directories in the current directory. The dir
command also shows the last modification date and time, as well as
the file size.
• Switches - /p (page), /w (wide format), /s (subdirectory list), /a (show
files with specified attributes) ………..remember forward slash
• Multiple switches can be used on the same command…..
DOS Commands - Basic
• Version of MSDOS
• Ver
• Time and date commands
• Time, Date – allows you to change. Don’t do!
• Vol – shows serial number including the owner
• Help - help on commands
• Commands are NOT case sensitive
DOS Commands - Basic
• Create a directory
• Md or mkdir
• Md ccis
• Md D:cciscengd1
• Changing directories
• CD (Change Directory) is a command used to switch directories in MS-
DOS and the Windows command line.
• Cd
• Cd ccis
• Cd D:ccisceng
DOS Commands - Basic
• Cd – More options
• Cd - goes to the root drive
• Cd.. - goes back by one level
DOS Commands - Basic
• Echo
• Echo is used to repeat the text typed back to the screen and can be
used to send to a peripheral on the computer, such as a COM port.
• Echo I am fine - whatever is typed after “echo” appears on the console
• Used in general with redirection operators….to create files
• Send messages to peripherals
Redirection operators
1. command > filename
• Redirect command output to a file
Ex: dir>t1.txt
2. command >> filename
• APPEND into a file (Add at end of the file)
Ex: dir/w>>t1.txt
3. commandA | commandB
• Pipe the output from commandA into commandB
Ex: dir|more
4. commandA & commandB
• Run commandA and then run commandB
Ex: type t1.txt&dir
5. commandA && commandB
• Run commandA, if it succeeds then run commandB
Ex: type t1.txt&&dir
6. commandA || commandB
• Run commandA, if it fails then run commandB
Ex: type t1.txt||dir
7. commandA && commandB || commandC
• If commandA succeeds run commandB, if it fails commandC
Ex: echo hello&&dir||type t1.txt
Echo
• Echo this is my first file > resume.txt
• File resume.txt is created
• Echo I am Person >> resume.txt
• Contents are appended……contents?
• How to see the contents?
• Notepad resume.txt
• Type resume.txt
• More resume.txt
• Would display the contents of a file one page at a time. Pressing space would go to the
next page and pressing enter would go down one line at a time.
Deleting a file
• del
• Del a.txt dangerous command…..be careful…..may not recover once deleted
• Del *.txt
• Del ab*.bat
• Del ab?.txt
• Del *.* extremely dangerous……..delete all!!
• Can you delete a directory?
Deleting a directory
• Rd or rmdir
• Removes an empty directory in MS-DOS. To delete directories with files or
directories within them the user must use the deltree command
• Rd ccis - if empty ….deleted….if not?
• Rd test /s remove test directory including all subdirectories
Copying files
• COPY is usually used to copy one or more files from one location to
another. However, COPY can also be used to create new files. By
copying from the keyboard console (COPY CON:) to the screen, files
can be created and then saved to disk.
The first filename you enter is referred to as the source file. The
second filename you enter is referred to as the target file. If errors are
encountered during the copying process, the COPY program will
display error messages using these names.
Copying files
• Copy abc.doc myfile.doc - abc.txt and myfile.doc are same
• Copy a.txt + b.txt c.txt -Concatenate or Append
• Copy *.rtf d:ccisit -use wild cards
• Copy c:windows*.exe d:Bhanuimpfiles - drive to drive
• Switches - /v (verify), /b (binary files), /d(decrypt), /y(overwrite?)
Renaming files/directories
• Ren or rename
• Used to rename files and directories from the original name to a new name.
• Ren old_name new_name
• Ren a.txt aa.txt
• Ren *.doc *.rtf
• Ren d:Bhanuccisitaa.txt a2.txt
• Ren ccis ccit - Directories
Moving files
• move
• Allows you to move files or directories from one folder to another, or
from one drive to another.
• Moves one or more files to the location you specify. Can also be used
to rename directories.
• Move d:ccisa.txt d:ccisita.txt -just move
• Move d:ccisa.txt d:ccisitfile1.txt -move & rename
Tree command
• Allows the user to view a listing of files and folders in an easy to read
listing.
• Tree
• Tree /f - show files also
• Tree /a - graphic characters linked connecting lines
Attrib command
• Sets or displays the read-only, archive, system, and hidden attributes
of a file or directory.
• Attrib
• Attrib +r +s a.doc -makes the file read-only and system file
• If you use this command to specify a file as read-only, the file can be
accessed, but not altered or deleted.
• If a file has an attribute of -R, it can be both read from or written to (it
is referred to as read/write). If a file has an attribute of +R, it can be
read from, but not written to

More Related Content

What's hot

Presentation on storage devices
Presentation on storage devicesPresentation on storage devices
Presentation on storage devices
Nouman Riaz
 
Lesson 5 computer software
Lesson 5 computer softwareLesson 5 computer software
Lesson 5 computer software
Vishal Patyal
 
Fundamentals of information technology
Fundamentals       of          information   technologyFundamentals       of          information   technology
Fundamentals of information technology
haider ali
 
Computer Concepts
Computer ConceptsComputer Concepts
Computer Concepts
Phoebe Kim
 
Advance peripheral devices
Advance peripheral devicesAdvance peripheral devices
Advance peripheral devices
Rohit Jain
 
Operating system || Chapter 3: Process
Operating system || Chapter 3: ProcessOperating system || Chapter 3: Process
Operating system || Chapter 3: Process
AnkonGopalBanik
 
Features of windows
Features of windowsFeatures of windows
Features of windows
myrajendra
 
Ch4 memory management
Ch4 memory managementCh4 memory management
Ch4 memory management
Bullz Musetsho
 
Software and hardware presentation
Software and hardware presentationSoftware and hardware presentation
Software and hardware presentation
njabulo madonsela
 
Input devices
Input devicesInput devices
Computer hardware component. ppt
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. ppt
Naveen Sihag
 
CPU and its components
CPU and its componentsCPU and its components
CPU and its components
samina khan
 
Future operating system
Future operating systemFuture operating system
Future operating system
Estiak Khan
 
Files and Folders
Files and FoldersFiles and Folders
Files and Folders
cachs_computing
 
YL basic computer Learning
YL basic computer LearningYL basic computer Learning
YL basic computer Learning
dilom1986
 
Parallel processing Concepts
Parallel processing ConceptsParallel processing Concepts
Parallel processing Concepts
Army Public School and College -Faisal
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
Riya Choudhary
 
DIRECT ACCESS STORAGE DEVICES
DIRECT ACCESS STORAGE DEVICESDIRECT ACCESS STORAGE DEVICES
DIRECT ACCESS STORAGE DEVICES
Staus Nyongesa
 
COMPUTER STORAGE
COMPUTER STORAGECOMPUTER STORAGE
COMPUTER STORAGE
Yanne Evangelista
 
Multimedia systems
Multimedia systemsMultimedia systems
Multimedia systems
greg robertson
 

What's hot (20)

Presentation on storage devices
Presentation on storage devicesPresentation on storage devices
Presentation on storage devices
 
Lesson 5 computer software
Lesson 5 computer softwareLesson 5 computer software
Lesson 5 computer software
 
Fundamentals of information technology
Fundamentals       of          information   technologyFundamentals       of          information   technology
Fundamentals of information technology
 
Computer Concepts
Computer ConceptsComputer Concepts
Computer Concepts
 
Advance peripheral devices
Advance peripheral devicesAdvance peripheral devices
Advance peripheral devices
 
Operating system || Chapter 3: Process
Operating system || Chapter 3: ProcessOperating system || Chapter 3: Process
Operating system || Chapter 3: Process
 
Features of windows
Features of windowsFeatures of windows
Features of windows
 
Ch4 memory management
Ch4 memory managementCh4 memory management
Ch4 memory management
 
Software and hardware presentation
Software and hardware presentationSoftware and hardware presentation
Software and hardware presentation
 
Input devices
Input devicesInput devices
Input devices
 
Computer hardware component. ppt
Computer hardware component. pptComputer hardware component. ppt
Computer hardware component. ppt
 
CPU and its components
CPU and its componentsCPU and its components
CPU and its components
 
Future operating system
Future operating systemFuture operating system
Future operating system
 
Files and Folders
Files and FoldersFiles and Folders
Files and Folders
 
YL basic computer Learning
YL basic computer LearningYL basic computer Learning
YL basic computer Learning
 
Parallel processing Concepts
Parallel processing ConceptsParallel processing Concepts
Parallel processing Concepts
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
DIRECT ACCESS STORAGE DEVICES
DIRECT ACCESS STORAGE DEVICESDIRECT ACCESS STORAGE DEVICES
DIRECT ACCESS STORAGE DEVICES
 
COMPUTER STORAGE
COMPUTER STORAGECOMPUTER STORAGE
COMPUTER STORAGE
 
Multimedia systems
Multimedia systemsMultimedia systems
Multimedia systems
 

Similar to PPT4-Windows CLI.pptx

redhat_by_Cbitss.ppt
redhat_by_Cbitss.pptredhat_by_Cbitss.ppt
redhat_by_Cbitss.ppt
VikrantSChohaan
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
Priyadarshini648418
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
Chander Pandey
 
Ms DOS
Ms DOSMs DOS
Ms DOS
Gunjan Singh
 
OSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptxOSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptx
KTheKing1
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
Ravikumar Nandigam
 
3. introduction of centos
3. introduction of centos3. introduction of centos
3. introduction of centos
Mohd yasin Karim
 
Linux
LinuxLinux
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-service
Rohit Sansiya
 
Group13
Group13Group13
ITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptx
HemantJadhao3
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
rajikaa
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
Priyadarshini648418
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
Meqdad Darweesh
 
Linux commands
Linux commandsLinux commands
Linux commands
penetration Tester
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
Rajesh Kumar
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
Michael Olafusi
 
Nithi
NithiNithi
Nithi
sharmibalu
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_b
Mohammad Reza Beygi
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
iman darabi
 

Similar to PPT4-Windows CLI.pptx (20)

redhat_by_Cbitss.ppt
redhat_by_Cbitss.pptredhat_by_Cbitss.ppt
redhat_by_Cbitss.ppt
 
PowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programmingPowerPoint_merge.ppt on unix programming
PowerPoint_merge.ppt on unix programming
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
Ms DOS
Ms DOSMs DOS
Ms DOS
 
OSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptxOSOA Unit-1 Introduction to DOS and Windows.pptx
OSOA Unit-1 Introduction to DOS and Windows.pptx
 
Online Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in HyderabadOnline Training in Unix Linux Shell Scripting in Hyderabad
Online Training in Unix Linux Shell Scripting in Hyderabad
 
3. introduction of centos
3. introduction of centos3. introduction of centos
3. introduction of centos
 
Linux
LinuxLinux
Linux
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-service
 
Group13
Group13Group13
Group13
 
ITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptxITCP PRACTICAL-1.pptx
ITCP PRACTICAL-1.pptx
 
Linuxs1
Linuxs1Linuxs1
Linuxs1
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 
Nithi
NithiNithi
Nithi
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_b
 
Linux administration training
Linux administration trainingLinux administration training
Linux administration training
 

Recently uploaded

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
Postman
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
Tatiana Kojar
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Tatiana Kojar
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
alexjohnson7307
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
Intelisync
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
maazsz111
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
Hiike
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
saastr
 

Recently uploaded (20)

WeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation TechniquesWeTestAthens: Postman's AI & Automation Techniques
WeTestAthens: Postman's AI & Automation Techniques
 
Skybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoptionSkybuffer SAM4U tool for SAP license adoption
Skybuffer SAM4U tool for SAP license adoption
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
Skybuffer AI: Advanced Conversational and Generative AI Solution on SAP Busin...
 
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
leewayhertz.com-AI in predictive maintenance Use cases technologies benefits ...
 
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024A Comprehensive Guide to DeFi Development Services in 2024
A Comprehensive Guide to DeFi Development Services in 2024
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - HiikeSystem Design Case Study: Building a Scalable E-Commerce Platform - Hiike
System Design Case Study: Building a Scalable E-Commerce Platform - Hiike
 
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
Deep Dive: AI-Powered Marketing to Get More Leads and Customers with HyperGro...
 

PPT4-Windows CLI.pptx

  • 2. CLI vs GUI • GUI (Graphical User Interface) • Menu-driven interface - Extremely user-friendly and hence easy to learn • Just click mouse buttons - Can even be used by toddlers and illiterates • Provides a pleasant visual environment – desirable feature for most users • Easy multitasking – Open multiple windows(applications) and switch from one to another with a simple click of the mouse • No need to remember any complex commands • Useful for Office applications, games, surfing the web, ATM, Household devices (TV, Microwave, Mobile Phone) etc.
  • 3. CLI vs GUI • GUI Disadvantages • Graphical information, by nature, tends to be both larger and more complex than text-based information • Uses more system resources • Requires a larger size OS, Memory, Faster and efficient Graphics card
  • 4. CLI vs GUI • CLI (Command Line Interface) • If you can type fast, the command line will always be faster than a keyboard and mouse – typing speed is the only limiting factor • For most tasks it can be a lot faster using a command line than it can be using a GUI. • Certain tasks can be done 10 to 100 times faster (some are impossible from a GUI ) • Very flexible with the use of “switches” (options) • Good for “expert” users - can quickly access commands • Uses the fewest system resources • Need to memorize the commands – learning curve is steep • Possibility of command chaining – use pipe and other operators • Md ccis && dir
  • 5. CLI vs GUI • CLI (Command Line Interface) - Advantages • Ability to go back and look at the history and replicate it on other machine • Repeatability of commands • Create scripts that can be used to automate processes • DOS scripts are used on Windows machines • Apple scripts are used in Mac machines etc. • Used always by experts or specialists • Command Line Interface Applications • System administration • Engineering applications • Scientific applications
  • 6. How to go to CLI? • Start  Click on search
  • 7. Type “cmd” in the search window Right click and select “Pin to taskbar”
  • 8. Command Prompt Window • Called “Command prompt” • Change to D drive – Type D: and press enter • Type md dummy and press enter. Your cursor is at D:dummy • Command format : “command” space arguments options
  • 9. DOS Commands - Basic • View the contents of a directory • Dir • The dir command allows you to see the available files and directories in the current directory. The dir command also shows the last modification date and time, as well as the file size. • Switches - /p (page), /w (wide format), /s (subdirectory list), /a (show files with specified attributes) ………..remember forward slash • Multiple switches can be used on the same command…..
  • 10. DOS Commands - Basic • Version of MSDOS • Ver • Time and date commands • Time, Date – allows you to change. Don’t do! • Vol – shows serial number including the owner • Help - help on commands • Commands are NOT case sensitive
  • 11. DOS Commands - Basic • Create a directory • Md or mkdir • Md ccis • Md D:cciscengd1 • Changing directories • CD (Change Directory) is a command used to switch directories in MS- DOS and the Windows command line. • Cd • Cd ccis • Cd D:ccisceng
  • 12. DOS Commands - Basic • Cd – More options • Cd - goes to the root drive • Cd.. - goes back by one level
  • 13. DOS Commands - Basic • Echo • Echo is used to repeat the text typed back to the screen and can be used to send to a peripheral on the computer, such as a COM port. • Echo I am fine - whatever is typed after “echo” appears on the console • Used in general with redirection operators….to create files • Send messages to peripherals
  • 14. Redirection operators 1. command > filename • Redirect command output to a file Ex: dir>t1.txt 2. command >> filename • APPEND into a file (Add at end of the file) Ex: dir/w>>t1.txt 3. commandA | commandB • Pipe the output from commandA into commandB Ex: dir|more 4. commandA & commandB • Run commandA and then run commandB Ex: type t1.txt&dir 5. commandA && commandB • Run commandA, if it succeeds then run commandB Ex: type t1.txt&&dir 6. commandA || commandB • Run commandA, if it fails then run commandB Ex: type t1.txt||dir 7. commandA && commandB || commandC • If commandA succeeds run commandB, if it fails commandC Ex: echo hello&&dir||type t1.txt
  • 15. Echo • Echo this is my first file > resume.txt • File resume.txt is created • Echo I am Person >> resume.txt • Contents are appended……contents? • How to see the contents? • Notepad resume.txt • Type resume.txt • More resume.txt • Would display the contents of a file one page at a time. Pressing space would go to the next page and pressing enter would go down one line at a time.
  • 16. Deleting a file • del • Del a.txt dangerous command…..be careful…..may not recover once deleted • Del *.txt • Del ab*.bat • Del ab?.txt • Del *.* extremely dangerous……..delete all!! • Can you delete a directory?
  • 17. Deleting a directory • Rd or rmdir • Removes an empty directory in MS-DOS. To delete directories with files or directories within them the user must use the deltree command • Rd ccis - if empty ….deleted….if not? • Rd test /s remove test directory including all subdirectories
  • 18. Copying files • COPY is usually used to copy one or more files from one location to another. However, COPY can also be used to create new files. By copying from the keyboard console (COPY CON:) to the screen, files can be created and then saved to disk. The first filename you enter is referred to as the source file. The second filename you enter is referred to as the target file. If errors are encountered during the copying process, the COPY program will display error messages using these names.
  • 19. Copying files • Copy abc.doc myfile.doc - abc.txt and myfile.doc are same • Copy a.txt + b.txt c.txt -Concatenate or Append • Copy *.rtf d:ccisit -use wild cards • Copy c:windows*.exe d:Bhanuimpfiles - drive to drive • Switches - /v (verify), /b (binary files), /d(decrypt), /y(overwrite?)
  • 20. Renaming files/directories • Ren or rename • Used to rename files and directories from the original name to a new name. • Ren old_name new_name • Ren a.txt aa.txt • Ren *.doc *.rtf • Ren d:Bhanuccisitaa.txt a2.txt • Ren ccis ccit - Directories
  • 21. Moving files • move • Allows you to move files or directories from one folder to another, or from one drive to another. • Moves one or more files to the location you specify. Can also be used to rename directories. • Move d:ccisa.txt d:ccisita.txt -just move • Move d:ccisa.txt d:ccisitfile1.txt -move & rename
  • 22. Tree command • Allows the user to view a listing of files and folders in an easy to read listing. • Tree • Tree /f - show files also • Tree /a - graphic characters linked connecting lines
  • 23. Attrib command • Sets or displays the read-only, archive, system, and hidden attributes of a file or directory. • Attrib • Attrib +r +s a.doc -makes the file read-only and system file • If you use this command to specify a file as read-only, the file can be accessed, but not altered or deleted. • If a file has an attribute of -R, it can be both read from or written to (it is referred to as read/write). If a file has an attribute of +R, it can be read from, but not written to