Monday, January 6, 2014

Perintah dasar LINUX SUSE


Untuk masuk ke sebuah folder
Perintah : cd nama_direktory
Contoh: # cd /opt/lamp
Untuk copy file
Perintah : cp nama_file nama_directory
Contoh : # cp Joomla_1.5.9-Stable-Full_Package.rar /home/tkj
Untuk ekstrak file yang berbentuk rar
Perintah : tar xzvf nama_file
Contoh : # tar xzvf xampp-linux-1.7.tar.gz
Untuk ekstrak file berbentuk rar ke directory lain
Perintah : tar xzvf nama_file –c directory_tujuan
Contoh : # tar xzvf xampp-linux-1.7.tar.gz –c /opt/
Untuk ekstrak file yang berbentuk zip
Perintah : unzip nama_file
Contoh : # unzip Joomla_1.5.9-Stable-Full_Package.rar
Untuk ekstrak file yang berbentuk zip ke directory lain
Perintah : unzip nama_file –d directory_tujuan
Contoh : # unzip Joomla_1.5.9-Stable-Full_Package.rar -d /opt
Untuk edit file atau membuat file
Perintah : vi nama_file
Contoh : # vi /var/lib/named/master/tkj.com
Untuk melihat isi directory
Perintah : ls nama_directory
Contoh : # ls /etc
Untuk melihat isi file
Perintah : more nama_file
Contoh : # more /var/lib/named/master/0.168.192.in-addr.arpa
Untuk me-reboot computer
Perintah : shutdown –r waktu
Contoh : # shutdown –r now
Untuk mematikan computer
Perintah : shutdown –h waktu
Contoh : # shutdown –h now
Untuk membuat direktory baru
Perintah : mkdir nama_direktory
Contoh : # mkdir /media/flas
Untuk mounting media baru
Perintah : mount nama_device directory_tujuan
Contoh : # mount /dev/sdb1 /media/flas
Untuk unmounting device
Perintah : unmount nama_direktory_mount
Contoh : # unmount /media/flas
Meng-hapus directory
Perintah : rmdir nama_directory
Contoh : # rmdir /home/tkj/baru
Meng-hapus directory beserta turunannya
Perintah : rm –rf nama_direktory
Contoh : # rm –rf /home/tkj/lamp
Copy directory
Perintah : cp –rf nama_direktory directory_tujuan
Contoh : # cp –rf lamp /opt/
Remove file
Perintah : rm nama_file
Contoh : # rm /var/lib/named/master/kj.com
Untuk mematikan system
Perintah : halt
Contoh : # halt
Untuk meng-instal paket melalui yast
Perintah : yast –i nama_paket
Contoh : # yast –i bind
Untuk melihat kegunaan dari sebuah perintah
Perintah : nama_perintah --help
Contoh : # tar --help
Untuk meng-instal paket rpm
Perintah : rpm –ivh nama_paket
Contoh : # rpm –ivh openoffice.rpm
Menambah user
Perintah : useradd
Contoh : useradd
Untuk me-remote computer lain
Perintah : ssh root@ ip_address
Contoh : # ssh root@ 192.168.18.5
Untuk melihat pengertian dari sebuah perintah
Perintah : man nama_perintah
Contoh : # man tar

0 comments:

Post a Comment

© Template by Lakuin Ajadeh