BASH Erick, David © Sekolah Tinggi Teknik Surabaya 1.

Slides:



Advertisements
Presentasi serupa
MENGENAL PERINTAH UNIX
Advertisements

SHELL PROMPT 1.
Basic Issue In System Administration. Bassic Issue In System Administration Creating and managing accounts Performing administrative task Access control.
Dasar Linux Onno W Purbo Referensi
BASH – Shell Programming Guide Erick, Joan © Sekolah Tinggi Teknik Surabaya 1.
Shell Programming Oleh: Idris Winarno.
© aSup-2007 PENGENALAN SPSS   1 INTRODUCTION to SPSS Statistical Package for Social Science.
Pemrograman Internet Mobile 7 PHP: Hypertext Preprocessors.
Perbedaan LINUX dan UNIX Pengenalan LINUX
Relation
STRUCTURAL CONTROL STATEMENT  If  If…..else….  If ….elseif…else.
Digital Logic Symbols For Logic gates
Lecture 5 Nonblocking I/O and Multiplexing Erick Pranata © Sekolah Tinggi Teknik Surabaya 1.
1 Pertemuan 1 Introduction Matakuliah: sistem Operasi Tahun: 2010.
Syllabus Erick, Joan © Sekolah Tinggi Teknik Surabaya 1.
Sistem Operasi © Sekolah Tinggi Teknik Surabaya 1.
ARRAY RUBY. PENDAHULUAN Ruby's arrays are untyped and mutable. The elements of an array need not all be of the same class, and they can be changed at.
GRADE/ SEMESTER : VII/ I
1 DATA STRUCTURE “ STACK” SHINTA P STMIK MDP APRIL 2011.
TEORI ORGANISASI DAN MANAJEMEN PENGETAHUAN
Shell Programming Oleh: Idris Winarno. Shell dan Shell Programming Shell adalah Command executive, artinya program yang menunggu instruksi dari pemakai,
Sistem Operasi.
Presented By : Group 2. A solution of an equation in two variables of the form. Ax + By = C and Ax + By + C = 0 A and B are not both zero, is an ordered.
1 Pertemuan 17 Input / Output Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Testing Implementasi Sistem Oleh :Rifiana Arief, SKom, MMSI
PRAKTIKUM 3 PEMROGRAMAN BASIS DATA. Menghapus baris  Deleting rows- DELETE FROM Use the DELELE FROM command to delete row(s) from a table, with the following.
INTRODUCTION TO SPSS Statistical Package for Social Science 1.
1 Diselesaikan Oleh KOMPUTER Langkah-langkah harus tersusun secara LOGIS dan Efisien agar dapat menyelesaikan tugas dengan benar dan efisien. ALGORITMA.
BASIC CISCO. Memakai Cisco Cisco dapat dikonfigurasi melalui 3 cara : Console : menggunakan cable console yang dihubungkan melalui serial port dan menggunakan.
Perangkat Lunak Jaringan I SHELL SCRIPT. Perangkat Lunak Jaringan I PENDAHULUAN Shell script adalah suatu file yang berisi perintah-perintah yang harus.
SHELL SCRIPT KLOBODH + OLOAN.
Shell ScriptingITS Research ComputingShell Scripting
KONSEP SISTEM OPERASI Proses Adalah program yang sedang dieksekusi
(HTML). Frames are most typically used to have a menu in one frame, and content in another frame. When someone clicks a link on the menu that web page.
PERTEMUAN KE-6 UNIFIED MODELLING LANGUAGE (UML) (Part 2)
1 HAMPIRAN NUMERIK SOLUSI PERSAMAAN LANJAR Pertemuan 5 Matakuliah: K0342 / Metode Numerik I Tahun: 2006 TIK:Mahasiswa dapat meghitung nilai hampiran numerik.
1 Pertemuan 13 Algoritma Pergantian Page Matakuliah: T0316/sistem Operasi Tahun: 2005 Versi/Revisi: 5.
Pertemuan 14 Algoritma Pergantian Page (lanjutan)
1 Pertemuan 2 Algoritma dan Pemrograman Matakuliah: T0016/Algoritma dan Pemrograman Tahun: 2005 Versi: versi 2.
9.3 Geometric Sequences and Series. Objective To find specified terms and the common ratio in a geometric sequence. To find the partial sum of a geometric.
OPERATOR DAN FUNGSI MATEMATIK. Operator  Assignment operator Assignment operator (operator pengerjaan) menggunakan simbol titik dua diikuti oleh tanda.
Cursor MI2163 Dasar Pemrograman Basis Data. Introduction Cursor merupakan suatu variabel yang digunakan untuk menampung hasil query yang terdiri atas.
Visual Basic for Aplications in powerpoint. What is Visual Basic for Aplications? Visual Basic for Applications (VBA) is a very powerful objectoriented.
Jartel, Sukiswo Sukiswo
Bekerja Dengan Bash Shell
Konsep Pemrograman 3
HTML BASIC (Contd…..) PERTEMUAN KEDUA.
PERINTAH DASAR SISTEM OPERASI LINUX
Pert. 16. Menyimak lingkungan IS/IT saat ini
Membangun Web Site“Cantik”
Rakhmadhany Primananda, S.T., M.Kom
Konsep Dasar Sistem Operasi Pada Unix
Praktikum 7 Sistem Operasi
Dasar-Dasar Pemrograman
Sistem Operasi Syllabus Erick, David © Sekolah Tinggi Teknik Surabaya.
Pertemuan 24 Teknik Searching
Pemrograman Berorientasi Objek
REAL NUMBERS EKSPONENT NUMBERS.
FACTORING ALGEBRAIC EXPRESSIONS
Onno W Purbo Dasar Linux Onno W Purbo
Database User Account.
Algoritma & Pemrograman 1 Achmad Fitro The Power of PowerPoint – thepopp.com Chapter 4.
 Zoho Mail offers easy options to migrate data from G Suite or Gmail accounts. All s, contacts, and calendar or other important data can be imported.
Zoho mail is an integrated Docs Online Document Management System. Zoho mail provides user to receive and send mails in such an easy way. Are you facing.
If you are an user, then you know how spam affects your account. In this article, we tell you how you can control spam’s in your ZOHO.
CALL PC EXPERT How to Remove Adware, Pop- up Ads from Web Browser.
Kelompok 13 Nama Anggota : Sigit Dwi Prianto Praditya F Marliyana.
Draw a picture that shows where the knife, fork, spoon, and napkin are placed in a table setting.
HOW TO IMPROVE YOUR PUBLIC SPEAKING SKILLS. 2 3 INIKAH YANG SERING ANDA ALAMI SAAT PRESENTASI?
Transcript presentasi:

BASH Erick, David © Sekolah Tinggi Teknik Surabaya 1

2 Shell Kernel User Input

» Bourne-Again Shell » Primary Shell for GNU/Linux and MAC OS X » Also available in Solaris and various BSD Systems » Can also be compiled in other Unix system 3 © Sekolah Tinggi Teknik Surabaya

Bourne Shell (sh) C Shell (csh) Korn Shell (ksh) Bourne- Again Shell (bash) 4 © Sekolah Tinggi Teknik Surabaya

» Input/output redirection » Wildcard characters for filename abbreviation » Shell variables and options for customizing the environment » A built-in command set for writing shell programs » Shell functions, for modularizing tasks within a shell program » Job control » Command-line editing (using the command syntax of either vi or Emacs) 5 © Sekolah Tinggi Teknik Surabaya

» Access to previous commands (command history) » Integer arithmetic » Arrays and arithmetic expressions » Command-name abbreviation (aliasing) » Upwards compliance with POSIX » Internationalization facilities » An arithmetic for loop 6 © Sekolah Tinggi Teknik Surabaya

» Special files » Filename Metacharacters » Brace Expansion » Quoting » Command Forms » Redirection Forms 7 © Sekolah Tinggi Teknik Surabaya

» Startup Files ˃ /etc/profile. Executed automatically at login ˃ The first file found from this list: ~/.bash_profile, ~/.bash_login, or ~/.profile. Executed automatically at login. 8 © Sekolah Tinggi Teknik Surabaya

9

10 © Sekolah Tinggi Teknik Surabaya

11 © Sekolah Tinggi Teknik Surabaya

12 © Sekolah Tinggi Teknik Surabaya

13 © Sekolah Tinggi Teknik Surabaya

14 © Sekolah Tinggi Teknik Surabaya

» Everything between " and " is taken literally, except for the following characters that keep their special meaning: ˃$ -- Variable substitution ˃` -- command substitution » Everything between ' and ' is taken literally » The character following a \ is taken literally. Use within " " to escape ", $, and `. Often used to escape itself, spaces, or newlines 15 © Sekolah Tinggi Teknik Surabaya

16 © Sekolah Tinggi Teknik Surabaya

» cmd & ˃Execute cmd in background » cmd1 ; cmd2 ˃Command sequence; execute multiple cmds on the same line » cmd1 | cmd2 ˃Pipe; use output from cmd1 as input to cmd2 » cmd1 `cmd2` ˃Command substitution; use cmd2 output as arguments to cmd1 17 © Sekolah Tinggi Teknik Surabaya

» cmd1 && cmd2 ˃AND; execute cmd1 and then (if cmd1 succeeds) cmd2. This is a “short circuit” operation: cmd2 is never executed if cmd1 fails. » cmd1 || cmd2 ˃OR; execute either cmd1 or (if cmd1 fails) cmd2. This is a “short circuit” operation; cmd2 is never executed if cmd1 succeeds. 18 © Sekolah Tinggi Teknik Surabaya

19 © Sekolah Tinggi Teknik Surabaya

CommandExplanation cdChange directory echoPrint command-line arguments to standard output exitExit the shell script historyPrint command-line history pwdPrint working directory lsList files catList file content to standard output revReverse each line of a file and output to standard output 20 © Sekolah Tinggi Teknik Surabaya

CommandExplanation cpCopy a file mvMove a file rmRemove a file rmdirRemove a directory mkdirMake a directory chmodChange the attributes of an existing file manManual pages 21 © Sekolah Tinggi Teknik Surabaya

» Arnold Robbins, Bash Pocket Reference, O’Reilly, 2010 » Basic Commands, c.html c.html 22 © Sekolah Tinggi Teknik Surabaya