SlideShare une entreprise Scribd logo
1  sur  19
Linux Commands Revision
   Facebook group: Learn To Be
   Official website: www.L2b-egypt.org

   Prepared By: SHATRIX
   E-Mail: eng.shatrix@gmail.com



Learn To Be                              Embedded Linux Training
2


Linux History
  • Unix (Ken Thompson & Dennis Ritchie) AT&T company
  • FSF & GNU (Gnu is Not Unix) & GPL (Richard Stallman)
    1984
      ▫ Hurd Kernel
  • Minix (Andrew Tanenbaum)
  • Linux (Linus Torvalds) 1991
  • GNU/Linux (complete, open source, UNIX-like
    operating system)
  • Open source: software and source code available to all
      ▫ The freedom to distribute software and source code
      ▫ The ability to modify and create derived works
      ▫ Integrity of author's code

Learn To Be                                       Embedded Linux Training
3


Linux Structure
  •   BootLoader (grub, uboot, vivi)
  •   Kernel (www.kernel.org)
  •   Filesystem (FHS)
  •   shell (bash & ash & sh)
  •   init process
  •   Scripts & Environment variables
  •   Applications
  •   GUIs & TUI




Learn To Be                             Embedded Linux Training
4


Linux principles
  • Everything is a file (including hardware)
  • Small, single-purpose programs
  • Ability to chain programs together to perform complex
    tasks
  • Avoid user interfaces
  • Configuration data stored in text




Learn To Be                                  Embedded Linux Training
5


Linux View
  • Gnome & Kde (X Window system)
  • root & users
  • Common applications
      ▫ gedit, open office, totem, nautilus
  •   Internet
  •   Terminal
  •   Virtual console
  •   file types
      ▫ normal (text, audio, document)
      ▫ directory
      ▫ special (node, pipe, link (symbolic & hard))
Learn To Be                                            Embedded Linux Training
6


Filesystem Hierarchy Standard
  •   /             root directory
  •   /bin          commands & executable files
  •   /sbin          system commands & executable files
  •   /boot          kernel & bootloader
  •   /dev           hardware device files (nodes)
  •   /etc          configuration files and startup scripts
  •   /home         users' home directories
  •   /root         root home directory
  •   /lib          shared library files
  •   /media        mount points for storage media
  •   /opt          third parity applications
  •   /proc         virtual process files
  •   /usr          other users applications & libraries
  •   /var          files that change a lot
Learn To Be                                 Embedded Linux Training
7


Commands & help
  •   command [option(s)] [parameter(s)]
  •   man
  •   info
  •   --help
  •   sudo




Learn To Be                                Embedded Linux Training
8


Common commands
  •   cd               change directory
  •   pwd              print current working directory
  •   ls               list files in current directory
  •   cp               copy
  •   mv               move & rename
  •   touch            create a new file
  •   mkdir            create a directory
  •   rm               remove files
  •   file             file type
  •   cat              print file contents
  •   less             view file contents in pages
  •   passwd           change user's password
  •   Absolute and Relative Pathnames
Learn To Be                                        Embedded Linux Training
9


Text tools
  • nano
  • vim
      ▫ modes
      ▫ keyboard shortcuts
  • gedit




Learn To Be                  Embedded Linux Training
10


Permissions
  • ls -l
  - | --- | --- | ---
  - | rwx | rwx | rwx
  t | own | grp | other
  • chmod
      ▫ letter mode
      ▫ numeric mode
  • Users & Groups
      ▫ chown
      ▫ chgrp
Learn To Be               Embedded Linux Training
11


Programs Packages (debian)
  • apt-get
      ▫ install update remove
  • dpkg
      ▫ Binary packages
  • Source packages
      ▫ ./configure [options]
      ▫ make
      ▫ make install




Learn To Be                     Embedded Linux Training
12


man
  • man sections         1      5    8
  • Display manual page descriptions
      ▫ man      -f           command
      ▫ whatis        what?
  • Search the manual page names and descriptions
      ▫ man     -k          pattern
      ▫ apropos       pattern




Learn To Be                                 Embedded Linux Training
13


System information commands
  •   whoami                 print effective user
  •   hostname               show or set the system's host name
  •   date                   print or set the system date and time
  •   cal                    displays a calendar and the date of Easter
      ▫ cal [[month] year]
  • uptime                   Tell how long the system has been running
  • w                        Show who is logged on and what they are
    doing
  • finger                   user information lookup program
      ▫ finger user-name
  • uname                    print system information
      ▫ uname -a
  • free                     Display amount of free and used memory
  • df                       report file system disk space usage
  • du                       estimate file space usage
      ▫ du -sh file-or-folder-name
Learn To Be                                                 Embedded Linux Training
14


Pipe & Redirection
  • cat file-name | less
  • Standard output
      ▫ command > file
  • Standard error
      ▫ command 2> file
  • The Black hole
      ▫ /dev/null




Learn To Be                Embedded Linux Training
15


File Search tools
  • whereis            locate the location for a command
      ▫ whereis        command
      ▫ whereis        -b           command
  • locate             find files by name
      ▫ locate   file-name
      ▫ updatedb             update a database for mlocate
  • find               search for files in a directory hierarchy
      ▫ find      path-to-search-in -name search-word




Learn To Be                                        Embedded Linux Training
16


Text files search tools
  • grep               print lines matching a pattern
      ▫ grep search-pattern file-name
      ▫ grep -v
      ▫ cat file-name | grep pattern
  • cut                remove sections from each line of files
      ▫ cut -d”delimiter” -f”field” file-name
      ▫ cut -d: -f1 /etc/passwd
  • Print the shell for a user
      ▫ grep root /etc/passwd | cut -d: -f7



Learn To Be                                      Embedded Linux Training
17


Process Management
  • ps          report a snapshot of the current processes
      ▫ ps      axu
      ▫ ps      axo
  • top         display Linux tasks
  • pidof       find the process ID of a running program
  • kill        send a signal to a process
      ▫ kill pid
      ▫ kill -s signal-number pid
  • killall           kill processes by name
      ▫ killall process-name


Learn To Be                                     Embedded Linux Training
18


Archiving
  • tar         The GNU version of the tar archiving utility
      ▫   tar   cf     myfile.tar    myfolder
      ▫   tar   xvf    myfile.tar
      ▫   tar   xvf    myfile.tar.bz2
      ▫   tar   xvfz   myfile.tar.gz




Learn To Be                                      Embedded Linux Training
Thank You
   Facebook group: Learn To Be
   Official website: www.L2b-egypt.org

   Prepared By: SHATRIX
   E-Mail: eng.shatrix@gmail.com



Learn To Be                              Embedded Linux Training

Contenu connexe

Tendances

Linux PCI device driver
Linux PCI device driverLinux PCI device driver
Linux PCI device driver艾鍗科技
 
Part 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingPart 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingTushar B Kute
 
Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)Macpaul Lin
 
Understanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panicUnderstanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panicJoseph Lu
 
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Jian-Hong Pan
 
Advanced Debugging with GDB
Advanced Debugging with GDBAdvanced Debugging with GDB
Advanced Debugging with GDBDavid Khosid
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBshimosawa
 
Linux Kernel Image
Linux Kernel ImageLinux Kernel Image
Linux Kernel Image艾鍗科技
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequenceHoucheng Lin
 
Customizing AOSP For Different Embedded Devices And Integration at Applicatio...
Customizing AOSP For Different Embedded Devices And Integration at Applicatio...Customizing AOSP For Different Embedded Devices And Integration at Applicatio...
Customizing AOSP For Different Embedded Devices And Integration at Applicatio...ijafrc
 

Tendances (20)

Modern C++
Modern C++Modern C++
Modern C++
 
Linux Device Tree
Linux Device TreeLinux Device Tree
Linux Device Tree
 
BusyBox for Embedded Linux
BusyBox for Embedded LinuxBusyBox for Embedded Linux
BusyBox for Embedded Linux
 
Linux PCI device driver
Linux PCI device driverLinux PCI device driver
Linux PCI device driver
 
Part 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module ProgrammingPart 02 Linux Kernel Module Programming
Part 02 Linux Kernel Module Programming
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux Internals - Part I
Linux Internals - Part ILinux Internals - Part I
Linux Internals - Part I
 
Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)Bootstrap process of u boot (NDS32 RISC CPU)
Bootstrap process of u boot (NDS32 RISC CPU)
 
Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)Embedded Android : System Development - Part II (Linux device drivers)
Embedded Android : System Development - Part II (Linux device drivers)
 
Linux Kernel Overview
Linux Kernel OverviewLinux Kernel Overview
Linux Kernel Overview
 
USB Drivers
USB DriversUSB Drivers
USB Drivers
 
Understanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panicUnderstanding a kernel oops and a kernel panic
Understanding a kernel oops and a kernel panic
 
Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021Let's trace Linux Lernel with KGDB @ COSCUP 2021
Let's trace Linux Lernel with KGDB @ COSCUP 2021
 
Advanced Debugging with GDB
Advanced Debugging with GDBAdvanced Debugging with GDB
Advanced Debugging with GDB
 
Linux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKBLinux Kernel Booting Process (1) - For NLKB
Linux Kernel Booting Process (1) - For NLKB
 
Linux Kernel Image
Linux Kernel ImageLinux Kernel Image
Linux Kernel Image
 
Uboot startup sequence
Uboot startup sequenceUboot startup sequence
Uboot startup sequence
 
Customizing AOSP For Different Embedded Devices And Integration at Applicatio...
Customizing AOSP For Different Embedded Devices And Integration at Applicatio...Customizing AOSP For Different Embedded Devices And Integration at Applicatio...
Customizing AOSP For Different Embedded Devices And Integration at Applicatio...
 
Linux Internals - Part II
Linux Internals - Part IILinux Internals - Part II
Linux Internals - Part II
 
Linux device drivers
Linux device driversLinux device drivers
Linux device drivers
 

En vedette

Building Embedded Linux Systems Introduction
Building Embedded Linux Systems IntroductionBuilding Embedded Linux Systems Introduction
Building Embedded Linux Systems IntroductionSherif Mousa
 
Building Embedded Linux
Building Embedded LinuxBuilding Embedded Linux
Building Embedded LinuxSherif Mousa
 
Operating systems Basics
Operating systems BasicsOperating systems Basics
Operating systems BasicsSherif Mousa
 
Yocto - Embedded Linux Distribution Maker
Yocto - Embedded Linux Distribution MakerYocto - Embedded Linux Distribution Maker
Yocto - Embedded Linux Distribution MakerSherif Mousa
 
linux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrixlinux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrixSherif Mousa
 
Embedded Linux from Scratch to Yocto
Embedded Linux from Scratch to YoctoEmbedded Linux from Scratch to Yocto
Embedded Linux from Scratch to YoctoSherif Mousa
 
Chapter 24- Seeds & Flowers
Chapter 24- Seeds & FlowersChapter 24- Seeds & Flowers
Chapter 24- Seeds & FlowersMary Beth Smith
 
Chapter 2 - Matter and Change
Chapter 2 - Matter and ChangeChapter 2 - Matter and Change
Chapter 2 - Matter and ChangeKendon Smith
 
Web Application Lunacy
Web Application LunacyWeb Application Lunacy
Web Application Lunacyanandvaidya
 
Chapter One- Intro to Biology
Chapter One- Intro to BiologyChapter One- Intro to Biology
Chapter One- Intro to BiologyMary Beth Smith
 
Chapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & MeasurementChapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & MeasurementMary Beth Smith
 
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...hjk888
 
Chapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution StoichChapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution StoichMary Beth Smith
 
UNIX(Essential needs of administration)
UNIX(Essential needs of administration)UNIX(Essential needs of administration)
UNIX(Essential needs of administration)Papu Kumar
 
Chapter 5 - Electron Configurations
Chapter 5 - Electron ConfigurationsChapter 5 - Electron Configurations
Chapter 5 - Electron ConfigurationsKendon Smith
 

En vedette (20)

003 scripting
003 scripting003 scripting
003 scripting
 
Building Embedded Linux Systems Introduction
Building Embedded Linux Systems IntroductionBuilding Embedded Linux Systems Introduction
Building Embedded Linux Systems Introduction
 
Building Embedded Linux
Building Embedded LinuxBuilding Embedded Linux
Building Embedded Linux
 
Operating systems Basics
Operating systems BasicsOperating systems Basics
Operating systems Basics
 
Yocto - Embedded Linux Distribution Maker
Yocto - Embedded Linux Distribution MakerYocto - Embedded Linux Distribution Maker
Yocto - Embedded Linux Distribution Maker
 
005 skyeye
005 skyeye005 skyeye
005 skyeye
 
linux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrixlinux minimal os tutorial - by shatrix
linux minimal os tutorial - by shatrix
 
Embedded Linux from Scratch to Yocto
Embedded Linux from Scratch to YoctoEmbedded Linux from Scratch to Yocto
Embedded Linux from Scratch to Yocto
 
كيف تفشل
كيف تفشلكيف تفشل
كيف تفشل
 
Chapter 24- Seeds & Flowers
Chapter 24- Seeds & FlowersChapter 24- Seeds & Flowers
Chapter 24- Seeds & Flowers
 
Chapter 2 - Matter and Change
Chapter 2 - Matter and ChangeChapter 2 - Matter and Change
Chapter 2 - Matter and Change
 
Web Application Lunacy
Web Application LunacyWeb Application Lunacy
Web Application Lunacy
 
Chapter One- Intro to Biology
Chapter One- Intro to BiologyChapter One- Intro to Biology
Chapter One- Intro to Biology
 
Chapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & MeasurementChapter 1 Lecture- Matter & Measurement
Chapter 1 Lecture- Matter & Measurement
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...2010 05 02 10 Dr Daniel C Tsui  Physics Nobel Prize King Carl Xvi Gustaf Of S...
2010 05 02 10 Dr Daniel C Tsui Physics Nobel Prize King Carl Xvi Gustaf Of S...
 
Operating system ppt
Operating system pptOperating system ppt
Operating system ppt
 
Chapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution StoichChapter 4 Lecture- Solution Stoich
Chapter 4 Lecture- Solution Stoich
 
UNIX(Essential needs of administration)
UNIX(Essential needs of administration)UNIX(Essential needs of administration)
UNIX(Essential needs of administration)
 
Chapter 5 - Electron Configurations
Chapter 5 - Electron ConfigurationsChapter 5 - Electron Configurations
Chapter 5 - Electron Configurations
 

Similaire à Linux Commands Revision Guide

The Ultimate IBM and Lotus on Linux Workshop for Windows Admins
The Ultimate IBM and Lotus on Linux Workshop for Windows AdminsThe Ultimate IBM and Lotus on Linux Workshop for Windows Admins
The Ultimate IBM and Lotus on Linux Workshop for Windows AdminsBill Malchisky Jr.
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-serviceRohit Sansiya
 
Presentation for RHCE in linux
Presentation  for  RHCE in linux Presentation  for  RHCE in linux
Presentation for RHCE in linux Kuldeep Tiwari
 
Comandos linux bash, f2 linux pesquisa, http://f2linux.wordpress.com
Comandos linux bash,  f2 linux pesquisa, http://f2linux.wordpress.comComandos linux bash,  f2 linux pesquisa, http://f2linux.wordpress.com
Comandos linux bash, f2 linux pesquisa, http://f2linux.wordpress.comWlademir RS
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Chander Pandey
 
Hpux graduate enginnering trainning
Hpux graduate enginnering trainningHpux graduate enginnering trainning
Hpux graduate enginnering trainningRadhe Garg
 
Linux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsLinux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsQUONTRASOLUTIONS
 
Linux system administration
Linux system administrationLinux system administration
Linux system administrationorionsconsulting
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_bMohammad Reza Beygi
 
00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdf00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdfDiana Atef
 
05. Ubuntu Terminal Commands.pptx
05. Ubuntu Terminal Commands.pptx05. Ubuntu Terminal Commands.pptx
05. Ubuntu Terminal Commands.pptxDIVKAGAMESTERBAIK
 
Ericas-Linux-Plus-Study-Guide
Ericas-Linux-Plus-Study-GuideEricas-Linux-Plus-Study-Guide
Ericas-Linux-Plus-Study-GuideErica StJohn
 
File system discovery
File system discovery File system discovery
File system discovery DevMix
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxRajesh Kumar
 

Similaire à Linux Commands Revision Guide (20)

The Ultimate IBM and Lotus on Linux Workshop for Windows Admins
The Ultimate IBM and Lotus on Linux Workshop for Windows AdminsThe Ultimate IBM and Lotus on Linux Workshop for Windows Admins
The Ultimate IBM and Lotus on Linux Workshop for Windows Admins
 
Linux: Everyting-as-a-service
Linux: Everyting-as-a-serviceLinux: Everyting-as-a-service
Linux: Everyting-as-a-service
 
Presentation for RHCE in linux
Presentation  for  RHCE in linux Presentation  for  RHCE in linux
Presentation for RHCE in linux
 
redhat_by_Cbitss.ppt
redhat_by_Cbitss.pptredhat_by_Cbitss.ppt
redhat_by_Cbitss.ppt
 
3. introduction of centos
3. introduction of centos3. introduction of centos
3. introduction of centos
 
Comandos linux bash, f2 linux pesquisa, http://f2linux.wordpress.com
Comandos linux bash,  f2 linux pesquisa, http://f2linux.wordpress.comComandos linux bash,  f2 linux pesquisa, http://f2linux.wordpress.com
Comandos linux bash, f2 linux pesquisa, http://f2linux.wordpress.com
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
Linux CLI
Linux CLILinux CLI
Linux CLI
 
Hpux graduate enginnering trainning
Hpux graduate enginnering trainningHpux graduate enginnering trainning
Hpux graduate enginnering trainning
 
Linux operating system by Quontra Solutions
Linux operating system by Quontra SolutionsLinux operating system by Quontra Solutions
Linux operating system by Quontra Solutions
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Linux: Basics OF Linux
Linux: Basics OF LinuxLinux: Basics OF Linux
Linux: Basics OF Linux
 
Linux system administration
Linux system administrationLinux system administration
Linux system administration
 
Unix _linux_fundamentals_for_hpc-_b
Unix  _linux_fundamentals_for_hpc-_bUnix  _linux_fundamentals_for_hpc-_b
Unix _linux_fundamentals_for_hpc-_b
 
00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdf00000001_Embedded_Linux_RevisionFile.pdf
00000001_Embedded_Linux_RevisionFile.pdf
 
05. Ubuntu Terminal Commands.pptx
05. Ubuntu Terminal Commands.pptx05. Ubuntu Terminal Commands.pptx
05. Ubuntu Terminal Commands.pptx
 
Ericas-Linux-Plus-Study-Guide
Ericas-Linux-Plus-Study-GuideEricas-Linux-Plus-Study-Guide
Ericas-Linux-Plus-Study-Guide
 
File system discovery
File system discovery File system discovery
File system discovery
 
Unix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptxUnix Shell Script - 2 Days Session.pptx
Unix Shell Script - 2 Days Session.pptx
 
CSA-lecture 6.pptx
CSA-lecture 6.pptxCSA-lecture 6.pptx
CSA-lecture 6.pptx
 

Dernier

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 

Dernier (20)

Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 

Linux Commands Revision Guide

  • 1. Linux Commands Revision Facebook group: Learn To Be Official website: www.L2b-egypt.org Prepared By: SHATRIX E-Mail: eng.shatrix@gmail.com Learn To Be Embedded Linux Training
  • 2. 2 Linux History • Unix (Ken Thompson & Dennis Ritchie) AT&T company • FSF & GNU (Gnu is Not Unix) & GPL (Richard Stallman) 1984 ▫ Hurd Kernel • Minix (Andrew Tanenbaum) • Linux (Linus Torvalds) 1991 • GNU/Linux (complete, open source, UNIX-like operating system) • Open source: software and source code available to all ▫ The freedom to distribute software and source code ▫ The ability to modify and create derived works ▫ Integrity of author's code Learn To Be Embedded Linux Training
  • 3. 3 Linux Structure • BootLoader (grub, uboot, vivi) • Kernel (www.kernel.org) • Filesystem (FHS) • shell (bash & ash & sh) • init process • Scripts & Environment variables • Applications • GUIs & TUI Learn To Be Embedded Linux Training
  • 4. 4 Linux principles • Everything is a file (including hardware) • Small, single-purpose programs • Ability to chain programs together to perform complex tasks • Avoid user interfaces • Configuration data stored in text Learn To Be Embedded Linux Training
  • 5. 5 Linux View • Gnome & Kde (X Window system) • root & users • Common applications ▫ gedit, open office, totem, nautilus • Internet • Terminal • Virtual console • file types ▫ normal (text, audio, document) ▫ directory ▫ special (node, pipe, link (symbolic & hard)) Learn To Be Embedded Linux Training
  • 6. 6 Filesystem Hierarchy Standard • / root directory • /bin commands & executable files • /sbin system commands & executable files • /boot kernel & bootloader • /dev hardware device files (nodes) • /etc configuration files and startup scripts • /home users' home directories • /root root home directory • /lib shared library files • /media mount points for storage media • /opt third parity applications • /proc virtual process files • /usr other users applications & libraries • /var files that change a lot Learn To Be Embedded Linux Training
  • 7. 7 Commands & help • command [option(s)] [parameter(s)] • man • info • --help • sudo Learn To Be Embedded Linux Training
  • 8. 8 Common commands • cd change directory • pwd print current working directory • ls list files in current directory • cp copy • mv move & rename • touch create a new file • mkdir create a directory • rm remove files • file file type • cat print file contents • less view file contents in pages • passwd change user's password • Absolute and Relative Pathnames Learn To Be Embedded Linux Training
  • 9. 9 Text tools • nano • vim ▫ modes ▫ keyboard shortcuts • gedit Learn To Be Embedded Linux Training
  • 10. 10 Permissions • ls -l - | --- | --- | --- - | rwx | rwx | rwx t | own | grp | other • chmod ▫ letter mode ▫ numeric mode • Users & Groups ▫ chown ▫ chgrp Learn To Be Embedded Linux Training
  • 11. 11 Programs Packages (debian) • apt-get ▫ install update remove • dpkg ▫ Binary packages • Source packages ▫ ./configure [options] ▫ make ▫ make install Learn To Be Embedded Linux Training
  • 12. 12 man • man sections 1 5 8 • Display manual page descriptions ▫ man -f command ▫ whatis what? • Search the manual page names and descriptions ▫ man -k pattern ▫ apropos pattern Learn To Be Embedded Linux Training
  • 13. 13 System information commands • whoami print effective user • hostname show or set the system's host name • date print or set the system date and time • cal displays a calendar and the date of Easter ▫ cal [[month] year] • uptime Tell how long the system has been running • w Show who is logged on and what they are doing • finger user information lookup program ▫ finger user-name • uname print system information ▫ uname -a • free Display amount of free and used memory • df report file system disk space usage • du estimate file space usage ▫ du -sh file-or-folder-name Learn To Be Embedded Linux Training
  • 14. 14 Pipe & Redirection • cat file-name | less • Standard output ▫ command > file • Standard error ▫ command 2> file • The Black hole ▫ /dev/null Learn To Be Embedded Linux Training
  • 15. 15 File Search tools • whereis locate the location for a command ▫ whereis command ▫ whereis -b command • locate find files by name ▫ locate file-name ▫ updatedb update a database for mlocate • find search for files in a directory hierarchy ▫ find path-to-search-in -name search-word Learn To Be Embedded Linux Training
  • 16. 16 Text files search tools • grep print lines matching a pattern ▫ grep search-pattern file-name ▫ grep -v ▫ cat file-name | grep pattern • cut remove sections from each line of files ▫ cut -d”delimiter” -f”field” file-name ▫ cut -d: -f1 /etc/passwd • Print the shell for a user ▫ grep root /etc/passwd | cut -d: -f7 Learn To Be Embedded Linux Training
  • 17. 17 Process Management • ps report a snapshot of the current processes ▫ ps axu ▫ ps axo • top display Linux tasks • pidof find the process ID of a running program • kill send a signal to a process ▫ kill pid ▫ kill -s signal-number pid • killall kill processes by name ▫ killall process-name Learn To Be Embedded Linux Training
  • 18. 18 Archiving • tar The GNU version of the tar archiving utility ▫ tar cf myfile.tar myfolder ▫ tar xvf myfile.tar ▫ tar xvf myfile.tar.bz2 ▫ tar xvfz myfile.tar.gz Learn To Be Embedded Linux Training
  • 19. Thank You Facebook group: Learn To Be Official website: www.L2b-egypt.org Prepared By: SHATRIX E-Mail: eng.shatrix@gmail.com Learn To Be Embedded Linux Training