http://www.gemaroprek.com/complete-linux-com...
Gemar Oprek
About Us
Links
Contact Us
Search
Select Language
Perintah
Deskripsi
# arch
Popular Posts
# cal 2007
# cat /proc/cpuinfo
# cat /proc/interrupts
# cat /proc/meminfo
# cat /proc/swaps
(LEMP)
Test Internet Connection Speed dari terminal linux
(Command
[Solved] TUN/TAP error :: cat: /dev/net/tun: No
such file or
# cat /proc/net/dev
# cat /proc/mounts
# clock -w
# date
# date 041217002007.00
BulanHariJamMenitTahun.Detik [man]
# dmidecode -q
# hdparm -i /dev/hda
[man]
# hdparm -tT /dev/sda
# lspci -tv
# lsusb -tv
# uname -m
# uname -r
Archives
Select Month
Categories
Backtrack
CentOS
Debian
Perintah Shutdown
Fedora
Perintah
Deskripsi
# init 0
# logout
# reboot
Firewall
1 of 18
Linux Command
Mikrotik
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# shutdown -h now
Networking
RedHat
# shutdown -c
Ubuntu
dijadwalkan [man]
# shutdown -r now
# telinit 0
Berkas, Direktori
WebHosting
Tags
Apache DNS Drupal Email Server Exim Joomla
Perintah
Deskripsi
# cd /home
# cd ..
Kloxo KloxoMR
Knowledge
# cd ../..
# cd
Proxy SolusVM
# cd ~user1
# cd -
# cp file1 file2
# cp dir/* .
cPanel Wordpress
&
aktif [man]
# cp -a /tmp/dir1 .
# cp -a dir1 dir2
# cp file file1
# iconv -l
# find . -maxdepth 1 -name *.jpg -print -exec ubah sekumpulan berkas gambar dalam
convert
# ln -s file1 lnk1
# ln file1 lnk1
# ls
# ls -F
# ls -l
# ls -a
# ls *[0-9]*
2 of 18
17/04/14 10:39
# lstree
http://www.gemaroprek.com/complete-linux-com...
# mkdir dir1
# mkdir -p /tmp/dir1/dir2
# mv dir1 new_dir
# pwd
# rm -f file1
# rm -rf dir1
# rmdir dir1
# tree
Pencarian Berkas
Perintah
Deskripsi
# locate \*.ps
# whereis halt
# which halt
Memuat FileSystem
3 of 18
17/04/14 10:39
Perintah
Deskripsi
http://www.gemaroprek.com/complete-linux-com...
# mount -t smbfs -o
username=user,password=pass //WinClient
[man]
/share /mnt/share
# umount /dev/hda2
# umount -n /mnt/hda2
Ruang Harddisk
Perintah
Deskripsi
# df -h
# dpkg-query -W -f=${Installed-
# du -sh dir1
# ls -lSr |more
-k1,1n
Perintah
Deskripsi
# test user
4 of 18
# groupadd [group]
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# groupdel [group]
menghapus grup
# grpck
# newgrp [group]
# passwd
# passwd user1
# pwck
# useradd user1
# userdel -r user1
Perintah
Deskripsi
5 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# ls -lh
Perintah
Deskripsi
# chattr +a file1
# chattr +c file1
# chattr +d file1
# chattr +i file1
# chattr +s file1
# chattr +S file1
# chattr +u file1
# lsattr
Perintah
Deskripsi
# bunzip2 file1.bz2
# bzip2 file1
# gunzip file1.gz
# gzip file1
# gzip -9 file1
# rar x file1.rar
6 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# unrar x file1.rar
# unzip file1.zip
Perintah
Deskripsi
# rpm -U [package.rpm]
# rpm -F [package.rpm]
# rpm -e [package]
# rpm -qa
7 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# rpm -V [package]
# rpm -Va
/[package.rpm]
# rpm2cpio [package.rpm] | cpio extract
make-directories *bin*
rpm
Perintah
Deskripsi
# yum -y update
# yum list
Perintah
Deskripsi
8 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# apt-get update
# apt-get upgrade
# apt-get check
# apt-get clean
Perintah
Deskripsi
# apt-get update
# apt-get upgrade
# apt-get check
# apt-get clean
Deskripsi
# pacman -S name
# pacman -R name
9 of 18
Perintah
Deskripsi
# cat file1
# head -2 file1
17/04/14 10:39
# less file1
http://www.gemaroprek.com/complete-linux-com...
# more file1
# tac file1
# tail -2 file1
# tail -f /var/log/messages
Manipulasi Teks
Perintah
Deskripsi
# cat -n file1
10 of 18
17/04/14 10:39
# sed -e 1d exampe.txt
http://www.gemaroprek.com/complete-linux-com...
# sed -n /string1/p
Perintah
Deskripsi
# recode -l | more
Analisis filesystem
Perintah
Deskripsi
# badblocks -v /dev/hda1
# dosfsck /dev/hda1
# e2fsck /dev/hda1
# e2fsck -j /dev/hda1
# fsck /dev/hda1
# fsck.ext2 /dev/hda1
11 of 18
17/04/14 10:39
# fsck.ext3 /dev/hda1
http://www.gemaroprek.com/complete-linux-com...
# fsck.vfat /dev/hda1
# fsck.msdos /dev/hda1
Format filesystem
Perintah
Deskripsi
# fdformat -n /dev/fd0
# mke2fs /dev/hda1
# mke2fs -j /dev/hda1
# mkfs /dev/hda1
# mkswap /dev/hda3
Filesystem swap
Perintah
Deskripsi
# mkswap /dev/hda3
# swapon /dev/hda3
Penyimpanan Duplikat
Perintah
Deskripsi
-av target-directory=/home/backup/
parents
user@ip_addr dd of=hda.gz
# dd if=/dev/sda of=/tmp/file1
count=1
count=1
12 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
ini[Indonesian?]
# dump -1aj -f /tmp/home0.bak /home
ip_address:/tmp
/public /home/local
ip_addr:/home/public
CDROM
Perintah
Deskripsi
# cd-paranoia -B
# cd-paranoia
# dd if=/dev/hdc | md5sum
13 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# mkisofs -J -allow-leading-dots -R -V
Network
Perintah
Deskripsi
# dhclient eth0
# ethtool eth0
# host http://www.example.com
# hostname
# ifconfig eth0
Mengatur alamat IP
255.255.255.0
# ifconfig eth0 promisc
# ifdown eth0
menonaktifkan eth0
# ifup eth0
mengaktifkan eth0
# ip link show
# iwconfig eth1
# iwlist scan
# mii-tool eth0
# netstat -tup
# netstat -tupl
# netstat -rn
# nslookup http://www.example.com
# route -n
255.255.0.0 gw 192.168.1.1
jaringan 192.168.0.0/16
14 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
# whois http://www.example.com
Koneksi Samba
Perintah
Deskripsi
# mount -t smbfs -o
username=user,password=pass //WinClient
jaringan windows
/share /mnt/share
# nbtscan ip_addr
# nmblookup -A ip_addr
# smbclient -L ip_addr/hostname
Iptables (firewall)
Perintah
Deskripsi
# iptables -t filter -L
# iptables -t nat -L
# iptables -t filter -F
# iptables -t nat -F
# iptables -t filter -X
telnet -j ACCEPT
# iptables -t filter -A OUTPUT -p tcp dport
http -j DROP
# iptables -t filter -A FORWARD -p tcp dport
pop3 -j ACCEPT
# iptables -t filter -A INPUT -j LOG log-prefix catat transaksi pada rantai input
# iptables -t nat -A POSTROUTING -o eth0 -j
MASQUERADE
ke alamat lainnya
to-destination 10.0.0.2:22
Perintah
Deskripsi
# free -m
# kill -9 process_id
15 of 18
17/04/14 10:39
# kill -1 process_id
http://www.gemaroprek.com/complete-linux-com...
# last reboot
# lsmod
# lsof -p process_id
# lsof /home/user1
# ps -eafw
# ps -e -o pid,args forest
# pstree
# smartctl -A /dev/hda
# smartctl -i /dev/hda
# strace -c ls >/dev/null
# tail /var/log/dmesg
# tail /var/log/messages
# top
Perintah
Deskripsi
# alias hh=history
# apropos keyword
# chsh
# chsh list-shells
16 of 18
17/04/14 10:39
# gpg -c file1
http://www.gemaroprek.com/complete-linux-com...
# gpg file1.gpg
# ldd /usr/bin/ssh
# man ping
# wget -r http://www.example.com
# wget -c http://www.example.com/file.iso
/files.iso’ | at 09:00
# whatis keyword
# who -a
Sumber : http://www.linuxguide.it/
(Visited 9 time, 1 visit today)
0
Tweet
Bio
2
Suka
Share
Share
Latest Posts
ArieL FX
ArieL FX a.k.a Ary Wira Budi adalah seorang penggila dunia Internet, aktif
ngoprek, bereksperimen dengan Linux (terutama CentOS & Debian), mendadak
maniak dengan LEMP (Linux, Nginx, MariaDB, PHP) dan saat ini sedang bekerja
sebagai Customer Support Di Provider Hosting ternama di Indonesia
Posted in: Backtrack, CentOS, Fedora, Linux Command, RedHat, Ubuntu Tagged: Knowledge Based, Linux Tutorial, Tips
and Tricks
17 of 18
17/04/14 10:39
http://www.gemaroprek.com/complete-linux-com...
Leave a Reply
Your email address will not be published. Required fields are marked *
Name*
Email*
Website
=9
Post Comment
Notify me of follow-up comments by email.
Notify me of new posts by email.
Previous Post
18 of 18
Next Post
17/04/14 10:39