SlideShare a Scribd company logo
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
Ad

More Related Content

What's hot (20)

Some basic unix commands
Some basic unix commandsSome basic unix commands
Some basic unix commands
aaj_sarkar06
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
PrashantTechment
 
01 t1 s2_linux_lesson1
01 t1 s2_linux_lesson101 t1 s2_linux_lesson1
01 t1 s2_linux_lesson1
Niit Care
 
Linux
Linux Linux
Linux
Kevin James
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
nishantsri
 
basic linux command (questions)
basic linux command (questions)basic linux command (questions)
basic linux command (questions)
Sukhraj Singh
 
Presentation on linux
Presentation on linuxPresentation on linux
Presentation on linux
Veeral Bhateja
 
Linux beginner's Workshop
Linux beginner's WorkshopLinux beginner's Workshop
Linux beginner's Workshop
futureshocked
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
Muhammad Qazi
 
Linux
Linux Linux
Linux
Patruni Chidananda Sastry
 
Linux administration classes in mumbai
Linux administration classes in mumbaiLinux administration classes in mumbai
Linux administration classes in mumbai
Vibrant Technologies & Computers
 
Linux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScITLinux practicals T.Y.B.ScIT
Linux practicals T.Y.B.ScIT
vignesh0009
 
Unix
UnixUnix
Unix
Erm78
 
Introduction about linux
Introduction about linuxIntroduction about linux
Introduction about linux
ABHISHEK KUMAR
 
Linux week 2
Linux week 2Linux week 2
Linux week 2
Vinoth Sn
 
Basic unix commands
Basic unix commandsBasic unix commands
Basic unix commands
srinivas damarla
 
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
Emertxe Information Technologies Pvt Ltd
 
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
Rahul Mashal
 
Linux commands
Linux commandsLinux commands
Linux commands
Hemakumar.S
 
UNIX/Linux training
UNIX/Linux trainingUNIX/Linux training
UNIX/Linux training
Michael Olafusi
 

Viewers also liked (13)

Sql xp 09
Sql xp 09Sql xp 09
Sql xp 09
Niit Care
 
Dacj 1-3 b
Dacj 1-3 bDacj 1-3 b
Dacj 1-3 b
Niit Care
 
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
Niit Care
 
Sql xp 11
Sql xp 11Sql xp 11
Sql xp 11
Niit Care
 
Sql xp 10
Sql xp 10Sql xp 10
Sql xp 10
Niit Care
 
Sql xp 01
Sql xp 01Sql xp 01
Sql xp 01
Niit Care
 
Comp tia n+_session_08
Comp tia n+_session_08Comp tia n+_session_08
Comp tia n+_session_08
Niit 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_01
Niit Care
 
SQL | Computer Science
SQL | Computer ScienceSQL | Computer Science
SQL | Computer Science
Transweb Global Inc
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
VishalJharwade
 
Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
Niit Care
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
Ajeet Singh
 
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
Niit Care
 
Comp tia n+_session_08
Comp tia n+_session_08Comp tia n+_session_08
Comp tia n+_session_08
Niit 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_01
Niit Care
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
Ajeet Singh
 
Ad

Similar to 02 t1 s2_linux_lesson2 (20)

LINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptxLINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptx
ParasPatel69066
 
Linux basic
Linux basicLinux basic
Linux basic
Pragyagupta37
 
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
KesavanT10
 
Linux_ operating_ System (Linux os ).pptx
Linux_ operating_ System (Linux os ).pptxLinux_ operating_ System (Linux os ).pptx
Linux_ operating_ System (Linux os ).pptx
krishna07372647
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
Deepak Upadhyay
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
Sudharsan S
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
Achyut 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 Arkit
Ravi Kumar
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
perweeng31
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
Liran 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 LINUX
Deeksha Verma
 
3. intro
3. intro3. intro
3. intro
Harsh Shrimal
 
cisco
ciscocisco
cisco
edomaldo
 
Lab Report.1.docx
Lab Report.1.docxLab Report.1.docx
Lab Report.1.docx
1KWatching
 
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEMTERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
pssafvan97
 
Linux Command.ppsx
Linux Command.ppsxLinux Command.ppsx
Linux Command.ppsx
PranavPatil822557
 
Linux Systems Programming: Ubuntu Installation and Configuration
Linux Systems Programming: Ubuntu Installation and ConfigurationLinux Systems Programming: Ubuntu Installation and Configuration
Linux Systems Programming: Ubuntu Installation and Configuration
RashidFaridChishti
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
PDhivyabharathi2
 
Top Linux 10 Commands for Windows Admins
Top Linux 10 Commands for Windows AdminsTop Linux 10 Commands for Windows Admins
Top Linux 10 Commands for Windows Admins
techprane
 
Unix_QT.ppsx
Unix_QT.ppsxUnix_QT.ppsx
Unix_QT.ppsx
vamsikrishna204239
 
LINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptxLINUX_Commands_Het[1].pptx
LINUX_Commands_Het[1].pptx
ParasPatel69066
 
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
KesavanT10
 
Linux_ operating_ System (Linux os ).pptx
Linux_ operating_ System (Linux os ).pptxLinux_ operating_ System (Linux os ).pptx
Linux_ operating_ System (Linux os ).pptx
krishna07372647
 
Introduction to Unix
Introduction to UnixIntroduction to Unix
Introduction to Unix
Sudharsan S
 
Linux operating system ppt
Linux operating system pptLinux operating system ppt
Linux operating system ppt
Achyut 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 Arkit
Ravi Kumar
 
18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma18 LINUX OS.pptx Linux command is basic isma
18 LINUX OS.pptx Linux command is basic isma
perweeng31
 
Programming Embedded linux
Programming Embedded linuxProgramming Embedded linux
Programming Embedded linux
Liran 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 LINUX
Deeksha Verma
 
Lab Report.1.docx
Lab Report.1.docxLab Report.1.docx
Lab Report.1.docx
1KWatching
 
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEMTERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
TERMINAL COMMANDS IN LINUX TERMINAL USED TO INTERACT WITH SYSTEM
pssafvan97
 
Linux Systems Programming: Ubuntu Installation and Configuration
Linux Systems Programming: Ubuntu Installation and ConfigurationLinux Systems Programming: Ubuntu Installation and Configuration
Linux Systems Programming: Ubuntu Installation and Configuration
RashidFaridChishti
 
Operating System Laboratory presentation .ppt
Operating System Laboratory presentation .pptOperating System Laboratory presentation .ppt
Operating System Laboratory presentation .ppt
PDhivyabharathi2
 
Top Linux 10 Commands for Windows Admins
Top Linux 10 Commands for Windows AdminsTop Linux 10 Commands for Windows Admins
Top Linux 10 Commands for Windows Admins
techprane
 
Ad

More from Niit Care (20)

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

Recently uploaded (20)

Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Technology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data AnalyticsTechnology Trends in 2025: AI and Big Data Analytics
Technology Trends in 2025: AI and Big Data Analytics
InData Labs
 
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded DevelopersLinux Support for SMARC: How Toradex Empowers Embedded Developers
Linux Support for SMARC: How Toradex Empowers Embedded Developers
Toradex
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath MaestroDev Dives: Automate and orchestrate your processes with UiPath Maestro
Dev Dives: Automate and orchestrate your processes with UiPath Maestro
UiPathCommunity
 
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
#StandardsGoals for 2025: Standards & certification roundup - Tech Forum 2025
BookNet Canada
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-UmgebungenHCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
HCL Nomad Web – Best Practices und Verwaltung von Multiuser-Umgebungen
panagenda
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptxIncreasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Increasing Retail Store Efficiency How can Planograms Save Time and Money.pptx
Anoop Ashok
 
How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?How Can I use the AI Hype in my Business Context?
How Can I use the AI Hype in my Business Context?
Daniel Lehner
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Big Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur MorganBig Data Analytics Quick Research Guide by Arthur Morgan
Big Data Analytics Quick Research Guide by Arthur Morgan
Arthur Morgan
 
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
Transcript: #StandardsGoals for 2025: Standards & certification roundup - Tec...
BookNet Canada
 

02 t1 s2_linux_lesson2

  • 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