ungu

Minggu, 20 April 2014

tugas ke 2 PKTI 2b

Tugas ke 2
Pertemuan ke 4
Menampilkan dengan format panjang
$ ls-l
Total 16
-rw-r--r--1 kadir alpha 45 mar 6 14:36 file 1.txt
Artinya:
Total 16 : total entri direktori yang di tampilkan dalam satuan blok (1 blok 512 byte}
rw-r-r-1 :hak akses
1 : jumlah link
Kadir :pemilik berkas
Alpha : grup yang boleh mgakses
45 : ukuran berkas (satuan byte)
Mar 6 14:36 : tanggal terakhir berkas dimodifikasi
File 1.txt : nama berkas (file)
Jenis pemakai
Kelompok yang dapat mengakses pada unix ada 3 :
1.      user (owter) : istilah untuk pemakai yang menciptakan file/directori yang bersangkutan
2.      group : kelompok dengan  sejumlah pemakai kelompok ini dapat di bentuk berdasarkan kebutuhan untuk mengakses program aplikasi yang sama atau berdasarkan tempat departemen mereka bekerja.
3.      other : adalah semua pemakai di luar group pemilik
Hak akses/permisi pada file dan direktori ada 3 jenis :
a.       READ (r) :file/directori dapat dibuka dan dibaca
b.      WRITE (w) isi file/directori dapat di edit (ditambah, dikurangi,diubah)
c.       EXECUTE (x) : file dapat di eksekusi
Informasi Hak Akses

Tipe file
     Owner
      group
        Other

posisi
     1
2      3      4
5       6     7
   8       9      10

     -
R     w     x
R       -     -
   R        -       -





Mengubah hak akses dapat dilakukan
1.      perintah chmod (change mode)
Operasi
:
+
Menambah hak


-
Menghapus hak


=
Menyetel hak

Contoh:
$ touch contoh
$ ls-l contoh
-rw-r—r—1 serly alpha 0 nov 11 12:25 contoh
$ chmod g+x contoh               beri hak menjalankan file kepada group
$ ls-l contoh
-rw-r-xr—1 serly alpha 0 nov 11:25 contoh
$ chmod u-w               hapus hak update file kepada user/owner
$ ls-l
-r—r-xr—1 serly alpha 0 nov 11 12:25 contoh
$ ls-l
$ chmod o=x               menyetel hak eksekusi kepada other
$ ls-l
-r--r-x--x 1 serly alpha 0 nov 11 12:25 contoh
2.      dengan bilangan okta

owner


group

      
other

R
w
x
           r
w
x
           r
   w
x
400
200
100
           40 
20
10
          4
    2
1

Contoh:
$ ls-l sample
-rw-r--r­--
$ chmod 352
300 untuk user : w=200  x=100
50 untuk group : r=40    x=10
2 untuk other : x=2
$ ls=l
--wxr-x-w-





TUGAS ke 4 BAHASA INGGRIS BISNIS 2

As many as one thousand years ago in the southwest, the Hopi and Zuni Indians of North America were building with adobe-sun-baked brick pla...