SlideShare une entreprise Scribd logo
1  sur  13
Télécharger pour lire hors ligne
COMMAND
pwd command
 This ‘pwd’ command prints the whole path starting from root directory to current working
directory.
 pwd stands for "print working directory."
 Syntax $pwd [options]
cal command
 This command displays the calendar of the current month.
 By default, when you run the cal command without any arguments. it displays the
current month's calendar.
 For example, if you run cal in Jan 2024, it will show the calendar for Jan 2024.
Syntax $ cal [options] [[[day] month] year]
date command
 This command is used to displays current time and date.
 When you run the date command without any arguments, it will simply display the
current date and time in the default format specified by your system's settings.
 Syntax $ date [options] [+format]
date command
options
 -d, --date=STRING: It is used to display time described by STRING.
 %a:It is used to display the abbreviated weekday name (e.g., Sun)
 %A:It is used to display the full weekday name (e.g., Sunday)
 %b:it is used to display the abbreviated month name (e.g., Jan)
 %B:It is used to display the full month name (e.g., January)
 %c:It is used to display the date and time (e.g., Thu Mar 3 23:05:25 2005)
 %C:It is used to display the century; like %Y, except omit last two digits (e.g., 20)
 %d:It is used to display the day of the month (e.g., 01)
 %D:It is used to display date; same as %m/%d/%y
 %F: It is used to display the full date; same as %Y-%m-%d
 %T:it is used to display the time; same as %H:%M:%S
 %u:It is used for the day of the week (1..7); 1 is Monday
 %y:It is used for the last two digits of the year (00..99)
whoami, who am i, who command
 All these commands are used to display the name of user who is currently logged in.
 When you run the `whoami` command, it returns the username associated with the
current user session.
 Syntax $ whoami
 Other related commands
Syntax $ who am i
Syntax $ who [options]
clear command
 When you run the clear command, it will clear the entire terminal screen, removing all
previous output and commands. This can be useful when the terminal screen becomes
cluttered with information and you want to start with a clean slate.
 It's important to note that running the clear command does not delete any previously
executed commands or their output. It only clears the screen visually, allowing you to
have a fresh start without scrolling through previous information.
 Syntax $ clear [options]
help command and help option
➢ As the name suggest help command is used to learn about built in commands. Nobody can
remember all the commands all the time so user can use help command or help option with
almost all the commands.
➢ $ date –help
➢ $ help pwd
whatis command
This command gives a one-line description about the command. It can be used as a quick
reference for any command.
 Syntax $ whatis [options]
man command
➢ ‘--help’ option and ‘whatis’ command do not provide thorough
information about the command.
➢ It is used to display the manual pages for various commands, system
calls, and library functions.
➢ It provides detailed information, usage examples, and descriptions of
command options.
 Syntax $ man [options] [section number] [command_name]
history command
➢ History command is used to display the previously executed commands and these
commands are saved in a history file.
➢ When you run the history command in a terminal or command prompt, it displays a
list of previously executed commands, typically showing the command number and the
command itself.
➢ Syntax $ history
echo command
➢ This command will echo whatever you provide it that is it displays a line of text or string
on standard output
➢ Syntax $ echo [options] [strings]
Options
-e enable the interpretation of escaped characters
n new line
t horizontal tab
v vertical tab
r carriage return with backspace
b backspace
bc command
➢The bc command in Linux is a calculator that provides advanced
mathematical capabilities.
➢ It stands for "basic calculator"
➢Syntax $ bc
➢If user want to quit from calculator, then type quit and press enter
key.

Contenu connexe

Similaire à Linux Basic commands for beginners-@OneMento

Introduction to programming c and data structures
Introduction to programming c and data structuresIntroduction to programming c and data structures
Introduction to programming c and data structuresPradipta Mishra
 
Introduction to Command Line & Batch files
Introduction to Command Line& Batch filesIntroduction to Command Line& Batch files
Introduction to Command Line & Batch filesHayder F. Shamary
 
Introduction to programming c and data-structures
Introduction to programming c and data-structures Introduction to programming c and data-structures
Introduction to programming c and data-structures Pradipta Mishra
 
Introduction to Basic C programming 01
Introduction to Basic C programming 01Introduction to Basic C programming 01
Introduction to Basic C programming 01Wingston
 
Unit 5 Foc
Unit 5 FocUnit 5 Foc
Unit 5 FocJAYA
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlabMohan Raj
 
the refernce of programming C notes ppt.pptx
the refernce of programming C notes ppt.pptxthe refernce of programming C notes ppt.pptx
the refernce of programming C notes ppt.pptxAnkitaVerma776806
 
Introduction To Unix.pptx
Introduction To Unix.pptxIntroduction To Unix.pptx
Introduction To Unix.pptxssuser140ea3
 
Functions and pointers_unit_4
Functions and pointers_unit_4Functions and pointers_unit_4
Functions and pointers_unit_4Saranya saran
 
Introduction to Basic C programming 02
Introduction to Basic C programming 02Introduction to Basic C programming 02
Introduction to Basic C programming 02Wingston
 
Linux commands part3
Linux commands part3Linux commands part3
Linux commands part3bhatvijetha
 

Similaire à Linux Basic commands for beginners-@OneMento (20)

lec4.docx
lec4.docxlec4.docx
lec4.docx
 
Design problem
Design problemDesign problem
Design problem
 
Introduction to programming c and data structures
Introduction to programming c and data structuresIntroduction to programming c and data structures
Introduction to programming c and data structures
 
Introduction to Command Line & Batch files
Introduction to Command Line& Batch filesIntroduction to Command Line& Batch files
Introduction to Command Line & Batch files
 
Introduction to programming c and data-structures
Introduction to programming c and data-structures Introduction to programming c and data-structures
Introduction to programming c and data-structures
 
Introduction to Basic C programming 01
Introduction to Basic C programming 01Introduction to Basic C programming 01
Introduction to Basic C programming 01
 
Shell programming
Shell programmingShell programming
Shell programming
 
Unit 5 Foc
Unit 5 FocUnit 5 Foc
Unit 5 Foc
 
C notes for exam preparation
C notes for exam preparationC notes for exam preparation
C notes for exam preparation
 
Introduction to matlab
Introduction to matlabIntroduction to matlab
Introduction to matlab
 
the refernce of programming C notes ppt.pptx
the refernce of programming C notes ppt.pptxthe refernce of programming C notes ppt.pptx
the refernce of programming C notes ppt.pptx
 
go.ppt
go.pptgo.ppt
go.ppt
 
First c program
First c programFirst c program
First c program
 
Introduction To Unix.pptx
Introduction To Unix.pptxIntroduction To Unix.pptx
Introduction To Unix.pptx
 
Functions and pointers_unit_4
Functions and pointers_unit_4Functions and pointers_unit_4
Functions and pointers_unit_4
 
Enums in c
Enums in cEnums in c
Enums in c
 
C Language Lecture 16
C Language Lecture 16C Language Lecture 16
C Language Lecture 16
 
Introduction to Basic C programming 02
Introduction to Basic C programming 02Introduction to Basic C programming 02
Introduction to Basic C programming 02
 
Linux commands part3
Linux commands part3Linux commands part3
Linux commands part3
 
Unix Tutorial
Unix TutorialUnix Tutorial
Unix Tutorial
 

Dernier

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlPeter Udo Diehl
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101vincent683379
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...FIDO Alliance
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsStefano
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfFIDO Alliance
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...FIDO Alliance
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...CzechDreamin
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyUXDXConf
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGDSC PJATK
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIES VE
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfFIDO Alliance
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty SecureFemke de Vroome
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPTiSEO AI
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxJennifer Lim
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeCzechDreamin
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfUK Journal
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FIDO Alliance
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024Stephanie Beckett
 

Dernier (20)

Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101AI presentation and introduction - Retrieval Augmented Generation RAG 101
AI presentation and introduction - Retrieval Augmented Generation RAG 101
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
IESVE for Early Stage Design and Planning
IESVE for Early Stage Design and PlanningIESVE for Early Stage Design and Planning
IESVE for Early Stage Design and Planning
 
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdfIntroduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
Introduction to FDO and How It works Applications _ Richard at FIDO Alliance.pdf
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
1111 ChatGPT Prompts PDF Free Download - Prompts for ChatGPT
 
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptxWSO2CONMay2024OpenSourceConferenceDebrief.pptx
WSO2CONMay2024OpenSourceConferenceDebrief.pptx
 
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi IbrahimzadeFree and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
Free and Effective: Making Flows Publicly Accessible, Yumi Ibrahimzade
 
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdfBreaking Down the Flutterwave Scandal What You Need to Know.pdf
Breaking Down the Flutterwave Scandal What You Need to Know.pdf
 
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
FDO for Camera, Sensor and Networking Device – Commercial Solutions from VinC...
 
What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024What's New in Teams Calling, Meetings and Devices April 2024
What's New in Teams Calling, Meetings and Devices April 2024
 

Linux Basic commands for beginners-@OneMento

  • 2. pwd command  This ‘pwd’ command prints the whole path starting from root directory to current working directory.  pwd stands for "print working directory."  Syntax $pwd [options]
  • 3. cal command  This command displays the calendar of the current month.  By default, when you run the cal command without any arguments. it displays the current month's calendar.  For example, if you run cal in Jan 2024, it will show the calendar for Jan 2024. Syntax $ cal [options] [[[day] month] year]
  • 4. date command  This command is used to displays current time and date.  When you run the date command without any arguments, it will simply display the current date and time in the default format specified by your system's settings.  Syntax $ date [options] [+format]
  • 5. date command options  -d, --date=STRING: It is used to display time described by STRING.  %a:It is used to display the abbreviated weekday name (e.g., Sun)  %A:It is used to display the full weekday name (e.g., Sunday)  %b:it is used to display the abbreviated month name (e.g., Jan)  %B:It is used to display the full month name (e.g., January)  %c:It is used to display the date and time (e.g., Thu Mar 3 23:05:25 2005)  %C:It is used to display the century; like %Y, except omit last two digits (e.g., 20)  %d:It is used to display the day of the month (e.g., 01)  %D:It is used to display date; same as %m/%d/%y  %F: It is used to display the full date; same as %Y-%m-%d  %T:it is used to display the time; same as %H:%M:%S  %u:It is used for the day of the week (1..7); 1 is Monday  %y:It is used for the last two digits of the year (00..99)
  • 6. whoami, who am i, who command  All these commands are used to display the name of user who is currently logged in.  When you run the `whoami` command, it returns the username associated with the current user session.  Syntax $ whoami  Other related commands Syntax $ who am i Syntax $ who [options]
  • 7. clear command  When you run the clear command, it will clear the entire terminal screen, removing all previous output and commands. This can be useful when the terminal screen becomes cluttered with information and you want to start with a clean slate.  It's important to note that running the clear command does not delete any previously executed commands or their output. It only clears the screen visually, allowing you to have a fresh start without scrolling through previous information.  Syntax $ clear [options]
  • 8. help command and help option ➢ As the name suggest help command is used to learn about built in commands. Nobody can remember all the commands all the time so user can use help command or help option with almost all the commands. ➢ $ date –help ➢ $ help pwd
  • 9. whatis command This command gives a one-line description about the command. It can be used as a quick reference for any command.  Syntax $ whatis [options]
  • 10. man command ➢ ‘--help’ option and ‘whatis’ command do not provide thorough information about the command. ➢ It is used to display the manual pages for various commands, system calls, and library functions. ➢ It provides detailed information, usage examples, and descriptions of command options.  Syntax $ man [options] [section number] [command_name]
  • 11. history command ➢ History command is used to display the previously executed commands and these commands are saved in a history file. ➢ When you run the history command in a terminal or command prompt, it displays a list of previously executed commands, typically showing the command number and the command itself. ➢ Syntax $ history
  • 12. echo command ➢ This command will echo whatever you provide it that is it displays a line of text or string on standard output ➢ Syntax $ echo [options] [strings] Options -e enable the interpretation of escaped characters n new line t horizontal tab v vertical tab r carriage return with backspace b backspace
  • 13. bc command ➢The bc command in Linux is a calculator that provides advanced mathematical capabilities. ➢ It stands for "basic calculator" ➢Syntax $ bc ➢If user want to quit from calculator, then type quit and press enter key.