Category Archives: Linux

eth0 missing

ip link show sudo ifup eth0 (eth yang tampil pada ip show) kemudian rubah ip di /etc/network/interface

ip

[code language=”shell”] auto eth1 iface eth1 inet static address 192.168.1.56 network 192.168.1.0 netmask 255.255.255.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameserver 192.168.1.1 [/code]

SSH / Transfer File

Secure Copy (scp) : [code language=”shell”] scp -P 8222 filename username@ipaddress:/home/ballack scp -r /home/system/ username@ipaddress:/home/ballack/ scp -r username@ipaddress:/home/ballack/hehe.jpg . [/code]

tar gz file/folder

Tar without compress : [code language=”shell”] tar -cf namafile.tar.gz file1 file2 folder1 folder2 [/code] Extract without compressed: [code language=”shell”] tar -xf namafile.tar.gz [/code] Tar with Compress : [code language=”shell”] tar -czf namafile.tar.gz file1 file2 folder1 folder2 [/code] Extract with compressed: [code language=”shell”] tar -xzf namafile.tar.gz [/code]