SlideShare a Scribd company logo
1 of 16
Download to read offline
Linux Getting Started
@angusli
Agenda
   What’s Linux
   Know the environment
   Basic File System operation
   File System structure
   Basic utilities
   Remote access and network operation
   Know the permissions
   Process and job management
   More utilities for daily operation
   Basic system administration
   Commonly used shortcuts
   Next step
What’s Linux
   Linux is an operating system that was initially
    created as a hobby by a young student, Linus
    Torvalds, at the University of Helsinki in Finland.
    Linus had an interest in Minix, a small UNIX system,
    and decided to develop a system that exceeded the
    Minix standards. He began his work in 1991 when
    he released version 0.02 and worked steadily until
    1994 when version 1.0 of the Linux Kernel was
    released. The kernel, at the heart of all Linux
    systems, is developed and released under the GNU
    General Public License and its source code is freely
    available to everyone. ... The current full-featured
    version is 2.6 (released December 2003) and
    development continues.
What’s Linux (cont.)
   Top 10 Distributions
       Ubuntu
       Fedora
       openSUSE
       Debian GNU/Linux
       Mandriva Linux
       Linux Mint
       PCLinuxOS
       Slackware Linux
       Gentoo Linux
       CentOS
       FreeBSD(honourable mention)
     http://distrowatch.com/dwres.php?resource=major
Know the environment
   whoami/id: identify current user
   who/users: see the logged in users
   pwd: print working directory
   passwd: change login password
   history: view the bash command history
   uptime: check the system uptime and avg. load
   uname: view distribution, kernel version
   date: current system date and time
   echo $SHELL: what bash is used
Basic File System operation
   ls: list files; -a, -l, -h, -t, -r
   cd: change directory
   touch: create empty file, or update mtime
   mkdir: make directory; -p
   mv: move things
   cp: copy things; -r
   rm: remove things; -r
   df/du: check disk free space, disk usage; -h
File System structure
Path                     Contents
/bin                     Standard programs
/boot                    Files needed at startup
/dev                     Devices (don't go there)
/etc                     Most configuration
/home                    All home directories (you can only access yours)
/lib; /usr/lib           Libraries shared by programs

/lost+found              Files recovered after filesystem errors (never happens really)

/mnt; /media             Mounted media like cdroms, floppy disks, USB drives
/opt                     Large third party software like Java, Oracle, etc.
/proc                    Information about processes (don't go there)
/root                    root's home directory (you don't have access)

/sbin; /usr/sbin         System administration programs. Some may be useful to you even.

/sys                     Information about devices (don't go there)
/tmp; /var/tmp; /usr/tmp Space for temporary files for everybody
/usr/bin                 Programs (installed by package manager)
/usr/local               Custom installed software (not by package manager)
/usr/src                 Source code
/var                     Runtime data used by services

http://www.odi.ch/prog/shell/
Basic utilities
   cat: output file
   less/more: view content with pager
   |: pipe
   >: file redirection; override the old content
   >>: append to file
   ln: create link; -s
Remote access and network operation

   telnet
   ssh: secure shell
   scp: secure copy
   curl: make cURL call; -I, -i, -d, -X
   wget: web downloader
Know the permissions
   rwx-rwx-rwx: user-group-other (4-2-1)
   chmod: u,g,o,a; change permissions
   chown: change file owner
   sudo: execute command with root privilege
Process and job management
   ps: process snapshot; -ax, -aux
   top: display tasks
   <cmd> &: run the job in background
   jobs: list the jobs running in bg & fg
   bg/fg #<num>: continue job at bg/fg
   kill: kill a process
More utilities for daily operation
   man: show manual of a program
   tail: show end of file; -n, -f/-s
   diff: diff files; -u
   wc: word count; -l
   sort/uniq: sort content, list unique content
   time <cmd>: timing the command execution
   grep <-R/-i> <pattern> <target>: global regular expression print
   tar/gzip/zip: archive and compress content
   find/locate: find file and content; -name/-mtime
Basic system administration
   useradd, userdel, groupadd
   chkconfig
   /etc/rc.*
   mount
   free
   netstat
   vmstat
   watch
Commonly used shortcuts
   cd -; cd ~; cd ..
   Ctrl + l
   Ctrl + c/z/d
   Ctrl + r
   Alt + .
   Ctrl/Alt + b/f, Ctrl + a/e
   Ctrl + d/h
   Ctrl + ku
   Ctrl + /
Next step
   vim
   shell scripts
   sed
   awk
   LPIC
THE END
THANKS!

More Related Content

What's hot

Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command LineAnuchit Chalothorn
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structureSreenatha Reddy K R
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsBITS
 
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
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Wave Digitech
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsBITS
 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumarymentorsnet
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory StructureKevin OBrien
 

What's hot (19)

Linux Commands
Linux CommandsLinux Commands
Linux Commands
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
 
Basic 50 linus command
Basic 50 linus commandBasic 50 linus command
Basic 50 linus command
 
Linux commands and file structure
Linux commands and file structureLinux commands and file structure
Linux commands and file structure
 
The structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformaticsThe structure of Linux - Introduction to Linux for bioinformatics
The structure of Linux - Introduction to Linux for bioinformatics
 
An Introduction To Linux
An Introduction To LinuxAn Introduction To Linux
An Introduction To Linux
 
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
 
Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013Unix Linux Commands Presentation 2013
Unix Linux Commands Presentation 2013
 
Linux
Linux Linux
Linux
 
Managing your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformaticsManaging your data - Introduction to Linux for bioinformatics
Managing your data - Introduction to Linux for bioinformatics
 
Linux basics
Linux basicsLinux basics
Linux basics
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Linux Command Suumary
Linux Command SuumaryLinux Command Suumary
Linux Command Suumary
 
Linux commands
Linux commandsLinux commands
Linux commands
 
Linux commands
Linux commands Linux commands
Linux commands
 
Basic Linux commands
Basic Linux commandsBasic Linux commands
Basic Linux commands
 
Linux Directory Structure
Linux Directory StructureLinux Directory Structure
Linux Directory Structure
 
Linux basic commands
Linux basic commandsLinux basic commands
Linux basic commands
 
BASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUXBASIC COMMANDS OF LINUX
BASIC COMMANDS OF LINUX
 

Similar to Linux Getting Started

Similar to Linux Getting Started (20)

Get Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic KnowledgeGet Started with Linux Management Command line Basic Knowledge
Get Started with Linux Management Command line Basic Knowledge
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
beginner.en.print
beginner.en.printbeginner.en.print
beginner.en.print
 
Lesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File SystemLesson 2 Understanding Linux File System
Lesson 2 Understanding Linux File System
 
Linux Presentation
Linux PresentationLinux Presentation
Linux Presentation
 
Linux basics
Linux basics Linux basics
Linux basics
 
Basic orientation to Linux
Basic orientation to LinuxBasic orientation to Linux
Basic orientation to Linux
 
Linux introduction (eng)
Linux introduction (eng)Linux introduction (eng)
Linux introduction (eng)
 
Linux basics
Linux basics Linux basics
Linux basics
 
Tutorial 2
Tutorial 2Tutorial 2
Tutorial 2
 
Linux
LinuxLinux
Linux
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.
 
Linux filesystemhierarchy
Linux filesystemhierarchyLinux filesystemhierarchy
Linux filesystemhierarchy
 
File system discovery
File system discovery File system discovery
File system discovery
 
Linux training
Linux trainingLinux training
Linux training
 
Linux
LinuxLinux
Linux
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Ch1 linux basics
Ch1 linux basicsCh1 linux basics
Ch1 linux basics
 
Linux administration classes in mumbai
Linux administration classes in mumbaiLinux administration classes in mumbai
Linux administration classes in mumbai
 

Recently uploaded

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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 Processorsdebabhi2
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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 2024The Digital Insurer
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 

Recently uploaded (20)

🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Linux Getting Started

  • 2. Agenda  What’s Linux  Know the environment  Basic File System operation  File System structure  Basic utilities  Remote access and network operation  Know the permissions  Process and job management  More utilities for daily operation  Basic system administration  Commonly used shortcuts  Next step
  • 3. What’s Linux  Linux is an operating system that was initially created as a hobby by a young student, Linus Torvalds, at the University of Helsinki in Finland. Linus had an interest in Minix, a small UNIX system, and decided to develop a system that exceeded the Minix standards. He began his work in 1991 when he released version 0.02 and worked steadily until 1994 when version 1.0 of the Linux Kernel was released. The kernel, at the heart of all Linux systems, is developed and released under the GNU General Public License and its source code is freely available to everyone. ... The current full-featured version is 2.6 (released December 2003) and development continues.
  • 4. What’s Linux (cont.)  Top 10 Distributions  Ubuntu  Fedora  openSUSE  Debian GNU/Linux  Mandriva Linux  Linux Mint  PCLinuxOS  Slackware Linux  Gentoo Linux  CentOS  FreeBSD(honourable mention) http://distrowatch.com/dwres.php?resource=major
  • 5. Know the environment  whoami/id: identify current user  who/users: see the logged in users  pwd: print working directory  passwd: change login password  history: view the bash command history  uptime: check the system uptime and avg. load  uname: view distribution, kernel version  date: current system date and time  echo $SHELL: what bash is used
  • 6. Basic File System operation  ls: list files; -a, -l, -h, -t, -r  cd: change directory  touch: create empty file, or update mtime  mkdir: make directory; -p  mv: move things  cp: copy things; -r  rm: remove things; -r  df/du: check disk free space, disk usage; -h
  • 7. File System structure Path Contents /bin Standard programs /boot Files needed at startup /dev Devices (don't go there) /etc Most configuration /home All home directories (you can only access yours) /lib; /usr/lib Libraries shared by programs /lost+found Files recovered after filesystem errors (never happens really) /mnt; /media Mounted media like cdroms, floppy disks, USB drives /opt Large third party software like Java, Oracle, etc. /proc Information about processes (don't go there) /root root's home directory (you don't have access) /sbin; /usr/sbin System administration programs. Some may be useful to you even. /sys Information about devices (don't go there) /tmp; /var/tmp; /usr/tmp Space for temporary files for everybody /usr/bin Programs (installed by package manager) /usr/local Custom installed software (not by package manager) /usr/src Source code /var Runtime data used by services http://www.odi.ch/prog/shell/
  • 8. Basic utilities  cat: output file  less/more: view content with pager  |: pipe  >: file redirection; override the old content  >>: append to file  ln: create link; -s
  • 9. Remote access and network operation  telnet  ssh: secure shell  scp: secure copy  curl: make cURL call; -I, -i, -d, -X  wget: web downloader
  • 10. Know the permissions  rwx-rwx-rwx: user-group-other (4-2-1)  chmod: u,g,o,a; change permissions  chown: change file owner  sudo: execute command with root privilege
  • 11. Process and job management  ps: process snapshot; -ax, -aux  top: display tasks  <cmd> &: run the job in background  jobs: list the jobs running in bg & fg  bg/fg #<num>: continue job at bg/fg  kill: kill a process
  • 12. More utilities for daily operation  man: show manual of a program  tail: show end of file; -n, -f/-s  diff: diff files; -u  wc: word count; -l  sort/uniq: sort content, list unique content  time <cmd>: timing the command execution  grep <-R/-i> <pattern> <target>: global regular expression print  tar/gzip/zip: archive and compress content  find/locate: find file and content; -name/-mtime
  • 13. Basic system administration  useradd, userdel, groupadd  chkconfig  /etc/rc.*  mount  free  netstat  vmstat  watch
  • 14. Commonly used shortcuts  cd -; cd ~; cd ..  Ctrl + l  Ctrl + c/z/d  Ctrl + r  Alt + .  Ctrl/Alt + b/f, Ctrl + a/e  Ctrl + d/h  Ctrl + ku  Ctrl + /
  • 15. Next step  vim  shell scripts  sed  awk  LPIC