Jumat, 03 Desember 2010

Dasar2 linux

mum

  • Run top in one terminal while you do the exercises in another. Jalankan teratas dalam satu terminal saat Anda melakukan latihan di tempat lain.

  • Run the ps command. Jalankan perintah ps.

  • Read the man pages to find out how to display all your processes. Baca halaman manual untuk mencari tahu bagaimana untuk menampilkan semua proses Anda.

  • Run the command find / . Jalankan perintah find /. What effect does it have on system load? Apa pengaruhnya apakah itu terhadap load sistem? Stop this command. Berhenti perintah ini.

  • In graphical mode, start the xclock program in the foreground. Dalam mode grafis, memulai program xclock di latar depan. Then let it run in the background. Lalu biarkan berjalan di latar belakang. Stop the program using the kill command. Hentikan program menggunakan perintah kill.

  • Run the xcalc directly in the background, so that the prompt of the issuing terminal is released. Jalankan xcalc langsung di latar belakang, sehingga prompt dari terminal menerbitkan dilepaskan.

  • What does kill -9 -1 do? Apa kill -9 -1 lakukan?

  • Open two terminals or terminal windows again and use write to send a message from one to the other. Buka dua terminal atau jendela terminal lagi dan menggunakan menulis untuk mengirim pesan dari satu ke yang lain.

  • Issue the dmesg command. Masalah perintah dmesg. What does it tell? Apa tahu?

  • How long does it take to execute ls in the current directory? Berapa lama waktu yang diperlukan untuk menjalankan ls di direktori saat ini?

  • Based on process entries in /proc , owned by your UID, how would you work to find out which processes these actually represent? Berdasarkan proses entri di / proc, yang dimiliki oleh UID Anda, bagaimana Anda bekerja untuk mengetahui proses-proses ini benar-benar mewakili?

  • How long has your system been running? Berapa lama Anda sistem telah berjalan?

  • Which is your current TTY? Yang Anda TTY saat ini?

  • Name 3 processes that couldn't have had init as an initial parent. Nama 3 proses yang tidak bisa memiliki init sebagai orang tua awal.

  • Name 3 commands which use SUID mode. Nama 3 perintah yang menggunakan modus SUID. Explain why this is so. Jelaskan mengapa demikian.

  • Name the commands that are generally causing the highest load on your system. Nama perintah yang umumnya menyebabkan beban tertinggi pada sistem anda.

@

Booting, init dll

  • Can you reboot the system as a normal user? Dapatkah anda reboot sistem sebagai user biasa? Why is that? Kenapa begitu?

  • According to your current run level, name the steps that are taken during shutdown. Menurut runlevel Anda saat ini, nama langkah-langkah yang diambil selama shutdown.

  • How do you change the system run level? Bagaimana Anda mengubah tingkat menjalankan sistem? Switch from your default run level to run level 1 and vice versa. Beralih dari runlevel default ke run level 1 dan sebaliknya.

  • Make a list of all the services and daemons that are started up when your system has booted. Buatlah daftar semua layanan dan daemon yang dimulai ketika sistem anda boot.

  • Which kernel is currently load at startup? Yang kernel saat ini beban pada saat startup?

  • Suppose you have to start some exotic server at boot time. Misalkan anda harus mulai beberapa server eksotis pada saat boot. Up until now, you logged in after booting the system and started this server manually using a script named deliver_pizza in your home directory. Sampai sekarang, Anda login setelah boot sistem dan mulai server secara manual menggunakan skrip bernama deliver_pizza di direktori home Anda. What do you have to do in order to have the service start up automatically in run level 4, which you defined for this purpose only? Apa yang harus Anda lakukan dalam rangka untuk memiliki layanan start up secara otomatis di tingkat, jalankan 4 yang Anda ditetapkan untuk tujuan ini saja?

@

Penjadwalan

  • Use sleep to create a reminder that your pasta is ready in ten minutes. Gunakan tidur untuk menciptakan sebuah pengingat bahwa pasta anda sudah siap dalam sepuluh menit.

  • Create an at job that copies all files in your home directory to /var/tmp within half an hour. Buat pada pekerjaan yang salinan semua file dalam direktori home anda ke / var / tmp dalam waktu setengah jam. You may want to create a sub-directory in /var/tmp . Anda mungkin ingin membuat sub-direktori di / var / tmp.

  • Make a cronjob that does this task every Monday to Friday during lunch. Membuat tugas cron yang melakukan tugas ini setiap hari Senin sampai Jumat saat makan siang.

  • Check that it works. Periksa bahwa ia bekerja.

  • Make a mistake in the crontab entry, like issuing the nonexistent command coppy instead of cp . Membuat kesalahan dalam entri crontab, seperti mengeluarkan perintah tidak ada coppy bukan cp. What happens upon execution of the task? Apa yang terjadi pada saat pelaksanaan tugas?

from http://www.tldp.org

Tidak ada komentar:

Posting Komentar