SlideShare a Scribd company logo
1 of 16
Download to read offline
LINUX SYSTEM
                         ADMINISTRATION
                             In 10 Minutes




Monday, December 3, 12
DIRECTORIES


    •/                   “root” directory

    • /usr               directory of usr (sub directory of “/” root)

    • /usr/STRIM100                  STRIM100 is a subdirectory of /usr




Monday, December 3, 12
MOVING AROUND

    • pwd
       Show the “present working directory”

    • cd
       Change directory

    • cd       /usr/STRIM100

    • cd ..
       Move to the parent directory of the current directory

Monday, December 3, 12
LISTING FILES

    • ls
       List a directory

    • ls -l
       List a directory in a long format

    • ls /usr
       List the /usr directory


Monday, December 3, 12
CHANGING FILE PERMISSIONS

    • chmod  755 FILE
       Changes the file to be rw for the user and ro for group/world

    • chgrp user FILE
       Make the FILE belong to the group “user”

    • chown  cliff FILE
       Makes cliff the owner of FILE

    • chown  -R cliff DIR
       Makes cliff the owner of DIR and everything inside of it
Monday, December 3, 12
MOVING, RENAMING,
                             COPYING
    • cp file1 file2                  • rm
                                       file1
       Copy file1 to file2             Remove or delete file1

    • mv file1 newname               • rm -r dir1
       Move or rename a file          Recursively delete a
                                     directory and it’s contents
    • mv file1 ~/AAA/
       Move file1 to AAA directory   • mkdirdir1
                                     Create a directory



Monday, December 3, 12
VIEWING AND EDITING FILES

    • catfile                       • vifile
       Dump a file to the screen      Edit file with vi. Also try
                                     “nano”
    • more    file
       Dump a file to the screen    • head file
       line by line                  Show the first few lines of a
                                     file.
    • less file
       Like more but with paging   • tail
                                        file
                                     Show the last few lines


Monday, December 3, 12
INTERACTIVE HISTORY



    • You   can use the Up arrow key to access previous commands,
       edit and re-execute them.




Monday, December 3, 12
FILENAME COMPLETION



    • You  can use TAB to complete a partially typed command or
       filename

    • TAB          twice will show you all of your available options




Monday, December 3, 12
REDIRECTION

    • grep   string filename > newfile
       Redirects the output of the “grep” command into a new file
       called “newfile”

    • grep string filename >> newfile
       Appends the output of the “grep” command to the end of
       “newfile”

    • mysql  database < dump.sql
       Sends the commands from the SQL file into MySQL

Monday, December 3, 12
PIPES

    • The pipe symbol “|” is used to direct the output of one
       command into the input of another

    • ls  -l | more
       ls is now viewable line by line

    • du  -sc * | sort -n | tail
       Shows the largest files in the current directory


Monday, December 3, 12
SEARCHING FILES



    • grep   STRING FILENAME
       prints all the lines of a file that contain string. Wildcards can be
       used, along with the -r flag




Monday, December 3, 12
SEARCHING FOR FILES


    • find         search_path -name filename

    • find         . -name aaa.txt

    • find         / -name vimrc




Monday, December 3, 12
LOOKING FOR HELP


    • man
       Short for “Manual”

    • man          ls

    • man          grep



Monday, December 3, 12
PACKAGE MANAGEMENT


    • yum update
       Query all of the configured software sources for updates

    • yum          install PACKAGENAME

    • yum          search PACKAGE



Monday, December 3, 12
VIRTUAL BOX


    • virtualbox.org
       Free virtual machine host, run other operating systems inside a
       window on your own machine.

    • CentOS    - centos.org
       Worf runs CentOS 5. Free download and runs great in
       Virtualbox



Monday, December 3, 12

More Related Content

What's hot

Basic command of hadoop
Basic command of hadoopBasic command of hadoop
Basic command of hadoopAhmad Kabeer
 
Course 102: Lecture 24: Archiving and Compression of Files
Course 102: Lecture 24: Archiving and Compression of Files Course 102: Lecture 24: Archiving and Compression of Files
Course 102: Lecture 24: Archiving and Compression of Files Ahmed El-Arabawy
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command LineAnuchit Chalothorn
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overviewAmeer Sameer
 
Compression Commands in Linux
Compression Commands in LinuxCompression Commands in Linux
Compression Commands in LinuxPegah Taheri
 
DNS server configurationDns server configuration
DNS server configurationDns server configurationDNS server configurationDns server configuration
DNS server configurationDns server configurationThamizharasan P
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeQasim Khawaja
 
12 linux archiving tools
12 linux archiving tools12 linux archiving tools
12 linux archiving toolsShay Cohen
 
Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++Michael Gordon
 
Linux: An Unbeaten Empire
Linux: An Unbeaten EmpireLinux: An Unbeaten Empire
Linux: An Unbeaten EmpireYogesh Sharma
 
Samba power point presentation
Samba power point presentationSamba power point presentation
Samba power point presentationMd Maksudur Rahman
 
Linux Administration
Linux AdministrationLinux Administration
Linux AdministrationHarish1983
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1Lilesh Pathe
 
Linux presentation
Linux presentationLinux presentation
Linux presentationNikhil Jain
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configurationSanguine_Eva
 
DockerCon 18 docker storage
DockerCon 18 docker storageDockerCon 18 docker storage
DockerCon 18 docker storageDaniel Finneran
 

What's hot (20)

Ubuntu For Intranet Services
Ubuntu For Intranet ServicesUbuntu For Intranet Services
Ubuntu For Intranet Services
 
Basic command of hadoop
Basic command of hadoopBasic command of hadoop
Basic command of hadoop
 
Course 102: Lecture 24: Archiving and Compression of Files
Course 102: Lecture 24: Archiving and Compression of Files Course 102: Lecture 24: Archiving and Compression of Files
Course 102: Lecture 24: Archiving and Compression of Files
 
Quick Guide with Linux Command Line
Quick Guide with Linux Command LineQuick Guide with Linux Command Line
Quick Guide with Linux Command Line
 
Common linux ubuntu commands overview
Common linux  ubuntu commands overviewCommon linux  ubuntu commands overview
Common linux ubuntu commands overview
 
Ubuntu vps setup
Ubuntu vps setupUbuntu vps setup
Ubuntu vps setup
 
Compression Commands in Linux
Compression Commands in LinuxCompression Commands in Linux
Compression Commands in Linux
 
DNS server configurationDns server configuration
DNS server configurationDns server configurationDNS server configurationDns server configuration
DNS server configurationDns server configuration
 
Sls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In PracticeSls01 Lecture02 Linux In Practice
Sls01 Lecture02 Linux In Practice
 
12 linux archiving tools
12 linux archiving tools12 linux archiving tools
12 linux archiving tools
 
Rhel4
Rhel4Rhel4
Rhel4
 
Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++Introduction to Linux, Pico, G++
Introduction to Linux, Pico, G++
 
Linux: An Unbeaten Empire
Linux: An Unbeaten EmpireLinux: An Unbeaten Empire
Linux: An Unbeaten Empire
 
Samba power point presentation
Samba power point presentationSamba power point presentation
Samba power point presentation
 
Linux Administration
Linux AdministrationLinux Administration
Linux Administration
 
Linux basics part 1
Linux basics part 1Linux basics part 1
Linux basics part 1
 
Linux presentation
Linux presentationLinux presentation
Linux presentation
 
DNS server configuration
DNS server configurationDNS server configuration
DNS server configuration
 
DockerCon 18 docker storage
DockerCon 18 docker storageDockerCon 18 docker storage
DockerCon 18 docker storage
 
Linux commands
Linux commandsLinux commands
Linux commands
 

Similar to Linux Administration in 10 Minutes

Directory Management in Unix
 Directory Management in Unix Directory Management in Unix
Directory Management in UnixVpmv
 
101 3.3 perform basic file management
101 3.3 perform basic file management101 3.3 perform basic file management
101 3.3 perform basic file managementAcácio Oliveira
 
03 browsing the filesystem
03 browsing the filesystem03 browsing the filesystem
03 browsing the filesystemShay Cohen
 
A PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 appA PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 appRyan Weaver
 
14_0930_Intro_to_Linux.pdf
14_0930_Intro_to_Linux.pdf14_0930_Intro_to_Linux.pdf
14_0930_Intro_to_Linux.pdfssuser9606e5
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptxPriyadarshini648418
 
Unix primer
Unix primerUnix primer
Unix primerdummy
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Chander Pandey
 
Learning Linux v2.1
Learning Linux v2.1Learning Linux v2.1
Learning Linux v2.1sdiviney
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating SystemMeqdad Darweesh
 
Unit3 browsing the filesystem
Unit3 browsing the filesystemUnit3 browsing the filesystem
Unit3 browsing the filesystemroot_fibo
 
Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Ahmed El-Arabawy
 

Similar to Linux Administration in 10 Minutes (20)

Linux Fundamentals
Linux FundamentalsLinux Fundamentals
Linux Fundamentals
 
Class 2
Class   2Class   2
Class 2
 
Directory Management in Unix
 Directory Management in Unix Directory Management in Unix
Directory Management in Unix
 
Unix Basics Commands
Unix Basics CommandsUnix Basics Commands
Unix Basics Commands
 
Directories description
Directories descriptionDirectories description
Directories description
 
101 3.3 perform basic file management
101 3.3 perform basic file management101 3.3 perform basic file management
101 3.3 perform basic file management
 
03 browsing the filesystem
03 browsing the filesystem03 browsing the filesystem
03 browsing the filesystem
 
A PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 appA PHP Christmas Miracle - 3 Frameworks, 1 app
A PHP Christmas Miracle - 3 Frameworks, 1 app
 
14_0930_Intro_to_Linux.pdf
14_0930_Intro_to_Linux.pdf14_0930_Intro_to_Linux.pdf
14_0930_Intro_to_Linux.pdf
 
2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx2. UNIX OS System Architecture easy.pptx
2. UNIX OS System Architecture easy.pptx
 
Unix
UnixUnix
Unix
 
Linux Basics
Linux BasicsLinux Basics
Linux Basics
 
Linuxnishustud
LinuxnishustudLinuxnishustud
Linuxnishustud
 
Unix primer
Unix primerUnix primer
Unix primer
 
Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01Linuxtraining 130710022121-phpapp01
Linuxtraining 130710022121-phpapp01
 
Learning Linux v2.1
Learning Linux v2.1Learning Linux v2.1
Learning Linux v2.1
 
DOS - Disk Operating System
DOS - Disk Operating SystemDOS - Disk Operating System
DOS - Disk Operating System
 
LinuxLabBasics.ppt
LinuxLabBasics.pptLinuxLabBasics.ppt
LinuxLabBasics.ppt
 
Unit3 browsing the filesystem
Unit3 browsing the filesystemUnit3 browsing the filesystem
Unit3 browsing the filesystem
 
Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands Course 102: Lecture 3: Basic Concepts And Commands
Course 102: Lecture 3: Basic Concepts And Commands
 

Linux Administration in 10 Minutes

  • 1. LINUX SYSTEM ADMINISTRATION In 10 Minutes Monday, December 3, 12
  • 2. DIRECTORIES •/ “root” directory • /usr directory of usr (sub directory of “/” root) • /usr/STRIM100 STRIM100 is a subdirectory of /usr Monday, December 3, 12
  • 3. MOVING AROUND • pwd Show the “present working directory” • cd Change directory • cd /usr/STRIM100 • cd .. Move to the parent directory of the current directory Monday, December 3, 12
  • 4. LISTING FILES • ls List a directory • ls -l List a directory in a long format • ls /usr List the /usr directory Monday, December 3, 12
  • 5. CHANGING FILE PERMISSIONS • chmod 755 FILE Changes the file to be rw for the user and ro for group/world • chgrp user FILE Make the FILE belong to the group “user” • chown cliff FILE Makes cliff the owner of FILE • chown -R cliff DIR Makes cliff the owner of DIR and everything inside of it Monday, December 3, 12
  • 6. MOVING, RENAMING, COPYING • cp file1 file2 • rm file1 Copy file1 to file2 Remove or delete file1 • mv file1 newname • rm -r dir1 Move or rename a file Recursively delete a directory and it’s contents • mv file1 ~/AAA/ Move file1 to AAA directory • mkdirdir1 Create a directory Monday, December 3, 12
  • 7. VIEWING AND EDITING FILES • catfile • vifile Dump a file to the screen Edit file with vi. Also try “nano” • more file Dump a file to the screen • head file line by line Show the first few lines of a file. • less file Like more but with paging • tail file Show the last few lines Monday, December 3, 12
  • 8. INTERACTIVE HISTORY • You can use the Up arrow key to access previous commands, edit and re-execute them. Monday, December 3, 12
  • 9. FILENAME COMPLETION • You can use TAB to complete a partially typed command or filename • TAB twice will show you all of your available options Monday, December 3, 12
  • 10. REDIRECTION • grep string filename > newfile Redirects the output of the “grep” command into a new file called “newfile” • grep string filename >> newfile Appends the output of the “grep” command to the end of “newfile” • mysql database < dump.sql Sends the commands from the SQL file into MySQL Monday, December 3, 12
  • 11. PIPES • The pipe symbol “|” is used to direct the output of one command into the input of another • ls -l | more ls is now viewable line by line • du -sc * | sort -n | tail Shows the largest files in the current directory Monday, December 3, 12
  • 12. SEARCHING FILES • grep STRING FILENAME prints all the lines of a file that contain string. Wildcards can be used, along with the -r flag Monday, December 3, 12
  • 13. SEARCHING FOR FILES • find search_path -name filename • find . -name aaa.txt • find / -name vimrc Monday, December 3, 12
  • 14. LOOKING FOR HELP • man Short for “Manual” • man ls • man grep Monday, December 3, 12
  • 15. PACKAGE MANAGEMENT • yum update Query all of the configured software sources for updates • yum install PACKAGENAME • yum search PACKAGE Monday, December 3, 12
  • 16. VIRTUAL BOX • virtualbox.org Free virtual machine host, run other operating systems inside a window on your own machine. • CentOS - centos.org Worf runs CentOS 5. Free download and runs great in Virtualbox Monday, December 3, 12