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

Más contenido relacionado

La actualidad más candente

Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Scriptsbmguys
 
Virtual machine and javascript engine
Virtual machine and javascript engineVirtual machine and javascript engine
Virtual machine and javascript engineDuoyi Wu
 
“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...
“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...
“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...Edge AI and Vision Alliance
 
Introduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra SolutionsIntroduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra SolutionsQUONTRASOLUTIONS
 
Linux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingLinux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingStephan Cadene
 
COSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem portingCOSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem portingEric Lin
 
Unix shell scripting basics
Unix shell scripting basicsUnix shell scripting basics
Unix shell scripting basicsManav Prasad
 
Percepio Tracealyzer for FreeRTOS on MiniZED
Percepio Tracealyzer for FreeRTOS on MiniZEDPercepio Tracealyzer for FreeRTOS on MiniZED
Percepio Tracealyzer for FreeRTOS on MiniZEDVincent Claes
 
Introduction Linux Device Drivers
Introduction Linux Device DriversIntroduction Linux Device Drivers
Introduction Linux Device DriversNEEVEE Technologies
 
IBM Domino / IBM Notes Performance Tuning
IBM Domino / IBM Notes Performance Tuning IBM Domino / IBM Notes Performance Tuning
IBM Domino / IBM Notes Performance Tuning Vladislav Tatarincev
 
System Device Tree and Lopper: Concrete Examples - ELC NA 2022
System Device Tree and Lopper: Concrete Examples - ELC NA 2022System Device Tree and Lopper: Concrete Examples - ELC NA 2022
System Device Tree and Lopper: Concrete Examples - ELC NA 2022Stefano Stabellini
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examplesabclearnn
 
Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0Oscar V
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Omar Fathy
 
HTTP - The Other Face Of Domino
HTTP - The Other Face Of DominoHTTP - The Other Face Of Domino
HTTP - The Other Face Of DominoGabriella Davis
 
Linker and loader upload
Linker and loader   uploadLinker and loader   upload
Linker and loader uploadBin Yang
 

La actualidad más candente (20)

Linux device drivers
Linux device driversLinux device drivers
Linux device drivers
 
Unix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell ScriptUnix/Linux Basic Commands and Shell Script
Unix/Linux Basic Commands and Shell Script
 
Virtual machine and javascript engine
Virtual machine and javascript engineVirtual machine and javascript engine
Virtual machine and javascript engine
 
“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...
“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...
“Visual AI at the Edge: From Surveillance Cameras to People Counters,” a Pres...
 
Introduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra SolutionsIntroduction to Linux Kernel by Quontra Solutions
Introduction to Linux Kernel by Quontra Solutions
 
Linux Kernel and Driver Development Training
Linux Kernel and Driver Development TrainingLinux Kernel and Driver Development Training
Linux Kernel and Driver Development Training
 
COSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem portingCOSCUP 2020 RISC-V 32 bit linux highmem porting
COSCUP 2020 RISC-V 32 bit linux highmem porting
 
Unix shell scripting basics
Unix shell scripting basicsUnix shell scripting basics
Unix shell scripting basics
 
Percepio Tracealyzer for FreeRTOS on MiniZED
Percepio Tracealyzer for FreeRTOS on MiniZEDPercepio Tracealyzer for FreeRTOS on MiniZED
Percepio Tracealyzer for FreeRTOS on MiniZED
 
Introduction Linux Device Drivers
Introduction Linux Device DriversIntroduction Linux Device Drivers
Introduction Linux Device Drivers
 
IBM Domino / IBM Notes Performance Tuning
IBM Domino / IBM Notes Performance Tuning IBM Domino / IBM Notes Performance Tuning
IBM Domino / IBM Notes Performance Tuning
 
Linux kernel
Linux kernelLinux kernel
Linux kernel
 
System Device Tree and Lopper: Concrete Examples - ELC NA 2022
System Device Tree and Lopper: Concrete Examples - ELC NA 2022System Device Tree and Lopper: Concrete Examples - ELC NA 2022
System Device Tree and Lopper: Concrete Examples - ELC NA 2022
 
linux comando
linux comandolinux comando
linux comando
 
Linux basic commands with examples
Linux basic commands with examplesLinux basic commands with examples
Linux basic commands with examples
 
Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0Administracion de WebSphere MQ for zOS v7.0
Administracion de WebSphere MQ for zOS v7.0
 
Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1Introduction to Git and GitHub Part 1
Introduction to Git and GitHub Part 1
 
Using strace
Using straceUsing strace
Using strace
 
HTTP - The Other Face Of Domino
HTTP - The Other Face Of DominoHTTP - The Other Face Of Domino
HTTP - The Other Face Of Domino
 
Linker and loader upload
Linker and loader   uploadLinker and loader   upload
Linker and loader upload
 

Destacado

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
 

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

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

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

Último

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 

Último (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
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
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 

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