SlideShare a Scribd company logo
UNIX/LINUX BASICS FOR QA
Alex Polovinko
2/7/2015
Overview and objectives
• Familiarizing yourself with Unix/Linux console
• Understanding of command structure
• Typical QA tasks and troubleshooting skills
• Most commonly used commands
Agenda:
# What is Unix/Linux (5min)
# Login to system (10 min)
# Console look and basic system commands (10 min)
# Command structure (5 min)
# Networking and connectivity (10 min)
# Working with files (10 min)
# Working with logs and search (10 min)
# Shell scripting (5 min)
# Services and applications (10 min)
# Daemons and cron processes (5 min)
# Installation, archiving (10 min)
#Q&A (10 min)
+ Demo and hands on exercise ~ 30% time allocation
Why *nix
- First OS with natural multiusers support
- Open source/ community support
- Easy for administrating and tuning
- Less resources consumption
- Good server choice
Logging to
system:
Secure shell (ssh): putty => Win and
ssh client (Unix/IOS)
http://www.chiark.greenend.org.uk/~sgtatham/putty/downl
oad.html
Authentication: user/password and
public/private key
Console and basic
commands
#directory/folders: concept of root/ubuntu privileged user
#pwd
#whoami, who, users, w, finger <user>
#concept of home folder
#console (tab, select, insert, arrows)
#history
#processes (ps [–ef]), top, uptime, kill, kill -9
#date
#hostname, uname [–mrs],[-a], free [-m], lscpu, cat
/proc/meminfo| /proc/cpuinfo, mount
#bash/kash
#spacing and disk usage (df –k, su –dk)
#reboot and shutdown
#system settings (ex: /etc/hosts)
• Arguments1
• Pipes2
• Output and input3
• Man and help4
Command format
Networking and connectivity
• Ping/tracert
• Telnet [port], localhost, telnet 0
• Ssh and ssh tunnel
• Curl [-k] [-x]
• Netstat
• Wget
• Ipconfig
FILES AND FOLDERS
- CD
- MKDIR/RMDIR
- LS [-LRT]
- CP/SCP/WINSCP
- MV/RM [-RF]
- WILD CARD (*)
- TOUCH
- DIFF
- CAT
- FILE PERMISSIONS AND USER GROUPS:
SUDO AND ROOT USER
- CHOWN AND CHMOD
- DOT (./) AS CURRENT FOLDER
- SYMBOLIC (SOFT) LINK: LN -S
EMBEDDED VI EDITOR
- VI/VIM/NANO
- READ/INSERT MODES
- SEARCH
- LINE #
- EDIT AND SAVE
- EXIT
Working with server
logs and search
- tomcat/apache log level
- rsyslog/syslog
- tail [-f]
- more/less/head
- find/locate
- grep/egrep (regex), zgrep
- grep [-i] [-v]
- concept of Recursion
- nullify log: cat /dev/null >
log.txt
Exercise
1. Find any uniq value in all
files in current folder
2. The same on the whole
server
Shell scripts
How to run
Execution permissions
What is inside
Example
Unix services and applications
sendmail
rsyslog
iptables (firewall)
mysql
webservers start/stop
Daemons and cron processes
• What is daemon
• Cron functionality
• Cron format:
10 8 1 * *
Misc
• Archive
– untar: tar -zxvf myfile.tar.gz
– tar -czf workspace.tar.gz *
Install:
yum/apt-get
rpm packets
Resources
• Unix commands
<http://www.cheat-sheets.org/saved-
copy/fwunixref.pdf>
• Additional reading material text here
< http://www.cyberciti.biz/tips/linux-unix-
commands-cheat-sheets.html >
• This slide deck and related resources:
<Facebook group>
QUESTIONS?

More Related Content

RTF
Useful linux-commands
ODP
PPTX
UNIX/Linux training
ODP
Libssh2 at FSCONS 2009
PPTX
Basics of-linux
DOCX
PDF
FLOSS UK DEVOPS Spring 2015 Enhancing ssh config
PDF
17 Linux Basics #burningkeyboards
Useful linux-commands
UNIX/Linux training
Libssh2 at FSCONS 2009
Basics of-linux
FLOSS UK DEVOPS Spring 2015 Enhancing ssh config
17 Linux Basics #burningkeyboards

What's hot (20)

ODP
Linux Knowledge Transfer
PPT
Operating Systems 1
PPT
Linux Training Workshop
PPT
Operating Systems 2
PPT
6. centos networking
PDF
Linux system administration
PPT
PPT
Linux-training-for-beginners-in-mumbai
PDF
Linux Network commands
PDF
OpenSSH tricks
PDF
Linux Getting Started
PPTX
Terminal Commands (Linux - ubuntu) (part-1)
PPT
3. introduction of centos
PPT
4. Centos Administration
PDF
Linux basics and commands - from lynxbee.com
PDF
Red Hat Linux cheat sheet
ODP
Introduction to Diskless Remote Boot in Linux
PDF
Basic linux commands for bioinformatics
PDF
PDF
Module 02 Using Linux Command Shell
Linux Knowledge Transfer
Operating Systems 1
Linux Training Workshop
Operating Systems 2
6. centos networking
Linux system administration
Linux-training-for-beginners-in-mumbai
Linux Network commands
OpenSSH tricks
Linux Getting Started
Terminal Commands (Linux - ubuntu) (part-1)
3. introduction of centos
4. Centos Administration
Linux basics and commands - from lynxbee.com
Red Hat Linux cheat sheet
Introduction to Diskless Remote Boot in Linux
Basic linux commands for bioinformatics
Module 02 Using Linux Command Shell
Ad

Viewers also liked (20)

PPTX
Basics of unix
PDF
2 Unix basics. Part 2
PPTX
Basic unix commands
PPT
Basics of unix
PPTX
Basics of Unix Adminisration
PPTX
An overview of embedded systems in automobiles(With instructional videos)
PPT
Embeded system by Mitesh Kumar
PPTX
Embedded systems in automobiles
PPT
Linux commands and file structure
PPTX
Unix ppt
PPT
Embedded systems, 8051 microcontroller
PDF
Embedded System in Automobiles
PPT
Shell Scripting in Linux
PPTX
Unix OS & Commands
PDF
Unix - An Introduction
PPT
Operating system (remuel)
PPT
Basic Unix
PPT
Basic command ppt
PPT
Linux Administration
PPT
Unix/Linux Basic Commands and Shell Script
Basics of unix
2 Unix basics. Part 2
Basic unix commands
Basics of unix
Basics of Unix Adminisration
An overview of embedded systems in automobiles(With instructional videos)
Embeded system by Mitesh Kumar
Embedded systems in automobiles
Linux commands and file structure
Unix ppt
Embedded systems, 8051 microcontroller
Embedded System in Automobiles
Shell Scripting in Linux
Unix OS & Commands
Unix - An Introduction
Operating system (remuel)
Basic Unix
Basic command ppt
Linux Administration
Unix/Linux Basic Commands and Shell Script
Ad

Similar to Unix_basics (20)

PPTX
Unix Shell Script - 2 Days Session.pptx
PDF
Get Started with Linux Management Command line Basic Knowledge
PPTX
KMSUnix and Linux.pptx
PPTX
Unix_Introduction_BCA.pptx the very basi
PPT
unixkkkkmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmkkk.ppt
PPTX
UNIX.pptx
PPTX
Linux for Security Professionals (Tips and Tricks) - Init 6 10/2012
PPT
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
PPT
linux-lecture1.ppt
PPTX
Network and System Administration Power Point
PDF
Basics of Linux Commands, Git and Github
PPTX
Introduction khgjkhygkjiyhgikjyhgikygkii
PPTX
Introduction to-linux
PPTX
Introduction-to-Linux.pptx
PPTX
Introduction-to-Linux.pptx
PPTX
Linux powerpoint
PPTX
Linux Shell Basics
PDF
Unix _linux_fundamentals_for_hpc-_b
PPT
Linux basics by Raj Miraje
PPTX
Introduction to-linux
Unix Shell Script - 2 Days Session.pptx
Get Started with Linux Management Command line Basic Knowledge
KMSUnix and Linux.pptx
Unix_Introduction_BCA.pptx the very basi
unixkkkkmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmkkk.ppt
UNIX.pptx
Linux for Security Professionals (Tips and Tricks) - Init 6 10/2012
HISTORY, TYPES OF EMBEDDED LINUX, COMMANDS,
linux-lecture1.ppt
Network and System Administration Power Point
Basics of Linux Commands, Git and Github
Introduction khgjkhygkjiyhgikjyhgikygkii
Introduction to-linux
Introduction-to-Linux.pptx
Introduction-to-Linux.pptx
Linux powerpoint
Linux Shell Basics
Unix _linux_fundamentals_for_hpc-_b
Linux basics by Raj Miraje
Introduction to-linux

Unix_basics

  • 1. UNIX/LINUX BASICS FOR QA Alex Polovinko 2/7/2015
  • 2. Overview and objectives • Familiarizing yourself with Unix/Linux console • Understanding of command structure • Typical QA tasks and troubleshooting skills • Most commonly used commands
  • 3. Agenda: # What is Unix/Linux (5min) # Login to system (10 min) # Console look and basic system commands (10 min) # Command structure (5 min) # Networking and connectivity (10 min) # Working with files (10 min) # Working with logs and search (10 min) # Shell scripting (5 min) # Services and applications (10 min) # Daemons and cron processes (5 min) # Installation, archiving (10 min) #Q&A (10 min) + Demo and hands on exercise ~ 30% time allocation
  • 4. Why *nix - First OS with natural multiusers support - Open source/ community support - Easy for administrating and tuning - Less resources consumption - Good server choice
  • 5. Logging to system: Secure shell (ssh): putty => Win and ssh client (Unix/IOS) http://www.chiark.greenend.org.uk/~sgtatham/putty/downl oad.html Authentication: user/password and public/private key
  • 6. Console and basic commands #directory/folders: concept of root/ubuntu privileged user #pwd #whoami, who, users, w, finger <user> #concept of home folder #console (tab, select, insert, arrows) #history #processes (ps [–ef]), top, uptime, kill, kill -9 #date #hostname, uname [–mrs],[-a], free [-m], lscpu, cat /proc/meminfo| /proc/cpuinfo, mount #bash/kash #spacing and disk usage (df –k, su –dk) #reboot and shutdown #system settings (ex: /etc/hosts)
  • 7. • Arguments1 • Pipes2 • Output and input3 • Man and help4 Command format
  • 8. Networking and connectivity • Ping/tracert • Telnet [port], localhost, telnet 0 • Ssh and ssh tunnel • Curl [-k] [-x] • Netstat • Wget • Ipconfig
  • 9. FILES AND FOLDERS - CD - MKDIR/RMDIR - LS [-LRT] - CP/SCP/WINSCP - MV/RM [-RF] - WILD CARD (*) - TOUCH - DIFF - CAT - FILE PERMISSIONS AND USER GROUPS: SUDO AND ROOT USER - CHOWN AND CHMOD - DOT (./) AS CURRENT FOLDER - SYMBOLIC (SOFT) LINK: LN -S
  • 10. EMBEDDED VI EDITOR - VI/VIM/NANO - READ/INSERT MODES - SEARCH - LINE # - EDIT AND SAVE - EXIT
  • 11. Working with server logs and search - tomcat/apache log level - rsyslog/syslog - tail [-f] - more/less/head - find/locate - grep/egrep (regex), zgrep - grep [-i] [-v] - concept of Recursion - nullify log: cat /dev/null > log.txt
  • 12. Exercise 1. Find any uniq value in all files in current folder 2. The same on the whole server
  • 13. Shell scripts How to run Execution permissions What is inside Example
  • 14. Unix services and applications sendmail rsyslog iptables (firewall) mysql webservers start/stop
  • 15. Daemons and cron processes • What is daemon • Cron functionality • Cron format: 10 8 1 * *
  • 16. Misc • Archive – untar: tar -zxvf myfile.tar.gz – tar -czf workspace.tar.gz * Install: yum/apt-get rpm packets
  • 17. Resources • Unix commands <http://www.cheat-sheets.org/saved- copy/fwunixref.pdf> • Additional reading material text here < http://www.cyberciti.biz/tips/linux-unix- commands-cheat-sheets.html > • This slide deck and related resources: <Facebook group>