SlideShare a Scribd company logo
1 of 6
Commands on Shells
Commands on bash Shell
• date-print date and time
• History-to show all the commands executed
• !!-execute last command once again
• touch-to create an empty file
• Command completion and filename
completion using <tab>
File Globbing
• Used to deal with several files at a time
• If we want to copy all the files of one directory to
another directory.
• It describes the technique of grouping files
together using simple wildcard or metacharacter
expressions.
• *-represents zero or more matches of any
characters.
• ?-represents a match of exactly one character
• []=match any one of the characters between them.
Shorthand Meaning
$ ls * will show all files
$ ls a* will show all files whose first name is
starting with letter 'a'
$ ls *.c will show all files having extension .c
$ ls ut*.c will show all files having extension .c
but file name must begin with 'ut'.
$ ls ? will show all files whose names are 1
character long
$ ls fo? will show all files whose names are 3
character long and file name begin
with fo
$ ls [abc]* will show all files beginning with
letters a,b,c
Environmental Variables
• Environment variables are name-value pairs
that are defined either on the shell prompt or
in startup files.
• These are used to set the value of default
programs.
• Can be searched by the command “env”
Environmental Variables
• Environment variables are name-value pairs
that are defined either on the shell prompt or
in startup files.
• These are used to set the value of default
programs.
• Can be searched by the command “env”

More Related Content

What's hot

Bash Shell Scripting
Bash Shell ScriptingBash Shell Scripting
Bash Shell Scripting
Raghu nath
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editor
root_fibo
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
Rohit Kumar
 

What's hot (19)

Using the command line on macOS
Using the command line on macOSUsing the command line on macOS
Using the command line on macOS
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Pipes and filters
Pipes and filtersPipes and filters
Pipes and filters
 
The Bash Love
The Bash LoveThe Bash Love
The Bash Love
 
Coming Out Of Your Shell - A Comparison of *Nix Shells
Coming Out Of Your Shell - A Comparison of *Nix ShellsComing Out Of Your Shell - A Comparison of *Nix Shells
Coming Out Of Your Shell - A Comparison of *Nix Shells
 
Linux commd
Linux commdLinux commd
Linux commd
 
Linux commd
Linux commdLinux commd
Linux commd
 
Bash Shell Scripting
Bash Shell ScriptingBash Shell Scripting
Bash Shell Scripting
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Unix - Shell Scripts
Unix - Shell ScriptsUnix - Shell Scripts
Unix - Shell Scripts
 
Shell programming
Shell programmingShell programming
Shell programming
 
Bash Shell Scripting
Bash Shell ScriptingBash Shell Scripting
Bash Shell Scripting
 
Unit 5 vim an advanced text editor
Unit 5 vim an advanced text editorUnit 5 vim an advanced text editor
Unit 5 vim an advanced text editor
 
Code tacoma command_line
Code tacoma command_lineCode tacoma command_line
Code tacoma command_line
 
Basic command ppt
Basic command pptBasic command ppt
Basic command ppt
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Basic linux commands for bioinformatics
Basic linux commands for bioinformaticsBasic linux commands for bioinformatics
Basic linux commands for bioinformatics
 
Unix - Filters/Editors
Unix - Filters/EditorsUnix - Filters/Editors
Unix - Filters/Editors
 

Viewers also liked

Çalışanların Motivasyonu Nasıl Arttırılır?
Çalışanların Motivasyonu Nasıl Arttırılır?Çalışanların Motivasyonu Nasıl Arttırılır?
Çalışanların Motivasyonu Nasıl Arttırılır?
SlaytSunum
 

Viewers also liked (20)

2016愛普生永續發展報告書
2016愛普生永續發展報告書2016愛普生永續發展報告書
2016愛普生永續發展報告書
 
第一期A類_國立東海大學
第一期A類_國立東海大學第一期A類_國立東海大學
第一期A類_國立東海大學
 
Muhammad Faisal
Muhammad Faisal Muhammad Faisal
Muhammad Faisal
 
行動磨課師 MobileMOOCs
行動磨課師 MobileMOOCs行動磨課師 MobileMOOCs
行動磨課師 MobileMOOCs
 
The Growth Strategy: A change from a product-centric industry to a Customer E...
The Growth Strategy: A change from a product-centric industry to a Customer E...The Growth Strategy: A change from a product-centric industry to a Customer E...
The Growth Strategy: A change from a product-centric industry to a Customer E...
 
WPC decking projects in LatAm. 2014
WPC decking projects in LatAm. 2014WPC decking projects in LatAm. 2014
WPC decking projects in LatAm. 2014
 
第一期A類_長榮大學─打造具備反思學習的水岸大學
第一期A類_長榮大學─打造具備反思學習的水岸大學第一期A類_長榮大學─打造具備反思學習的水岸大學
第一期A類_長榮大學─打造具備反思學習的水岸大學
 
Linux lesson
Linux lesson Linux lesson
Linux lesson
 
第一期A類_國立中興大學─興創跨域學習生態系統計畫
第一期A類_國立中興大學─興創跨域學習生態系統計畫第一期A類_國立中興大學─興創跨域學習生態系統計畫
第一期A類_國立中興大學─興創跨域學習生態系統計畫
 
東海綠色博雅農場介紹
東海綠色博雅農場介紹東海綠色博雅農場介紹
東海綠色博雅農場介紹
 
GPON Solution
GPON SolutionGPON Solution
GPON Solution
 
第二期A類_南臺科技大學 新世代跨領域工程,務實人才培育典範
第二期A類_南臺科技大學 新世代跨領域工程,務實人才培育典範第二期A類_南臺科技大學 新世代跨領域工程,務實人才培育典範
第二期A類_南臺科技大學 新世代跨領域工程,務實人才培育典範
 
第一期B類_文藻外語大學─大學學習生態系統創新計畫
第一期B類_文藻外語大學─大學學習生態系統創新計畫第一期B類_文藻外語大學─大學學習生態系統創新計畫
第一期B類_文藻外語大學─大學學習生態系統創新計畫
 
Internship Report on thermal power station in vizag steel plant
Internship Report on thermal power station in vizag steel plantInternship Report on thermal power station in vizag steel plant
Internship Report on thermal power station in vizag steel plant
 
What does Digital Finance mean for MFIs?
What does Digital Finance mean for MFIs?What does Digital Finance mean for MFIs?
What does Digital Finance mean for MFIs?
 
Services Financiers Numériques pour les Producteurs de Cacao en Côte d’Ivoire
Services Financiers Numériques pour les Producteurs de Cacao en Côte d’IvoireServices Financiers Numériques pour les Producteurs de Cacao en Côte d’Ivoire
Services Financiers Numériques pour les Producteurs de Cacao en Côte d’Ivoire
 
Çalışanların Motivasyonu Nasıl Arttırılır?
Çalışanların Motivasyonu Nasıl Arttırılır?Çalışanların Motivasyonu Nasıl Arttırılır?
Çalışanların Motivasyonu Nasıl Arttırılır?
 
File system.
File system.File system.
File system.
 
Linux File System
Linux File SystemLinux File System
Linux File System
 
File system
File systemFile system
File system
 

Similar to 16952 commands on shells

COMELEC III - Bash unit 1
COMELEC III - Bash unit 1COMELEC III - Bash unit 1
COMELEC III - Bash unit 1
Binsent Ribera
 
Using Unix
Using UnixUsing Unix
Using Unix
Dr.Ravi
 

Similar to 16952 commands on shells (20)

Scripting and the shell in LINUX
Scripting and the shell in LINUXScripting and the shell in LINUX
Scripting and the shell in LINUX
 
part2.pdf
part2.pdfpart2.pdf
part2.pdf
 
COMELEC III - Bash unit 1
COMELEC III - Bash unit 1COMELEC III - Bash unit 1
COMELEC III - Bash unit 1
 
Commands and shell programming (3)
Commands and shell programming (3)Commands and shell programming (3)
Commands and shell programming (3)
 
Unix command line concepts
Unix command line conceptsUnix command line concepts
Unix command line concepts
 
Linux Basic commands and VI Editor
Linux Basic commands and VI EditorLinux Basic commands and VI Editor
Linux Basic commands and VI Editor
 
Using Unix
Using UnixUsing Unix
Using Unix
 
Internal commands of dos
Internal commands of dosInternal commands of dos
Internal commands of dos
 
Wildcards, Simple Shell Programs and Shell Variables
Wildcards, Simple Shell Programs and Shell VariablesWildcards, Simple Shell Programs and Shell Variables
Wildcards, Simple Shell Programs and Shell Variables
 
Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions Course 102: Lecture 13: Regular Expressions
Course 102: Lecture 13: Regular Expressions
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Red hat linux essentials
Red hat linux essentialsRed hat linux essentials
Red hat linux essentials
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 
BASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptxBASICS OF LINUX OPERATING SYSTEM.pptx
BASICS OF LINUX OPERATING SYSTEM.pptx
 
40 basic linux command
40 basic linux command40 basic linux command
40 basic linux command
 
QSpiders - Unix Operating Systems and Commands
QSpiders - Unix Operating Systems  and CommandsQSpiders - Unix Operating Systems  and Commands
QSpiders - Unix Operating Systems and Commands
 
Course 102: Lecture 12: Basic Text Handling
Course 102: Lecture 12: Basic Text Handling Course 102: Lecture 12: Basic Text Handling
Course 102: Lecture 12: Basic Text Handling
 
Unix Trainning Doc.pptx
Unix Trainning Doc.pptxUnix Trainning Doc.pptx
Unix Trainning Doc.pptx
 
390aLecture05_12sp.ppt
390aLecture05_12sp.ppt390aLecture05_12sp.ppt
390aLecture05_12sp.ppt
 
Linux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for BeginnersLinux Bash Shell Cheat Sheet for Beginners
Linux Bash Shell Cheat Sheet for Beginners
 

Recently uploaded

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
FIDO Alliance
 

Recently uploaded (20)

ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
Observability Concepts EVERY Developer Should Know (DevOpsDays Seattle)
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024WebRTC and SIP not just audio and video @ OpenSIPS 2024
WebRTC and SIP not just audio and video @ OpenSIPS 2024
 
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
Event-Driven Architecture Masterclass: Integrating Distributed Data Stores Ac...
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
UiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overviewUiPath manufacturing technology benefits and AI overview
UiPath manufacturing technology benefits and AI overview
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties ReimaginedEasier, Faster, and More Powerful – Notes Document Properties Reimagined
Easier, Faster, and More Powerful – Notes Document Properties Reimagined
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
Top 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development CompaniesTop 10 CodeIgniter Development Companies
Top 10 CodeIgniter Development Companies
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...Hyatt driving innovation and exceptional customer experiences with FIDO passw...
Hyatt driving innovation and exceptional customer experiences with FIDO passw...
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 

16952 commands on shells

  • 2. Commands on bash Shell • date-print date and time • History-to show all the commands executed • !!-execute last command once again • touch-to create an empty file • Command completion and filename completion using <tab>
  • 3. File Globbing • Used to deal with several files at a time • If we want to copy all the files of one directory to another directory. • It describes the technique of grouping files together using simple wildcard or metacharacter expressions. • *-represents zero or more matches of any characters. • ?-represents a match of exactly one character • []=match any one of the characters between them.
  • 4. Shorthand Meaning $ ls * will show all files $ ls a* will show all files whose first name is starting with letter 'a' $ ls *.c will show all files having extension .c $ ls ut*.c will show all files having extension .c but file name must begin with 'ut'. $ ls ? will show all files whose names are 1 character long $ ls fo? will show all files whose names are 3 character long and file name begin with fo $ ls [abc]* will show all files beginning with letters a,b,c
  • 5. Environmental Variables • Environment variables are name-value pairs that are defined either on the shell prompt or in startup files. • These are used to set the value of default programs. • Can be searched by the command “env”
  • 6. Environmental Variables • Environment variables are name-value pairs that are defined either on the shell prompt or in startup files. • These are used to set the value of default programs. • Can be searched by the command “env”