SlideShare ist ein Scribd-Unternehmen logo
1 von 15
Basics of Linux
Gulshan Verma
Singsys Pte. Ltd.
Tux
Tux The Penguin, Mascot of Linux
 It is Unix based Operating System developed by community.
 Originated at 1991.
 It is free open source software (FOSS)
 The defining component of Linux is the Linux kernel
 Monolithic
 Micro

 The user interface, also known as the shell, is either a commandline interface (CLI)
 Sh – simple shell
 BASH – Bourne Again Shell
 KSH – Korne Shell
 CSH – C Shell
 SSH – Secure Shell

 Text Editor: VI, Emacs, gEdit, kWrite, Pico, Nano etc.
Basics Commands of Linux
Basic Commands
$ ls List with filename only
$ ls –l List with all details
$ ls –a List with hidden files
$ ls -la List with hidden files and details
Basic Commands (cont)
$ cd /usr/bin Open folder path
$ pwd returns full path of the current
directory
$ which ls
$ whereis ls
$ locate filename
$ find / | something.sh
$ echo
$ cat filename
$ cp
$ mv
Basic Commands (cont)
$ mkdir
$ rm
$ chgrp
$ chown
$ chmod
$ tar –cvfp filename.tar /folder
$ unzip filename
$ tar –xvfp filename.tar
$ touch
Basic Commands (cont)



















Linux TAR Command
Create linux tar gz (Gzip) archive
tar -czvf myarchive.tgz mydirectory/
-c, –create create a new archive
Note that .tgz is the same thing as .tar.gz
Create linux simple tar archive (withouth compresion)
tar -cvf myarchive.tar mydirectory/
Extracting linux tar archive:
Extract linux tar gz (Gzip) archive
tar -xzvf mystuff.tgz
Extract linux simple tar archive
tar -xvf mystuff.tar
We use -x to extract the files form the tar archive -x, –extract, –get extract files from an archive
Extract linux tar archive to speciefied directory
tar -xvzf filename.tar.gz -C /desired/path
And now let us shortly explain this command
Usage: tar [OPTION]… [FILE]…
Let us check the option used in this example
-c, –create
create a new archive
-z, –gzip, –ungzip
filter the archive through gzip
-v, –verbose
verbosely list files processed
-f, –file=ARCHIVE
use archive file or device ARCHIVE
-C directory file
File Permission
File Permission (Cont)
 Octal numbers and permissions
 You can use octal number to represent mode/permission:
r : 4
w : 2
x : 1

 0+r+w+x = 0+4+2+1 = 7

 Only Read and write permission on a file in octal is
0+r+w+x = 0+4+2+0 = 6
 Only read and execute permission on a file in octal is
0+r+w+x = 0+4+0+1 = 5

 User
 Group
 Others

= r+w+x = 0+4+2+1 = 7
= r+w+x = 0+4+2+0 = 6
= r+w+x = 0+0+0+1 = 1
File Permission (Cont)
Creating a crontab file
You can create a crontab file by entering the following
terminal command:
$ crontab –e
To List all the cron job:
$ crontab -l
Crontab Syntax
Crontab examples
* * * * * <command> #Runs every minute 30
* * * * <command> #Runs at 30 minutes past the hour
45 6 * * * <command> #Runs at 6:45 am every day
45 18 * * * <command> #Runs at 6:45 pm every day
00 1 * * 0 <command> #Runs at 1:00 am every Sunday
00 1 * * 7 <command> #Runs at 1:00 am every Sunday
00 1 * * Sun <command> #Runs at 1:00 am every Sunday
30 8 1 * * <command> #Runs at 8:30 am on the first day of
every month
00 0-23/2 02 07 * <command> #Runs every other hour on the
2nd of July
Thank You!
info@singsys.com
Phone-65613900

Weitere ähnliche Inhalte

Was ist angesagt?

Linux presentation
Linux presentationLinux presentation
Linux presentation
Nikhil Jain
 
Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
IMRAN KHAN
 

Was ist angesagt? (20)

Linux presentation
Linux presentationLinux presentation
Linux presentation
 
User Administration in Linux
User Administration in LinuxUser Administration in Linux
User Administration in Linux
 
Introduction to Linux
Introduction to Linux Introduction to Linux
Introduction to Linux
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux command ppt
Linux command pptLinux command ppt
Linux command ppt
 
Introduction to Linux basic
Introduction to Linux basicIntroduction to Linux basic
Introduction to Linux basic
 
Linux introduction, class 1
Linux introduction, class 1Linux introduction, class 1
Linux introduction, class 1
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
File permission in linux
File permission in linuxFile permission in linux
File permission in linux
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Linux
Linux Linux
Linux
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
Introduction 2 linux
Introduction 2 linuxIntroduction 2 linux
Introduction 2 linux
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
File permissions
File permissionsFile permissions
File permissions
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Linux programming lecture_notes
Linux programming lecture_notesLinux programming lecture_notes
Linux programming lecture_notes
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
Linux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating SystemLinux - Introductions to Linux Operating System
Linux - Introductions to Linux Operating System
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 

Andere mochten auch

Ras pioverview
Ras pioverviewRas pioverview
Ras pioverview
Alec Clews
 
Power point (asking permission)
Power point (asking permission)Power point (asking permission)
Power point (asking permission)
ahmaddarda1505
 

Andere mochten auch (20)

Chap 17 advfs
Chap 17 advfsChap 17 advfs
Chap 17 advfs
 
Linux fundamental - Chap 16 System Rescue
Linux fundamental - Chap 16 System RescueLinux fundamental - Chap 16 System Rescue
Linux fundamental - Chap 16 System Rescue
 
Linux pipe & redirection
Linux pipe & redirectionLinux pipe & redirection
Linux pipe & redirection
 
Unix tutorial-08
Unix tutorial-08Unix tutorial-08
Unix tutorial-08
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Ras pioverview
Ras pioverviewRas pioverview
Ras pioverview
 
Chap 18 net
Chap 18 netChap 18 net
Chap 18 net
 
Linux network monitoring hands-on pratice
Linux network monitoring hands-on praticeLinux network monitoring hands-on pratice
Linux network monitoring hands-on pratice
 
Linux fundamentals
Linux fundamentalsLinux fundamentals
Linux fundamentals
 
Your first linux programs
Your first linux programsYour first linux programs
Your first linux programs
 
Power point (asking permission)
Power point (asking permission)Power point (asking permission)
Power point (asking permission)
 
Unix - Filters/Editors
Unix - Filters/EditorsUnix - Filters/Editors
Unix - Filters/Editors
 
Chap 19 web
Chap 19 webChap 19 web
Chap 19 web
 
Linux fundamental - Chap 13 account management
Linux fundamental - Chap 13 account managementLinux fundamental - Chap 13 account management
Linux fundamental - Chap 13 account management
 
Linux fundamental - Chap 05 filter
Linux fundamental - Chap 05 filterLinux fundamental - Chap 05 filter
Linux fundamental - Chap 05 filter
 
Linux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkgLinux fundamental - Chap 09 pkg
Linux fundamental - Chap 09 pkg
 
Linux fundamental - Chap 14 shell script
Linux fundamental - Chap 14 shell scriptLinux fundamental - Chap 14 shell script
Linux fundamental - Chap 14 shell script
 
Linux fundamental - Chap 02 perm
Linux fundamental - Chap 02 permLinux fundamental - Chap 02 perm
Linux fundamental - Chap 02 perm
 
Importance of linux system fundamental in technical documentation reading
Importance of linux system fundamental in technical documentation readingImportance of linux system fundamental in technical documentation reading
Importance of linux system fundamental in technical documentation reading
 
Linux-Permission
Linux-PermissionLinux-Permission
Linux-Permission
 

Ähnlich wie Basics of-linux

8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
southees
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
Dimas Prasetyo
 
1 basic computer operations
1   basic computer operations1   basic computer operations
1 basic computer operations
missCS
 

Ähnlich wie Basics of-linux (20)

Shell_Scripting.ppt
Shell_Scripting.pptShell_Scripting.ppt
Shell_Scripting.ppt
 
Basics of Linux
Basics of LinuxBasics of Linux
Basics of Linux
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
linux-lecture4.ppt
linux-lecture4.pptlinux-lecture4.ppt
linux-lecture4.ppt
 
Directories description
Directories descriptionDirectories description
Directories description
 
8.1.intro unix
8.1.intro unix8.1.intro unix
8.1.intro unix
 
Shell Scripting crash course.pdf
Shell Scripting crash course.pdfShell Scripting crash course.pdf
Shell Scripting crash course.pdf
 
bash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdfbash_1_2021-command line introduction.pdf
bash_1_2021-command line introduction.pdf
 
Linux
LinuxLinux
Linux
 
60761 linux
60761 linux60761 linux
60761 linux
 
Linux file commands and shell scripts
Linux file commands and shell scriptsLinux file commands and shell scripts
Linux file commands and shell scripts
 
Raspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OSRaspberry Pi - Lecture 2 Linux OS
Raspberry Pi - Lecture 2 Linux OS
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 
Operating Systems 2
Operating Systems 2Operating Systems 2
Operating Systems 2
 
Module 02 Using Linux Command Shell
Module 02 Using Linux Command ShellModule 02 Using Linux Command Shell
Module 02 Using Linux Command Shell
 
1 basic computer operations
1   basic computer operations1   basic computer operations
1 basic computer operations
 
Linux powerpoint
Linux powerpointLinux powerpoint
Linux powerpoint
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 
Linux
LinuxLinux
Linux
 

Mehr von Singsys Pte Ltd

Mehr von Singsys Pte Ltd (20)

Technical Seminar Series: GIT Pull Requests Best Practices
Technical Seminar Series:  GIT Pull Requests Best PracticesTechnical Seminar Series:  GIT Pull Requests Best Practices
Technical Seminar Series: GIT Pull Requests Best Practices
 
Laravel Security Standards
Laravel Security Standards Laravel Security Standards
Laravel Security Standards
 
Android OS - The Journey of most popular Operating System
Android OS - The Journey of most popular Operating SystemAndroid OS - The Journey of most popular Operating System
Android OS - The Journey of most popular Operating System
 
How to do Memory Optimizations in Android
How to do Memory Optimizations in AndroidHow to do Memory Optimizations in Android
How to do Memory Optimizations in Android
 
iOS Application Battery Optimization Techniques
iOS Application Battery Optimization TechniquesiOS Application Battery Optimization Techniques
iOS Application Battery Optimization Techniques
 
Android Battery optimization Android Apps
Android Battery optimization Android AppsAndroid Battery optimization Android Apps
Android Battery optimization Android Apps
 
How to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy StepsHow to Create WordPress Website in Easy Steps
How to Create WordPress Website in Easy Steps
 
SoLoMo
SoLoMoSoLoMo
SoLoMo
 
Introduction to facebook sdk
Introduction to facebook sdkIntroduction to facebook sdk
Introduction to facebook sdk
 
Html5 tutorial for beginners
Html5 tutorial for beginnersHtml5 tutorial for beginners
Html5 tutorial for beginners
 
Beginners css tutorial for web designers
Beginners css tutorial for web designersBeginners css tutorial for web designers
Beginners css tutorial for web designers
 
Joomla 3 installation and management guide
Joomla 3 installation and management guideJoomla 3 installation and management guide
Joomla 3 installation and management guide
 
Joomla Introduction & Installation Tutorial
Joomla Introduction & Installation TutorialJoomla Introduction & Installation Tutorial
Joomla Introduction & Installation Tutorial
 
Basic of web design
Basic of web designBasic of web design
Basic of web design
 
Embedded Technology
Embedded TechnologyEmbedded Technology
Embedded Technology
 
Java Tutorial
Java TutorialJava Tutorial
Java Tutorial
 
Technical seo tips for web developers
Technical seo tips for web developersTechnical seo tips for web developers
Technical seo tips for web developers
 
WordPress Website Design and Development
WordPress Website Design and DevelopmentWordPress Website Design and Development
WordPress Website Design and Development
 
Being a designer
Being a designerBeing a designer
Being a designer
 
Points for Design and Development of SEO friendly websites
Points for Design and Development of SEO friendly websitesPoints for Design and Development of SEO friendly websites
Points for Design and Development of SEO friendly websites
 

Kürzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Kürzlich hochgeladen (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

Basics of-linux

  • 1. Basics of Linux Gulshan Verma Singsys Pte. Ltd.
  • 2. Tux Tux The Penguin, Mascot of Linux
  • 3.  It is Unix based Operating System developed by community.  Originated at 1991.  It is free open source software (FOSS)  The defining component of Linux is the Linux kernel  Monolithic  Micro  The user interface, also known as the shell, is either a commandline interface (CLI)  Sh – simple shell  BASH – Bourne Again Shell  KSH – Korne Shell  CSH – C Shell  SSH – Secure Shell  Text Editor: VI, Emacs, gEdit, kWrite, Pico, Nano etc.
  • 5. Basic Commands $ ls List with filename only $ ls –l List with all details $ ls –a List with hidden files $ ls -la List with hidden files and details
  • 6. Basic Commands (cont) $ cd /usr/bin Open folder path $ pwd returns full path of the current directory $ which ls $ whereis ls $ locate filename $ find / | something.sh $ echo $ cat filename $ cp $ mv
  • 7. Basic Commands (cont) $ mkdir $ rm $ chgrp $ chown $ chmod $ tar –cvfp filename.tar /folder $ unzip filename $ tar –xvfp filename.tar $ touch
  • 8. Basic Commands (cont)                  Linux TAR Command Create linux tar gz (Gzip) archive tar -czvf myarchive.tgz mydirectory/ -c, –create create a new archive Note that .tgz is the same thing as .tar.gz Create linux simple tar archive (withouth compresion) tar -cvf myarchive.tar mydirectory/ Extracting linux tar archive: Extract linux tar gz (Gzip) archive tar -xzvf mystuff.tgz Extract linux simple tar archive tar -xvf mystuff.tar We use -x to extract the files form the tar archive -x, –extract, –get extract files from an archive Extract linux tar archive to speciefied directory tar -xvzf filename.tar.gz -C /desired/path And now let us shortly explain this command Usage: tar [OPTION]… [FILE]… Let us check the option used in this example -c, –create create a new archive -z, –gzip, –ungzip filter the archive through gzip -v, –verbose verbosely list files processed -f, –file=ARCHIVE use archive file or device ARCHIVE -C directory file
  • 10. File Permission (Cont)  Octal numbers and permissions  You can use octal number to represent mode/permission: r : 4 w : 2 x : 1  0+r+w+x = 0+4+2+1 = 7  Only Read and write permission on a file in octal is 0+r+w+x = 0+4+2+0 = 6  Only read and execute permission on a file in octal is 0+r+w+x = 0+4+0+1 = 5  User  Group  Others = r+w+x = 0+4+2+1 = 7 = r+w+x = 0+4+2+0 = 6 = r+w+x = 0+0+0+1 = 1
  • 12. Creating a crontab file You can create a crontab file by entering the following terminal command: $ crontab –e To List all the cron job: $ crontab -l
  • 14. Crontab examples * * * * * <command> #Runs every minute 30 * * * * <command> #Runs at 30 minutes past the hour 45 6 * * * <command> #Runs at 6:45 am every day 45 18 * * * <command> #Runs at 6:45 pm every day 00 1 * * 0 <command> #Runs at 1:00 am every Sunday 00 1 * * 7 <command> #Runs at 1:00 am every Sunday 00 1 * * Sun <command> #Runs at 1:00 am every Sunday 30 8 1 * * <command> #Runs at 8:30 am on the first day of every month 00 0-23/2 02 07 * <command> #Runs every other hour on the 2nd of July

Hinweis der Redaktion

  1. So, the first one is Social.Social refers to the interaction of people with other people and to their surroundings, irrespective of whether they are aware of it or not, and irrespective of whether the interaction is voluntary or involuntary.Now how these interactions happens.Earlier yellow pages, magazines and newspapers were responsible for these interactions but with the rise of technology and Social Media a whole new era of social interactions came to existence.
  2. Multics – 1964Unics – 1969Minix – 1990Linux – 1991Free - Means Liberty and not related to Price or costOpen – Source code is available and any body can contribute to the development. Organization independent4 Freedoms with FOSSFreedom to run the software anywhereFreedom to study how the programs work. i.e source code will be accessibleFreedom to redistribute copiesFreedom to improve the software
  3. Media that allow users to communicate with one another is Social. Businesses, brands, groups, and individuals can share information freely with their followers using the internet or with their mobile phone.