Slide # 1

Slide # 1

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts Read More

Slide # 2

Slide # 2

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts Read More

Slide # 3

Slide # 3

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts Read More

Slide # 4

Slide # 4

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts Read More

Slide # 5

Slide # 5

Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts Read More

Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts

Monday, April 25, 2011

perintah dasar linux

*melihat penggunaan perintah dasar  : man
contoh : man ls #man mv #man scp #man rm

*menampilkan file     : ls
contoh : ls -a #ls-la #ls -l #ls -h

*menampilkan isi file perlayar   : less
contoh : less catatan.sh

*menampilkan isi file paling atas   : head
contoh : head catatan.sh

*menampilkan isi file paling bawah  : tail
contoh : tail catatan.sh

*membuat direktori baru    : mkdir
contoh : mkdir laporan

*membuat direktori sekaligus beserta turunannya
contoh : mkdir -p laporan/juli/2007

*menghapus direktori    : rmdir
contoh : #rmdir laporan

*menghapus direktori sekaligus beserta turunannya
contoh : rm -rf laporan

*memindahkan file     : mv
contoh : mv catatan.sh /home/denot

*mengganti / merubah nama file   : mv
contoh : mv catatan.sh tulisan.sh

*menyalin / mengcopy file    : cp
contoh : #cp catatan.sh /home/denot

*menyalin / mengcopy folder   : cp -rf
contoh : cp -rf laporan /home/denot

*menyalin / copy file dijaringan   : scp
contoh : #scp boneka.jpg 192.168.0.20:/home/nisa


*menyalin / copy folder dijaringan   : scp -r
contoh : scp -r laporan 192.168.0.20:/home/nisa

*melihat kapasitas memori yang dipakai  : du
contoh : du -h gambar.jpg

*membuat file baru (file kosong)   : touch
contoh : touch coba1
buat sekaligus #touch coba1 coba2 coba3

*menuliskan kedalam file    : echo
contoh : echo "nama saya" >> /dataku/catatan.sh

*menampilkan isi file    : cat
contoh : cat /home/deni/catatan.sh

*mengedit file (editor)    : vi
 contoh : vi catatan.sh

*melihat partisi lengkap pada pc   : fdisk -l
contoh : fdisk -l

*melihat isi harddisk yg masih kosong  : df -k
contoh : df -k /dev/hda1

*men-Scandisk Harddisk    : fsck
contoh : fsck /dev/hda2

*melihat total memori yang dipakai  : free
contoh : free

*melihat direktori dimana kita bekerja  : pwd
contoh : pwd

*kompres file      : gzip
contoh : gzip -c test.txt > test.gz

*extract file kompres    : gunzip
contoh : #gunzip test.gz

*membaca file format pdf    : xpdf
contoh : xpdf brosur.pdf

*remote pc lain di jaringan    : ssh
contoh : ssh root@192.168.0.20

*melihat ip address yang dipakai   : ifconfig
contoh : ifconfig eth0

*menginstall file rpm    : rpm -ivh
contoh : rpm -ivh ifolder3-server.i586.rpm

*mengupgrade file rpm    : rpm -Uvh
contoh : rpm -Uvh ifolder3-server.i586.rpm

*menghapus file rpm    : rpm -e
contoh : rpm -e ifolder3-server.i586.rpm

*melihat file rpm yang sudah terinstall  : rpm -qa
contoh : rpm -qa |grep xmms

*mounting media baru    : mount
contoh : mount /dev/sda /mnt/flashdisk

*melihat proses yang sedang berjalan  : ps
contoh : ps axf

*mendownload file di internet   : wget
contoh : wget -t0 -cb [nama file download] -O var/temp

*menampilkan routing table   : route
contoh : route -n

*membuat link file (shortcut)   : ln
contoh : ln -s linux-2.6.17.12 linux

*merubah kepemilikan    : chmod
contoh : chmod 777 /data/share

*menambahkan user    : useradd
contoh : useradd denok

*menambahkan password    : passwd
contoh : passwd denok

*mengunci password    : passwd -l
contoh : passwd -l denok

*membuka kunci password    : passwd -u
contoh : passwd -u denok

*membypass password    : passwd -d
contoh : passwd -d denok

*menghapus user     : userdel
contoh : userdel denok

*menambahkan group    : groupadd
contoh : groupadd suse

*menghapus group     : groupdel
contoh : groupdel suse

*Membuat File     : nano nama file
contoh : nano coba
lalu untuk menyimpan Tekan Ctrl+X dan Y

*Membuat File     : vi nama file
contoh : vi coba
Lalu untuk keluar Tekan ESC dan Q
Lalu untuk keluar dan simpan tekan ESC dan QW

*Melihat File      : tail nama file
contoh  : tail coba

*Menutup linux     : ketik logout
 contoh : logoul

Apa pendapat anda dengan BLOG ini ?