Perintah Dasar Linux

download

of 96

  • date post

    25-Jun-2015
  • Category

    Software
  • view

    815
  • download

    0

Embed Size (px)

description

Perintah Linux Terlengkap

transcript

  • 1. (BASIC COMMAND LINE) E-book ini merupakan tutorial Perintah Dasar Linux (Basic Command Line), biasa disebut juga Text Mode. E-book ini cocok buat Anda yang sudah mengenal Linux (menginstall, mengoperasikan) dan ingin mempelajari penggunaan perintah-perintah dasar di Linux. Semoga apa yang ada dalam E-book ini bisa membantu Anda. Dalam proses penyusunan mungkin masih ada kekurangan, kami akan berbesar hati menerima kritik dan saran dari Anda. localhost:/home#ls localhost:/home#man man localhost:/home#mkdir data Tim penyusun : Arie Setio Wibowo (Arie) ariemq@yahoo.com Kusumaningati S. Wardhani (Dhani) kusumaningati@gmail.com Last Edited : Nopember 2008 E-book Tutorial PERINTAH DASAR LINUX bukutux Cerdas dengan Linux http://bukutux.rumahlinux.web.id

2. Daftar Isi Daftar Isi 1. Perintah Dasar Linux ..............................................................................1 1.1 Terminal Pada Environment KDE Desktop.........................................2 1.2 Terminal Pada Environment GNOME Desktop....................................9 1.3 Prompt.............................................................................................15 1.4 Absolute Paths dan Relative Paths...................................................16 1.4.1 Absolute Paths........................................................................16 1.4.2 Relative Paths.........................................................................16 1.5 Format penulisan Perintah Dasar.....................................................17 1.6 Membatalkan Perintah ....................................................................19 2. File System di Linux...............................................................................20 2.1 Filesystem Hierachy Standard.........................................................20 2.2 Linux Standard Base........................................................................24 2.3 Tipe Filesystem................................................................................25 2.4 Aturan Penamaan File......................................................................26 3. Fitur - Fitur yang Bisa Diandalkan.........................................................27 3.1 Bantuan Dokumentasi.....................................................................27 3.1.1 man ........................................................................................27 3.1.2 info..........................................................................................29 3.1.3 whatis.....................................................................................29 3.1.4 apropos...................................................................................29 3.1.5 --help.......................................................................................30 3.2 Command History............................................................................31 3.3 Command Completion.....................................................................32 3.4 Error.. Error.. Error...........................................................................33 Command not found ........................................................................33 Invalid option....................................................................................33 No such file or directory....................................................................33 Missing operand................................................................................34 4. Bermain-main dengan Perintah Dasar Linux.........................................35 4.1 Perintah Dasar yang Berhubungan dengan Direktori......................35 ls........................................................................................................35 dir.......................................................................................................37 pwd (print working direktory).............................................................37 mkdir..................................................................................................37 cd.......................................................................................................38 rmdir..................................................................................................40 4.2 Perintah Dasar yang Berhubungan dengan Manajemen File...............41 touch..................................................................................................41 cat......................................................................................................41 more...................................................................................................42 less.....................................................................................................43 cp.......................................................................................................43 mv......................................................................................................43 rm.......................................................................................................44 find.....................................................................................................45 3. which .................................................................................................45 whereis...............................................................................................46 tar......................................................................................................46 unzip..................................................................................................47 4. 3 Perintah yang berhubungan dengan Pemrosesan String................47 head...................................................................................................47 tail .....................................................................................................48 grep....................................................................................................48 wc.......................................................................................................49 sort.....................................................................................................49 4.4 Perintah-perintah yang berhubungan dengan informasi system.....51 uname................................................................................................51 date....................................................................................................51 cal......................................................................................................51 df........................................................................................................52 du.......................................................................................................52 uptime................................................................................................52 hostname...........................................................................................53 free.....................................................................................................53 ps.......................................................................................................53 pstree.................................................................................................54 4.5 Perintah dasar yang berhubungan dengan User.............................55 who....................................................................................................55 whoami..............................................................................................55 id........................................................................................................56 tty.......................................................................................................56 su atau su - .......................................................................................56 adduser atau useradd........................................................................57 visudo dan sudo.................................................................................57 passwd...............................................................................................58 userdel...............................................................................................60 groupadd............................................................................................61 groupdel.............................................................................................61 4.6 Redirection.......................................................................................61 4.7 Pipe ( | )...........................................................................................63 4.8 Membersihkan Layar........................................................................63 5. Izin Akses File........................................................................................64 5.1 Melihat Izin Akses File......................................................................64 5.2 Mengubah Izin Akses File ................................................................66 5.2.1 Simbolic Mode...........................................................................66 5.2.2 Octal Mode................................................................................68 5.3 Kepemilikan File dan Group.............................................................69 5.3.1 Melihat Pemilik File dan Group..................................................69 5.3.2 Mengubah Kepemilikan File & Direktori....................................69 5.3.3 Mengubah Kepemilikan Group..................................................70 6. Konsep Kernel dan Shell........................................................................71 6.1 Kernel...................................................................