Struktur Sistem Operasi dan Basic Command Linux
Tugas Praktikum 2 Sistem Operasi
Struktur Sistem Operasi
Struktur sistem operasi pada umumnya terbagi menjadi tiga bagian, yaitu:1. Kernel
Suatu perangkat lunak yang menjadi bagian utama dari suatu sistem operasi. Kernel
menyediakan semua fungsi untuk menjalankan proses, juga menyediakan layanan sistem
untuk memberikan pengaturan dan proteksi akses ke sumber daya perangkat keras
termasuk memori virtual. Kernel disebut juga sebagai “jantung” dari sistem operasi.
2. System Library
Kumpulan fungsi standar dimana aplikasi dapat berinteraksi dengan inti suatu sistem
operasi, yaitu Kernel.
3. System Utilities
Program yang bertugas mengatur secara individual, termasuk semua program yang
diperlukan untuk menginisialisasi sistem.
Pada Linux, ada beberapa komponen tambahan yang diadaptasi dari UNIX, antara lain:
- Shell
Shell merupakan fasilitas yang dapat memproses permintaan (request) kita kepada sistem
operasi. Ketika mengetikkan perintah pada Terminal, shell akan menerjemahkan perintah
tersebut dan memanggil program yang kita inginkan sesuai dengan perintah yang kita
ketikkan di Terminal. Beberapa shell yang terkenal dan tersedia di berbagai varian UNIX
antara lain C Shell, Bourne Shell, dan Korn Shell. Adapun shell yang seringkali ditemui saat
ini adalah Bourne-Again Shell.
- Command and Utilities
Dalam suatu sistem operasi, terdapat berbagai perintah dan fasilitas yang bisa digunakan
untuk keperluan sehari-hari dalam pengunaan komputer.
- Files and Directories
Suatu cara yang digunakan UNIX untuk mengelola data menjadi sebuah file, dan
mengelola file ke dalam suatu direktori. Direktori – direktori ini dikelola ke dalam struktur
pohon yang disebut dengan filesystem.
Basic Command Linux
Terdapat beberapa perintah dasar yang perlu diketahui bagi pengguna Linux, dan kali ini saya akan memberikan beberapa contoh perintah tersebut yang telah sa pelajari pada pertemuan kedua praktikum Sistem Operasi. Berikut contoh yang ada:- Untuk membuka jendela terminal, temen-temen bisa buka melalui Dash Menu / Start Menu kemudian ketik "Terminal". Selain itu temen-temen bisa juga membukanya dengan menekan tombol Ctrl+Alt+T.
setelah itu maka akan muncul jendala seperti dibawah ini - Setelah itu temen-temen bisa mengetik perintah-perintah melalui Terminal tersebut. Dibawah ini beberapa contoh perintah yang telah saya pelajari.
- date
- pwd
- mkdir
ini dia folder yang telah kita buat
- cd
Setelah membuat folder, temen-temen bisa masuk ke dalam folder tersebut dengan menggunakan perintah "cd SO/". Kemudian temen-temen bisa cek, apa benar temen-temen berada di dalam folder SO dengan mengetik "pwd".
- touch
berikut file yang sudah kita buat yang ada pada folder SO.
- nano dan cat
"nano fileyangingindiedit"
Untuk melihat isi file yang sudah kita buat tadi, temen-temen cukup mengetik "cat fileyangingindibuka". karena saya ingin membuka file Latihan3.txt maka saya mengetik "cat Latihan3.txt"
"cp namafileutama namafilesalin"
karena saya ingin menyalin file Latihan3.txt dan memberikan nama baru yaitu Latihan4.txt maka saya mengetik
"cp Latihan3.txt Latihan4.txt"
"cp Latihan4.txt /home/tia/SO2/"
penjelasan :
Latihan4.txt : file yang ingin disalin
home/tia/SO2 : direktori
SO2 : nama folder tempat file disalin
"cp -r SO2/ /home/tia/SO/"
karena saya ingin menyalin folder SO2 ke dalam folder SO
- mv
"mv Latihan.txt Latihan5.txt"
- rm
saya akan mencoba menghapus file Latihan5.txt dan folder SO2 yang ada pada folder SO
- ls
temen-temen bisa juga menglihat-lihat bantuan lain dengan mengetik "ls --help"
- clear
pada postingan ini, saya hanya menunjukan beberapa contoh perintah yang telah saya pelajari pada praktikum kedua Sistem Operasi saya.
Terimakasih.
Sumber :
Modul praktikum Sistem Operasi 2016 "Struktur Sistem Operasi dan Basic Command Linux"
http://cs.upi.edu/
http://poss.cs.upi.edu/
http://www.kaplinglinux.com/2008/10/23/mengedit-file-menggunakan-nano-dan-vivim/