SlideShare una empresa de Scribd logo
1 de 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

Más contenido relacionado

La actualidad más candente

La actualidad más candente (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
 

Destacado

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
 

Destacado (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
 

Similar a 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
 

Similar a 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
 

Más de 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
 

Último

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...gurkirankumar98700
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 

Último (20)

Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
Kalyanpur ) Call Girls in Lucknow Finest Escorts Service 🍸 8923113531 🎰 Avail...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 

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