SlideShare a Scribd company logo
1 of 13
Download to read offline
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.

More Related Content

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

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

Recently uploaded

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
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
 
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
 

Recently uploaded (20)

Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 

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.