SlideShare a Scribd company logo
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
THANKS!
THE END

More Related Content

PDF
Linux basic
PDF
Linux Getting Started
PDF
Basics of Linux
PPTX
Linux basics part 1
PPT
Linux commands and file structure
ODP
Linux Introduction (Commands)
PPT
Linux Administration
PDF
Lesson 1 Linux System Fundamentals
Linux basic
Linux Getting Started
Basics of Linux
Linux basics part 1
Linux commands and file structure
Linux Introduction (Commands)
Linux Administration
Lesson 1 Linux System Fundamentals

What's hot (20)

PPT
Basic 50 linus command
PPTX
Basics of-linux
PPT
Linux presentation
PPT
Linux Commands
DOCX
Linux basic commands tutorial
ODP
Linux commands
PDF
Linux commands
PDF
17 Linux Basics #burningkeyboards
PPT
Unix/Linux Basic Commands and Shell Script
PPTX
Terminal Commands (Linux - ubuntu) (part-1)
PDF
Basic linux commands
PPTX
Linux Command Suumary
PPT
Linux basic commands
PDF
Quick Guide with Linux Command Line
PDF
Basic Linux commands
PPTX
Unix Linux Commands Presentation 2013
PPTX
Linux basics
PDF
Lesson 3 Working with Files in Linux
DOC
Some basic unix commands
PPTX
Linux commands
Basic 50 linus command
Basics of-linux
Linux presentation
Linux Commands
Linux basic commands tutorial
Linux commands
Linux commands
17 Linux Basics #burningkeyboards
Unix/Linux Basic Commands and Shell Script
Terminal Commands (Linux - ubuntu) (part-1)
Basic linux commands
Linux Command Suumary
Linux basic commands
Quick Guide with Linux Command Line
Basic Linux commands
Unix Linux Commands Presentation 2013
Linux basics
Lesson 3 Working with Files in Linux
Some basic unix commands
Linux commands
Ad

Viewers also liked (20)

PPT
Eiv micro workshop presentation
PDF
Introduction to Ubuntu
PPT
MS Word Intermediate Training
PDF
Basic linux commands
PDF
Bibliometric network analysis: Software tools, techniques, and an analysis o...
PPTX
MS Word 2013 от новичка до профессионала. Занятие 1. Представление MS Word 2013
PPTX
Soalan bab 6
PDF
Ms excel training
PPTX
Lecture 6 microsoft office excel 2007
PPTX
Power System Operation and Control
ODP
Operating Systems
PPT
MS Word Basics Training
PPTX
Tech Trends from CES 2016
PPTX
Ms word 2013 Training
PDF
Trend and Future of Cloud Computing
PPTX
All ms word 2013
PPTX
Comparison of windows linux and mac os
PDF
Global technology 2016 outlook
PPTX
Ms word 2013
PPT
Excel Lesson
Eiv micro workshop presentation
Introduction to Ubuntu
MS Word Intermediate Training
Basic linux commands
Bibliometric network analysis: Software tools, techniques, and an analysis o...
MS Word 2013 от новичка до профессионала. Занятие 1. Представление MS Word 2013
Soalan bab 6
Ms excel training
Lecture 6 microsoft office excel 2007
Power System Operation and Control
Operating Systems
MS Word Basics Training
Tech Trends from CES 2016
Ms word 2013 Training
Trend and Future of Cloud Computing
All ms word 2013
Comparison of windows linux and mac os
Global technology 2016 outlook
Ms word 2013
Excel Lesson
Ad

Similar to Get Started with Linux Management Command line Basic Knowledge (20)

PPTX
linux_admin_course_full_for beginers.pptx
PPTX
Linux Systems Programming: Ubuntu Installation and Configuration
PDF
The Linux Command Cheat Sheet
PPT
Linux training
PPTX
Linux Presentation
PPTX
Linux for Security Professionals (Tips and Tricks) - Init 6 10/2012
PDF
PPTX
Linux basic commands
ODP
Basic orientation to Linux
ODP
Lamp1
ODP
Lamp1
ODP
Lamp
PPT
Linux
PPTX
Unix Shell Script - 2 Days Session.pptx
PPT
PDF
Basics of Linux Commands, Git and Github
PPTX
Linux Shell Basics
PPTX
Linux administration training
linux_admin_course_full_for beginers.pptx
Linux Systems Programming: Ubuntu Installation and Configuration
The Linux Command Cheat Sheet
Linux training
Linux Presentation
Linux for Security Professionals (Tips and Tricks) - Init 6 10/2012
Linux basic commands
Basic orientation to Linux
Lamp1
Lamp1
Lamp
Linux
Unix Shell Script - 2 Days Session.pptx
Basics of Linux Commands, Git and Github
Linux Shell Basics
Linux administration training

Recently uploaded (20)

PPTX
international classification of diseases ICD-10 review PPT.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PPTX
QR Codes Qr codecodecodecodecocodedecodecode
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PDF
The New Creative Director: How AI Tools for Social Media Content Creation Are...
PPTX
innovation process that make everything different.pptx
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PDF
WebRTC in SignalWire - troubleshooting media negotiation
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Sims 4 Historia para lo sims 4 para jugar
PPTX
artificial intelligence overview of it and more
PDF
Triggering QUIC, presented by Geoff Huston at IETF 123
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
DOCX
Unit-3 cyber security network security of internet system
PPTX
Introduction about ICD -10 and ICD11 on 5.8.25.pptx
international classification of diseases ICD-10 review PPT.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
introduction about ICD -10 & ICD-11 ppt.pptx
QR Codes Qr codecodecodecodecocodedecodecode
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Introuction about ICD -10 and ICD-11 PPT.pptx
Introuction about WHO-FIC in ICD-10.pptx
The New Creative Director: How AI Tools for Social Media Content Creation Are...
innovation process that make everything different.pptx
PptxGenJS_Demo_Chart_20250317130215833.pptx
522797556-Unit-2-Temperature-measurement-1-1.pptx
WebRTC in SignalWire - troubleshooting media negotiation
Tenda Login Guide: Access Your Router in 5 Easy Steps
Sims 4 Historia para lo sims 4 para jugar
artificial intelligence overview of it and more
Triggering QUIC, presented by Geoff Huston at IETF 123
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
Decoding a Decade: 10 Years of Applied CTI Discipline
Unit-3 cyber security network security of internet system
Introduction about ICD -10 and ICD11 on 5.8.25.pptx

Get Started with Linux Management Command line Basic Knowledge

  • 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