SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Commands used in Linux Operating System

Objectives
In this lesson, you will learn to:
 Create a directory using the mkdir command

 Delete a directory using the rmdir command

 List the contents of a directory using the ls command

 Copy a file using the cp command

 Move and renaming a file using the mv command

 Delete a file using the rm command
 Displaying the page content using more command

©NIIT                                Linux/Lesson 2/Slide 1 of 17
Commands used in Linux Operating System

Objectives (contd:)
 Using Wildcard characters

 Use man command to get online help

 Functions of an Editor

 Create and Edit documents using the vi editor




©NIIT                                Linux/Lesson 2/Slide 2 of 17
Commands used in Linux Operating System

Directory Commands in Linux

 Identifying the Current Directory Path

     The pwd (print working directory) command is used
      to display the full path name of the current
      directory
 Changing the Current Directory
     The cd (change directory) command changes the
      current directory to the directory specified
 Creating a Directory
     The mkdir (make directory) command is used to
      create directories
©NIIT                                 Linux/Lesson 2/Slide 3 of 17
Commands used in Linux Operating System

Directory Commands in Linux (contd.)

 Removing a Directory

     The rmdir (remove directory) command removes
      the directory specified
 Listing the Contents of a Directory
     The ls command is used to display the names of
      the files and sub-directories in a directory




©NIIT                                   Linux/Lesson 2/Slide 4 of 17
Commands used in Linux Operating System

File Commands in Linux
 The cat (concatenate) command displays the
  contents of the specified file
 Copying Files
     The cp (copy) command duplicates the contents of
      the source file into a target file
     cp [options] source file/s destination
      directory/file
 Removing Files
     The rm (remove) command is used to delete files
      or directories
     rm [options] file/s
©NIIT                                Linux/Lesson 2/Slide 5 of 17
Commands used in Linux Operating System

File Commands in Linux (contd.)
 Moving and Renaming Files
     The mv (move) command is used to move a file or
      directory from one location to another or to change
      its name
     mv [option] source destination
 Displaying the Contents Page–Wise
    The more command is used to display data one
     screen-full at a time. While viewing a file using the
     more command, once you have scrolled down, you
     cannot move up

     more [options] filename

©NIIT                                  Linux/Lesson 2/Slide 6 of 17
Commands used in Linux Operating System

File Commands in Linux (contd.)
 Displaying the Contents Page–Wise (contd.)
     The less command is similar to the more
      command except that you can scroll upwards also
      while viewing the contents of a file
     less [options] filename
Wildcard Characters
 The shell offers the facility to perform an operation on
  a set of files by the use of certain special characters in
  the command in place of the actual file names




©NIIT                                   Linux/Lesson 2/Slide 7 of 17
Commands used in Linux Operating System

File Commands in Linux (contd.)
Wildcard Characters (contd.)
 The * Wildcard
     The * wildcard is interpreted as a string of none,
      one, or more characters
 The ? Wildcard
     The ? wildcard matches exactly one occurrence of
      any character
 The [ ] Wildcard
     The [ ] wildcard can be used to restrict the
      characters to be matched

©NIIT                                  Linux/Lesson 2/Slide 8 of 17
Commands used in Linux Operating System

Getting Online Help
 The man command is used to get online help to a
  user about the various options for any command in
  Linux
     man command name




©NIIT                               Linux/Lesson 2/Slide 9 of 17
Commands used in Linux Operating System

Editors
 A text editor is used to create and manage text files
  and documents. An editor is an application software
  that is usually bundled with an operating system (OS).
 Functions of an Editor
     Create a file
     Open an existing file
     Copy and Paste text
     Search for text
     Handle a large amount of data


©NIIT                                 Linux/Lesson 2/Slide 10 of 17
Commands used in Linux Operating System

The vi Editor

The vi editor is a visual editor used to create and edit
text files, documents, and programs. In Red Hat Linux,
vi is a symbolic link to the vim editor, which is an
improved version of the vi editor.

Getting Started with vi
         The vi editor is invoked by giving the following
          command at the Linux prompt:
          ® vi   filename Enter




©NIIT                                     Linux/Lesson 2/Slide 11 of 17
Commands used in Linux Operating System

Editors
 A text editor is used to create and manage text files
  and documents. An editor is an application software
  that is usually bundled with an operating system (OS).
 Functions of an Editor
     Create a file
     Open an existing file
     Copy and Paste text
     Search for text
     Handle a large amount of data


©NIIT                                 Linux/Lesson 2/Slide 12 of 17
Commands used in Linux Operating System

The vi Editor

The vi editor is a visual editor used to create and edit
text files, documents, and programs. In Red Hat Linux,
vi is a symbolic link to the vim editor, which is an
improved version of the vi editor.

Getting Started with vi
         The vi editor is invoked by giving the following
          command at the Linux prompt:
          ® vi   filename Enter




©NIIT                                     Linux/Lesson 2/Slide 13 of 17
Commands used in Linux Operating System

Vi Editor(contd:)
 You can use the following commands to exit vi editor
     :x
     ZZ
     :q!




©NIIT                               Linux/Lesson 2/Slide 14 of 17
Commands used in Linux Operating System
Summary
In this lesson, you learned that:
 some of the common directory commands used in
 Linux are:
    • pwd
    • cd
    • mkdir
    • rmdir
    • ls




©NIIT                               Linux/Lesson 2/Slide 15 of 17
Commands used in Linux Operating System
Summary (contd.)
 some of the common file commands used in Linux
 are:
    • Cat
    • Cp
    • Rm
    • Mv
    • More
    • less
 The shell offers the facility to perform an operation on a set
  of files by using the wildcard pattern.


©NIIT                                     Linux/Lesson 2/Slide 16 of 17
Commands used in Linux Operating System
Summary (contd.)
 Some of the commonly used wildcard characters are:
• ? – Matches one character in a file
• * - Matches zero, one, or more than one character in a
  file name
• [ ] – Matches one character from the enclosed list
 The man command is used to get online help to a
  user about the various options for any command in
  Linux
 The vi editor is used to create and edit documents




©NIIT                                   Linux/Lesson 2/Slide 17 of 17

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Some basic unix commands
Some basic unix commandsSome basic unix commands
Some basic unix commands
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
01 t1 s2_linux_lesson1
01 t1 s2_linux_lesson101 t1 s2_linux_lesson1
01 t1 s2_linux_lesson1
 
Linux
Linux Linux
Linux
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
basic linux command (questions)
basic linux command (questions)basic linux command (questions)
basic linux command (questions)
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
 
Linux beginner's Workshop
Linux beginner's WorkshopLinux beginner's Workshop
Linux beginner's Workshop
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux
Linux Linux
Linux
 
Linux administration classes in mumbai
Linux administration classes in mumbaiLinux administration classes in mumbai
Linux administration classes in mumbai
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScIT
 
Unix
UnixUnix
Unix
 
Introduction about linux
Introduction about linuxIntroduction about linux
Introduction about linux
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
 
Linux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell ScriptingLinux systems - Linux Commands and Shell Scripting
Linux systems - Linux Commands and Shell Scripting
 
Unit 1-a-brief-history-of-unix-ppt
Unit 1-a-brief-history-of-unix-pptUnit 1-a-brief-history-of-unix-ppt
Unit 1-a-brief-history-of-unix-ppt
 
Linux commands
Linux commandsLinux commands
Linux commands
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
 

Andere mochten auch

02 iec t1_s1_plt_session_02
02 iec t1_s1_plt_session_0202 iec t1_s1_plt_session_02
02 iec t1_s1_plt_session_02Niit Care
 
Comp tia n+_session_08
Comp tia n+_session_08Comp tia n+_session_08
Comp tia n+_session_08Niit Care
 
01 iec t1_s1_plt_session_01
01 iec t1_s1_plt_session_0101 iec t1_s1_plt_session_01
01 iec t1_s1_plt_session_01Niit Care
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architectureAjeet Singh
 

Andere mochten auch (13)

Sql xp 09
Sql xp 09Sql xp 09
Sql xp 09
 
Dacj 1-3 b
Dacj 1-3 bDacj 1-3 b
Dacj 1-3 b
 
02 iec t1_s1_plt_session_02
02 iec t1_s1_plt_session_0202 iec t1_s1_plt_session_02
02 iec t1_s1_plt_session_02
 
Sql xp 11
Sql xp 11Sql xp 11
Sql xp 11
 
Sql xp 10
Sql xp 10Sql xp 10
Sql xp 10
 
Sql xp 01
Sql xp 01Sql xp 01
Sql xp 01
 
Comp tia n+_session_08
Comp tia n+_session_08Comp tia n+_session_08
Comp tia n+_session_08
 
01 iec t1_s1_plt_session_01
01 iec t1_s1_plt_session_0101 iec t1_s1_plt_session_01
01 iec t1_s1_plt_session_01
 
SQL | Computer Science
SQL | Computer ScienceSQL | Computer Science
SQL | Computer Science
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 

Ähnlich wie Linux commands tutorial

LINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptxLINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptxParasPatel69066
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to UnixSudharsan S
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system pptAchyut Sinha
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRavi Kumar
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linuxLiran Ben Haim
 
Introduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXIntroduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXDeeksha Verma
 
Lab Report.1.docx
Lab Report.1.docxLab Report.1.docx
Lab Report.1.docx1KWatching
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptPDhivyabharathi2
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-serviceRohit Sansiya
 
Starting with Linux
Starting with LinuxStarting with Linux
Starting with LinuxMesi Rendón
 

Ähnlich wie Linux commands tutorial (20)

LINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptxLINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptx
 
Linux basic
Linux basicLinux basic
Linux basic
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
 
Red Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech ArkitRed Hat Linux Certified Professional step by step guide Tech Arkit
Red Hat Linux Certified Professional step by step guide Tech Arkit
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
 
Introduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUXIntroduction, Features, Basic Commands and Distribution of LINUX
Introduction, Features, Basic Commands and Distribution of LINUX
 
3. intro
3. intro3. intro
3. intro
 
cisco
ciscocisco
cisco
 
Lab Report.1.docx
Lab Report.1.docxLab Report.1.docx
Lab Report.1.docx
 
Linux Command.ppsx
Linux Command.ppsxLinux Command.ppsx
Linux Command.ppsx
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
 
Intro to linux
Intro to linuxIntro to linux
Intro to linux
 
Command Line Interpreter
Command Line InterpreterCommand Line Interpreter
Command Line Interpreter
 
60761 linux
60761 linux60761 linux
60761 linux
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-service
 
Starting with Linux
Starting with LinuxStarting with Linux
Starting with Linux
 

Mehr von Niit Care (20)

Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 
Dacj 1-3 a
Dacj 1-3 aDacj 1-3 a
Dacj 1-3 a
 

Kürzlich hochgeladen

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observabilityitnewsafrica
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesBernd Ruecker
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsRavi Sanghani
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...itnewsafrica
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...Wes McKinney
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityIES VE
 

Kürzlich hochgeladen (20)

Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security ObservabilityGlenn Lazarus- Why Your Observability Strategy Needs Security Observability
Glenn Lazarus- Why Your Observability Strategy Needs Security Observability
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
QCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architecturesQCon London: Mastering long-running processes in modern architectures
QCon London: Mastering long-running processes in modern architectures
 
Potential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and InsightsPotential of AI (Generative AI) in Business: Learnings and Insights
Potential of AI (Generative AI) in Business: Learnings and Insights
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...Abdul Kader Baba- Managing Cybersecurity Risks  and Compliance Requirements i...
Abdul Kader Baba- Managing Cybersecurity Risks and Compliance Requirements i...
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
The Future Roadmap for the Composable Data Stack - Wes McKinney - Data Counci...
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Decarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a realityDecarbonising Buildings: Making a net-zero built environment a reality
Decarbonising Buildings: Making a net-zero built environment a reality
 

Linux commands tutorial

  • 1. Commands used in Linux Operating System Objectives In this lesson, you will learn to: Create a directory using the mkdir command Delete a directory using the rmdir command List the contents of a directory using the ls command Copy a file using the cp command Move and renaming a file using the mv command Delete a file using the rm command Displaying the page content using more command ©NIIT Linux/Lesson 2/Slide 1 of 17
  • 2. Commands used in Linux Operating System Objectives (contd:) Using Wildcard characters Use man command to get online help Functions of an Editor Create and Edit documents using the vi editor ©NIIT Linux/Lesson 2/Slide 2 of 17
  • 3. Commands used in Linux Operating System Directory Commands in Linux Identifying the Current Directory Path The pwd (print working directory) command is used to display the full path name of the current directory Changing the Current Directory The cd (change directory) command changes the current directory to the directory specified Creating a Directory The mkdir (make directory) command is used to create directories ©NIIT Linux/Lesson 2/Slide 3 of 17
  • 4. Commands used in Linux Operating System Directory Commands in Linux (contd.) Removing a Directory The rmdir (remove directory) command removes the directory specified Listing the Contents of a Directory The ls command is used to display the names of the files and sub-directories in a directory ©NIIT Linux/Lesson 2/Slide 4 of 17
  • 5. Commands used in Linux Operating System File Commands in Linux The cat (concatenate) command displays the contents of the specified file Copying Files The cp (copy) command duplicates the contents of the source file into a target file cp [options] source file/s destination directory/file Removing Files The rm (remove) command is used to delete files or directories rm [options] file/s ©NIIT Linux/Lesson 2/Slide 5 of 17
  • 6. Commands used in Linux Operating System File Commands in Linux (contd.) Moving and Renaming Files The mv (move) command is used to move a file or directory from one location to another or to change its name mv [option] source destination Displaying the Contents Page–Wise The more command is used to display data one screen-full at a time. While viewing a file using the more command, once you have scrolled down, you cannot move up more [options] filename ©NIIT Linux/Lesson 2/Slide 6 of 17
  • 7. Commands used in Linux Operating System File Commands in Linux (contd.) Displaying the Contents Page–Wise (contd.) The less command is similar to the more command except that you can scroll upwards also while viewing the contents of a file less [options] filename Wildcard Characters The shell offers the facility to perform an operation on a set of files by the use of certain special characters in the command in place of the actual file names ©NIIT Linux/Lesson 2/Slide 7 of 17
  • 8. Commands used in Linux Operating System File Commands in Linux (contd.) Wildcard Characters (contd.) The * Wildcard The * wildcard is interpreted as a string of none, one, or more characters The ? Wildcard The ? wildcard matches exactly one occurrence of any character The [ ] Wildcard The [ ] wildcard can be used to restrict the characters to be matched ©NIIT Linux/Lesson 2/Slide 8 of 17
  • 9. Commands used in Linux Operating System Getting Online Help The man command is used to get online help to a user about the various options for any command in Linux man command name ©NIIT Linux/Lesson 2/Slide 9 of 17
  • 10. Commands used in Linux Operating System Editors A text editor is used to create and manage text files and documents. An editor is an application software that is usually bundled with an operating system (OS). Functions of an Editor Create a file Open an existing file Copy and Paste text Search for text Handle a large amount of data ©NIIT Linux/Lesson 2/Slide 10 of 17
  • 11. Commands used in Linux Operating System The vi Editor The vi editor is a visual editor used to create and edit text files, documents, and programs. In Red Hat Linux, vi is a symbolic link to the vim editor, which is an improved version of the vi editor. Getting Started with vi The vi editor is invoked by giving the following command at the Linux prompt: ® vi filename Enter ©NIIT Linux/Lesson 2/Slide 11 of 17
  • 12. Commands used in Linux Operating System Editors A text editor is used to create and manage text files and documents. An editor is an application software that is usually bundled with an operating system (OS). Functions of an Editor Create a file Open an existing file Copy and Paste text Search for text Handle a large amount of data ©NIIT Linux/Lesson 2/Slide 12 of 17
  • 13. Commands used in Linux Operating System The vi Editor The vi editor is a visual editor used to create and edit text files, documents, and programs. In Red Hat Linux, vi is a symbolic link to the vim editor, which is an improved version of the vi editor. Getting Started with vi The vi editor is invoked by giving the following command at the Linux prompt: ® vi filename Enter ©NIIT Linux/Lesson 2/Slide 13 of 17
  • 14. Commands used in Linux Operating System Vi Editor(contd:) You can use the following commands to exit vi editor :x ZZ :q! ©NIIT Linux/Lesson 2/Slide 14 of 17
  • 15. Commands used in Linux Operating System Summary In this lesson, you learned that: some of the common directory commands used in Linux are: • pwd • cd • mkdir • rmdir • ls ©NIIT Linux/Lesson 2/Slide 15 of 17
  • 16. Commands used in Linux Operating System Summary (contd.) some of the common file commands used in Linux are: • Cat • Cp • Rm • Mv • More • less The shell offers the facility to perform an operation on a set of files by using the wildcard pattern. ©NIIT Linux/Lesson 2/Slide 16 of 17
  • 17. Commands used in Linux Operating System Summary (contd.) Some of the commonly used wildcard characters are: • ? – Matches one character in a file • * - Matches zero, one, or more than one character in a file name • [ ] – Matches one character from the enclosed list The man command is used to get online help to a user about the various options for any command in Linux The vi editor is used to create and edit documents ©NIIT Linux/Lesson 2/Slide 17 of 17