HOME PROFIL FACEBOOK TWITER

Selasa, 12 Februari 2013

belajar terminal LINUX

dah lama ni w gak posting.....biasa sibuk kerja + kul .....hehehe
iseng ni buat yang belum tau,,,kalo yang udah iiaa gpp (+_+)...


LINUX

1.      Buat user “uas” password “uas123”
[root@localhost ~]# adduseruas
                             # passwd -> uas123
                               
2.      Buat file “tes” denganperintah vi, di direktorimalam
[root@localhost~]#suuas
[uas@localhost root]$cd
[uas@localhost~]$ mkdirmalam
[uas@localhost ~]$cdmalam
[uas@localhostmalam]$vites ->insert->esc-> :wq
                             
3.      Ubahhakakses file “tes” menjadi r---wxrwx
rwx= 421 (dijumlahkan)-> r- - - wxrwx=4,2+1,4+2+1=437
[uas@localhost ~]$ chmod 437 tes
                              $ Ls –Lu

4.      Setting IP addres 10.10.10.3 , IP kelas B
Class
Subnet mask
A
255.0.0.0
B
255.255.0.0
C
255.255.255.0

[uas@localhost ~]$exit
Hidupkanjaringandulu
[root@localhost ~]# /etc/init.d/network start
                              #ifconfig eth0 10.10.10.3netmask 255.255.0.0

5.      Gateway user 17
[root@localhost ~]#route add default gw 10.10.10.17

6.      Masukandirektori “malam” kedalampaket “33”
[uas@localhost ~]$ tar -cf 33 /home/uas/malam

7.      Kirimpaket “33” ke user sebelahanda
[root@localhost ~]#scp –r /home/uas/malam 10.10.10.4 :/home/userlain
8.      Blok semua data ygmasukke user
[root@localhost ~]#iptables –A INPUT Drop atauiptables –A INPUT –s 10.10.10.4 –j DROP

9.      Kirim user kesebelah, bukablokterlebihdahulu
[root@localhost ~]# /etc/init.d/sshd start
                              # ssh 10.10.10.4

1.    Buat symbolic link dari file “test” di direktori user
[root@localhost ~]#ln –s /home/uas/malam/tesuas(nama user)


ini dulu ajee lain kali nanti w posting lagi.....hehehe

Tidak ada komentar:

Posting Komentar