bash command line for linux

Rabu, 16 Januari 2013
a
adduser Add a user to the system
addgroup Add a group to the system
alias Create an alias •
apropos Search Help manual pages (man -k)
apt-get Search for and install software packages (Debian/Ubuntu)
aptitude Search for and install software packages (Debian/Ubuntu)
aspell Spell Checker
awk Find and Replace text, database sort/validate/index

b
basename Strip directory and suffix from filenames
bash GNU Bourne-Again SHell
bc Arbitrary precision calculator language
bg Send to background
break Exit from a loop •
builtin Run a shell builtin
bzip2 Compress or decompress named file(s)

c
cal Display a calendar
case Conditionally perform a command
cat Concatenate and print (display) the content of files
cd Change Directory
cfdisk Partition table manipulator for Linux
chgrp Change group ownership
chmod Change access permissions
chown Change file owner and group
chroot Run a command with a different root directory
chkconfig System services (runlevel)
cksum Print CRC checksum and byte counts
clear Clear terminal screen
cmp Compare two files
comm Compare two sorted files line by line
command Run a command – ignoring shell functions •
continue Resume the next iteration of a loop •
cp Copy one or more files to another location
cron Daemon to execute scheduled commands
crontab Schedule a command to run at a later time
csplit Split a file into context-determined pieces
cut Divide a file into several parts

d
date Display or change the date & time
dc Desk Calculator
dd Convert and copy a file, write disk headers, boot records
ddrescue Data recovery tool
declare Declare variables and give them attributes •
df Display free disk space
diff Display the differences between two files
diff3 Show differences among three files
dig DNS lookup
dir Briefly list directory contents
dircolors Colour setup for `ls’
dirname Convert a full pathname to just a path
dirs Display list of remembered directories
dmesg Print kernel & driver messages
du Estimate file space usage

e
echo Display message on screen •
egrep Search file(s) for lines that match an extended expression
eject Eject removable media
enable Enable and disable builtin shell commands •
env Environment variables
ethtool Ethernet card settings
eval Evaluate several commands/arguments
exec Execute a command
exit Exit the shell
expect Automate arbitrary applications accessed over a terminal
expand Convert tabs to spaces
export Set an environment variable
expr Evaluate expressions

f
false Do nothing, unsuccessfully
fdformat Low-level format a floppy disk
fdisk Partition table manipulator for Linux
fg Send job to foreground
fgrep Search file(s) for lines that match a fixed string
file Determine file type
find Search for files that meet a desired criteria
fmt Reformat paragraph text
fold Wrap text to fit a specified width.
for Expand words, and execute commands
format Format disks or tapes
free Display memory usage
fsck File system consistency check and repair
ftp File Transfer Protocol
function Define Function Macros
fuser Identify/kill the process that is accessing a file

g
gawk Find and Replace text within file(s)
getopts Parse positional parameters
grep Search file(s) for lines that match a given pattern
groups Print group names a user is in
gzip Compress or decompress named file(s)

h
hash Remember the full pathname of a name argument
head Output the first part of file(s)
help Display help for a built-in command •
history Command History
hostname Print or set system name

i
iconv Convert the character set of a file
id Print user and group id’s
if Conditionally perform a command
ifconfig Configure a network interface
ifdown Stop a network interface
ifup Start a network interface up
import Capture an X server screen and save the image to file
install Copy files and set attributes

j
jobs List active jobs •
join Join lines on a common field

k
kill Stop a process from running
killall Kill processes by name

l
less Display output one screen at a time
let Perform arithmetic on shell variables •
ln Make links between files
local Create variables •
locate Find files
logname Print current login name
logout Exit a login shell •
look Display lines beginning with a given string
lpc Line printer control program
lpr Off line print
lprint Print a file
lprintd Abort a print job
lprintq List the print queue
lprm Remove jobs from the print queue
ls List information about file(s)
lsof List open files

m
make Recompile a group of programs
man Help manual
mkdir Create new folder(s)
mkfifo Make FIFOs (named pipes)
mkisofs Create an hybrid ISO9660/JOLIET/HFS filesystem
mknod Make block or character special files
more Display output one screen at a time
mount Mount a file system
mtools Manipulate MS-DOS files
mtr Network diagnostics (traceroute/ping)
mv Move or rename files or directories
mmv Mass Move and rename (files)

n
netstat Networking information
nice Set the priority of a command or job
nl Number lines and write files
nohup Run a command immune to hangups
notify-send Send desktop notifications
nslookup Query Internet name servers interactively

o
open Open a file in its default application
op Operator access

p
passwd Modify a user password
paste Merge lines of files
pathchk Check file name portability
ping Test a network connection
pkill Stop processes from running
popd Restore the previous value of the current directory
pr Prepare files for printing
printcap Printer capability database
printenv Print environment variables
printf Format and print data •
ps Process status
pushd Save and then change the current directory
pwd Print Working Directory

q
quota Display disk usage and limits
quotacheck Scan a file system for disk usage
quotactl Set disk quotas

r
ram ram disk device
rcp Copy files between two machines
read Read a line from standard input •
readarray Read from stdin into an array variable •
readonly Mark variables/functions as readonly
reboot Reboot the system
rename Rename files
renice Alter priority of running processes
remsync Synchronize remote files via email
return Exit a shell function
rev Reverse lines of a file
rm Remove files
rmdir Remove folder(s)
rsync Remote file copy (Synchronize file trees)

s
screen Multiplex terminal, run remote shells via ssh
scp Secure copy (remote file copy)
sdiff Merge two files interactively
sed Stream Editor
select Accept keyboard input
seq Print numeric sequences
set Manipulate shell variables and functions
sftp Secure File Transfer Program
shift Shift positional parameters
shopt Shell Options
shutdown Shutdown or restart linux
sleep Delay for a specified time
slocate Find files
sort Sort text files
source Run commands from a file `.’
split Split a file into fixed-size pieces
ssh Secure Shell client (remote login program)
strace Trace system calls and signals
su Substitute user identity
sudo Execute a command as another user
sum Print a checksum for a file
suspend Suspend execution of this shell •
symlink Make a new name for a file
sync Synchronize data on disk with memory

t
tail Output the last part of files
tar Tape ARchiver
tee Redirect output to multiple files
test Evaluate a conditional expression
time Measure Program running time
times User and system times
touch Change file timestamps
top List processes running on the system
traceroute Trace Route to Host
trap Run a command when a signal is set(bourne)
tr Translate, squeeze, and/or delete characters
true Do nothing, successfully
tsort Topological sort
tty Print filename of terminal on stdin
type Describe a command •

u
ulimit Limit user resources •
umask Users file creation mask
umount Unmount a device
unalias Remove an alias •
uname Print system information
unexpand Convert spaces to tabs
uniq Uniquify files
units Convert units from one scale to another
unset Remove variable or function names
unshar Unpack shell archive scripts
until Execute commands (until error)
useradd Create new user account
usermod Modify user account
users List users currently logged in
uuencode Encode a binary file
uudecode Decode a file created by uuencode

v
v Verbosely list directory contents (`ls -l -b’)
vdir Verbosely list directory contents (`ls -l -b’)
vi Text Editor
vmstat Report virtual memory statistics

w
watch Execute/display a program periodically
wc Print byte, word, and line counts
whereis Search the user’s $path, man pages and source files for a program
which Search the user’s $path for a program file
while Execute commands
who Print all usernames currently logged in
whoami Print the current user id and name (`id -un’)
Wget Retrieve web pages or files via HTTP, HTTPS or FTP
write Send a message to another user

x
xargs Execute utility, passing constructed argument list(s)
xdg-open Open a file or URL in the user’s preferred application.
yes Print a string until interrupted
. Run a command script in the current shell
!! Run the last command again
###

Instal SmartFren in Backtrack 5

Selasa, 15 Januari 2013
 Kali ini kita akan mencoba membahas tentang cara mengkoneksikan modem SmartFren di BackTrack 5. Disini kita menggunakan "wvdial" untuk mengkoneksikan modem SmartFren. Caranya sebagai berikut :


1. Install wvdial terlebih dahulu

root@bt:~# apt-get install wvdial


2. Buka settingan wvdial dengan text editor ( disini saya menggunakan BackTrack 5 KDE )

root@bt:~# kwrite /etc/wvdial.conf


3. Lalu copy script berikut dan pastekan pada settingan wvdial

[Dialer smart]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = smart
Init1 = ATZ
Password = smart
Modem = /dev/ttyUSB0
Baud = 460800
Command Line = ATDT
Stupid Mode = 1


4. Modem akan terdeteksi sebagai CD-ROM, eject dengan perintah

root@bt:~# eject /dev/sr1


jika tidak terdeteksi sebagai sr1 bisa diubah menjadi sr0 atau yang lainnya. 

5. Selanjutnya cek dulu apakah modem sudah terdeteksi oleh komputer, cek dengan perintah lsusb

root@bt:~# lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 003: ID 0a5c:21b4 Broadcom Corp. BCM2070 Bluetooth 2.1 + EDR
Bus 002 Device 003: ID 04f2:b293 Chicony Electronics Co., Ltd 
Bus 002 Device 005: ID 201e:1022 


6. Modem dikenali dengan id vendor 201e dan product 1022. Berikutnya load module ke kernel dengan perintah modprobe. ( Note : setiap modem berbeda - beda kode vendor dan productnya )

root@bt:~# sudo modprobe usbserial vendor=0x201e product=0x1022


7. Cek dengan perintah dmesg | tail untuk mengetahui module telah di load ke kernel.

[ 73.826885] usbserial_generic 2-1.1:1.1: generic converter detected

[ 73.826955] usb 2-1.1: generic converter now attached to ttyUSB1

[ 73.827262] usbserial_generic 2-1.1:1.2: generic converter detected

[ 73.827317] usb 2-1.1: generic converter now attached to ttyUSB2

[ 73.827924] scsi8 : usb-storage 2-1.1:1.3
[ 74.827868] scsi 8:0:0:0: Direct-Access SDVDISK EVDO ReV A 7.00 PQ: 0 ANSI: 0 CCS
[ 74.994712] sd 8:0:0:0: Attached scsi generic sg3 type 0
[ 75.000492] sd 8:0:0:0: [sdc] Attached SCSI removable disk
[ 184.223203] PPP BSD Compression module registered
[ 184.257677] PPP Deflate Compression module registered

bagian yang berwarna merah menunjukkan, module USB modem telah ter-load ke kernel.

7. Jalankan modem

root@bt:~# wvdial smart 



atau mencoba installer dari saya, jalan secara otomatis tanpa repot-repot melakukan proses diatas, caranya silahkan download aplikasinya

download installer modem smartfren
jika sudah download maka ketikan perintah berikut, saya asumsikan aplikasi sudah dalam satu folder, misalkan di folder download


#sudo su#tar xzvf sandyhackers.tar.gz
#chmod -R 777 sandyhackers
#cd sandyhackers
#sh install.sh   >>>>> lalu colokan modem, tunggu sebentar 10 detik
#sh sandyhackers.sh


tunggu sampai modem anda terkoneksi

Selamat Mencoba

Basic command for linux

PostSubyek: Basic command for linux   Thu Mar 24, 2011 8:51 pmSelect/Unselect multi-quote Balas dengan kutipan Report post to moderator or admin Lock post for new reports

+
----
-
Sistem Operasi Linux semakin digunakan oleh banyak orang karena sifatnya yang open source.
Namun Sistem operasi ini tidak dapat terlepas dari yang namanya command dan console.
Berikut command-command dasar Linux yang perlu untuk dipelajari agar kita dapat menggunakan Linux dengan baik.

cat
Contoh : $ cat namafile
Fungsi : Menampilkan isi dari sebuah file di layar.

cd
Fungsi : Digunakan untuk berpindah direktori seperti fungsi cd dalam windows.

chmod
Contoh : $ chmod 777 namafile/nama direktori
Fungsi : Digunakan untuk menambah dan mengurangi ijin pemakai untuk mengakses file atau direktori.

chown
Fungsi : Digunakan mengganti owner dari suatu file atau direktori.

cp
Contoh : $ cp
Untuk menyalin file atau copy. Misalnya untuk menyalin file1 menjadi file2.

find
Contoh : $ find . -name *.doc -print
Fungsi : Untuk mencari letak sebuah file.

grep
Contoh : $ grep
Fungsi : Digunakan untuk mencari file-file yang mengandung teks dengan kriteria yang telah Anda tentukan

gzip
Contoh : $ gzip
Fungsi : Digunakan untuk mengkompresi sebuah file

kill
Contoh : $ kill
Fungsi : Digunakan untuk menghentikan proses yang sedang berjalan.

ls
Fungsi : Digunakan untuk menampilkan isi dari sebuah direktori seperti command dir dalam windows.

lsmod
Fungsi : Digunakan untuk melihat modul-modul yang ada

rmmod
Fungsi : Digunakan untuk menghapus modul-modul yang ada

mkdir
Contoh : $ mkdir
Fungsi : Digunakan untuk Membuat direktori baru seperti command md di DOS.

mv
Fungsi : Digunakan untuk memindahkan file dari satu lokasi ke lokasi yang lain.

pwd
Fungsi : Digunakan untuk menampilkan nama direktori dimana anda saat itu sedang berada.

passwd
Fungsi : Digunakan untuk mengganti password root.

ps aux
Fungsi : Digunakan untuk melihat proses-proses yang sedang berjalan.

rm
Fungsi : Digunakan untuk menghapus file, tetapi secara default command rm tidak menghapus direktori.

rmdir
Fungsi : Digunakan untuk menghapus direktori kosong.

rpm
Fungsi : Digunakan untuk menginstall file rpm

su
Fungsi : Digunakan untuk login sementara sebagai user lain.

start
Fungsi : Sebuah perintah untuk menjalankan servis.

stop
Fungsi : Sebuah perintah untuk menghentikan servis.

shutdown
Fungsi : Sebuah perintah untuk mematikan sistem.

tar
Contoh : $ tar
Fungsi : Menyimpan dan mengekstrak file dari media seperti tape drive atau hard disk.

unzip
Contoh : $ unzip
Fungsi : Digunakan untuk mengekstrak atau menguraikan file yang dikompres dengan zip.

who
Fungsi : Digunakan untuk menampilkan siapa saja yang sedang login.

tweaking Modem Mobile Broadband Di Linux

ok karena tadi ada yang bilang di linux gak bisa tweaking speed modem, saya sebagai pengguna setia merasa sedikit tersinggung,, HeeeLLLooooo dari mana aja woikkkk... itu yang dipake buat DNS serper sampe Mikocok mikocoknya pake apa... >.< sumpah saya kesalll sangat...

yasudah mari kita lanjut speed Up internet connection from Mobile Broadband Modems.

demo kali ini saya menggunakan Ubuntu 10.10 ( hehehe masih setia sama si Maverick ) walau si developernya udah nyuekin sih &gnet;.<

1. Disconnect semua jenis koneksi yang anda pake

2. buka terminal.

3. untuk mencegah confilct dengan paket ipv6

Type "sudo gedit /etc/modprobe.d/bad_list"

lalu paste perintah ini di dalamnya

alias net-pf-10 off lalu Save.

4.buka terminal lagi.

5. type command : sudo gedit /etc/sysctl.conf <<config paket data

6. setelah file editor terbuka.

7. langsung scrol ke bawah. lalu paste config ini ( sama seperti yang saya pake ) 


Code:

net.core.rmem_default = 524288

net.core.rmem_max = 524288

net.core.wmem_default = 524288

net.core.wmem_max = 524288

net.ipv4.tcp_wmem = 4096 87380 524288

net.ipv4.tcp_rmem = 4096 87380 524288

net.ipv4.tcp_mem = 524288 524288 524288

net.ipv4.tcp_rfc1337 = 1

net.ipv4.ip_no_pmtu_disc = 0

net.ipv4.tcp_sack = 1

net.ipv4.tcp_fack = 1

net.ipv4.tcp_window_scaling = 1

net.ipv4.tcp_timestamps = 1

net.ipv4.tcp_ecn = 0

net.ipv4.route.flush = 1


8. reset config broadband dengan command "sudo sysctl -p"

9. Restart PC.

10. tes download deh saya sarankan kalau ada download dari direct link pake prozgui aja kalau yang lain yahh wget juga gpp...untuk koneksi via Ipv6 belum saya coba karena koneksi di indo rata2 masih make ipv4Speed saya


Source : http://www.black-c0de.org/

Cara terbaru mengatur kustom domain dari Intuit di Blogger

Pada posting kali ini saya akan menjelaskan kepada kamu bagaimana cara seting kustom nama dari Intuit di Blogger.
Ok, langsung saja ikuti langkah-langkah berikut ini.

1. Daftar dulu di http://freedns.afraid.org/signup/
2. Jika sudah klik Domains > Add A Domain into FreeDNS.



3. Masukkan nama domain kamu di situ.



4. Selanjutnya Sign In ke Intuit, setting Nameserver nya menjadi:
ns1.afraid.org
ns2.afraid.org
ns3.afraid.org
ns4.afraid.org 





5. Kemudian Login ke Blogger.
6. Pilih blog yang akan menggunakan nama domain baru.
7. Pergi ke Setelan > Dasar
8. Pada bagian "Penerbitan" klik "Tambahkan domain khusus"
9. Sekarang klik pada bagian "Alihkan ke setelan lanjutan", ketik URL nama domain baru kamu menggunakan awalan "www"
10. Klik "Simpan". Kemudian blogger akan menampilkan error seperti ini "Kami tidak dapat memverifikasi otoritas Anda untuk domain ini. Kesalahan 14."



11. Perhatikan dua kode yang disorot pada gambar di atas. Itu adalah CNAME kepemilikan domain kamu yang nantinya akan digunakan untuk verifikasi kepemilikan domain.
12. Kemudian pada DNS Afraid, Manage domain kamu yang tadi.



13. Atur seperti ini, masukkan IP Blogger & CNAME Blogger kamu yang tadi.



IP Blogger:
216.239.32.21
216.239.34.21
216.239.36.21
216.239.38.21

14. Selanjutnya ke Blogger lagi, masukkan domainnya & Simpan.



15. Selesai. Jika masih menampilkan pesan error, tunggu beberapa jam, kemudian ulangi lagi menambahkan nama domain kamu pada pengaturan Blogger.

Sekarang blog kamu sudah menjadi Top-Level Domain. Semoga bermanfaat.

Pengertian dan Sejarah Cisco Router

Senin, 07 Januari 2013



1. Pengertian Cisco Router 
  
Cisco adalah peralatan utama yang banyak digunakan pada Jaringan Area Luas atau Wide Area Network (WAN). Dengan cisco router, informasi dapat diteruskan ke alamat-alamat yang berjauhan dan berada di jaringan computer yang berlainan. Yang bertujuan untuk dapat meneruskan paket data dari suatu LAN ke LAN lainnya, Cisco router 
menggunakan tabel dan protocol routing yang berfungsi untuk mengatur lalu lintas data. Paket data yang tiba di router diperiksa dan diteruskan ke alamat yang dituju. Agar paket data yang diterima dapat sampai ke tujuannya dengan cepat, router harus memproses data tersebut dengan sangat tepat. Untuk itu, Cisco Router menggunakan Central Processing Unit (CPU) seperti yang digunakan di dalam komputer untuk memproses lalu lintas data tersebut dengan cepat. Seperti komputer, cisco router juga mempunyai sejumlah jenis memori yaitu ROM, RAM, NVRAM
dan FLASH, yang berguna untuk membantu kerjanya CPU. Selain itu dilengkapi pula dengan sejumlah interface untuk berhubungan dengan dunia luar dan keluar masuk data. Sistem operasi yang digunakan oleh cisco router adalah Internetwork Operating System (IOS). Memori yang digunakan oleh cisco router masing-masing mempunyai kegunaan sendiri- sendiri sebagai berikut :

• ROM berguna untuk menyimpan sistem bootstrap yang berfungsi untuk mengatur proses boot dan menjalankan Power On Self Test (POST) dan IOS image.

• RAM berguna untuk menyimpan running configuration dan dan sistem operasi IOS yang aktif.

• NVRAM berguna untuk menyimpan konfigurasi awal (start-up configuration).

• FLASH berguna untuk menyimpan IOS image. Dengan menggunakan FLASH, IOS versi baru dapat diperoleh dari TFTP server tanpa harus mengganti komponen dalam router. 

2. Sejarah Cisco Router
 
Pada awal 1980-an, ada sepasang suami istri yaitu Len dan Sandy Bosack yang dulu bekerja di dua departemen komputer yang berbeda yang terletak di Stanford University. Pasangan ini sedang menghadapi masalah dalam membuat komputer mereka berkomunikasi satu sama lain. Untuk mengatasi masalah ini, mereka membuat sebuah server gateway di ruang tamu mereka yang menuju cara sederhana membuat dua departemen berkomunikasi satu sama lain dengan bantuan protokol IP. Mereka mendirikan cisco Systems (dengan c kecil) pada tahun 1984, memiliki server gateway komersial kecil yang membawa sebuah revolusi dalam Networking. Nama perusahaan diubah menjadi Cisco Systems, Inc pada tahun 1992. Advanced Gateway Server (AGS) adalah produk pertama yang dipasarkan perusahaan. Setelah ini datang Mid-Range Gateway Server (MGS), Compact Gateway Server (cgs), Integrated Gateway Server (IGS) dan AGS +.
        Akhirnya menciptakan router cisco 4000, 7000, 2000, dan 3000 series. Router ini masih ada dan meningkatkan setiap hari. Cisco adalah pemimpin besar dunia ketika datang ke jaringan untuk Internet. Produk perusahaan ini mengarah pada kemudahan dalam mengakses dan mentransfer informasi terlepas dari perbedaan waktu, tempat atau platform. Sertifikasi CCNA adalah sertifikat yang pertama dalam jajaran sertifikasi Cisco dan merupakan pendahulu untuk semua sertifikasi Cisco. Program CCNA dibuat untuk memberikan dasar yang kokoh yang tidak hanya untuk Cisco Internetwork Operating System (IOS) dan hardware Cisco, tetapi juga internetworking secara umum. Untuk mendapatkan Cisco Certified Internetwork Expert (CCIE) maka Ciscon membuat suatu seri sertifikasi, yaitu:
- CCNA (Cisco Certified Network Associate)
- CCNP (Cisco Certified Network Professional)
- CCIE (Cisco Certified Internetwork Expert)
 

Linux Opensource & Phreaking Copyright © 2011-2012 | Powered by Blogger