SlideShare uma empresa Scribd logo
1 de 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

Mais conteúdo relacionado

Mais procurados

Presentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-ITPresentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Md. Abdul Barek
 

Mais procurados (20)

Users and groups in Linux
Users and groups in LinuxUsers and groups in Linux
Users and groups in Linux
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Linux security introduction
Linux security introduction Linux security introduction
Linux security introduction
 
File permissions
File permissionsFile permissions
File permissions
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Linux standard file system
Linux standard file systemLinux standard file system
Linux standard file system
 
Basic commands of linux
Basic commands of linuxBasic commands of linux
Basic commands of linux
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
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
 
Bash Shell Scripting
Bash Shell ScriptingBash Shell Scripting
Bash Shell Scripting
 
Intro to Linux Shell Scripting
Intro to Linux Shell ScriptingIntro to Linux Shell Scripting
Intro to Linux Shell Scripting
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
Introduction To SELinux
Introduction To SELinuxIntroduction To SELinux
Introduction To SELinux
 
Users and groups
Users and groupsUsers and groups
Users and groups
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Presentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-ITPresentation On Group Policy in Windows Server 2012 R2 By Barek-IT
Presentation On Group Policy in Windows Server 2012 R2 By Barek-IT
 
An Introduction to Linux
An Introduction to LinuxAn Introduction to Linux
An Introduction to Linux
 

Destaque

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
 

Destaque (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
 

Semelhante a 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
 

Semelhante a 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
 
Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
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 Basic Commands
Linux Basic CommandsLinux Basic Commands
Linux Basic Commands
 

Mais de Singsys Pte Ltd

Mais de 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
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 

Último (20)

Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
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
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
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 ...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
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
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
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
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 

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

Notas do Editor

  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.