{"id":376,"date":"2018-04-16T13:00:32","date_gmt":"2018-04-16T13:00:32","guid":{"rendered":"http:\/\/kloxo.web.id\/?p=376"},"modified":"2018-04-16T13:01:58","modified_gmt":"2018-04-16T13:01:58","slug":"mencari-siapa-yang-menjalankan-apa-dan-kapan-di-linux","status":"publish","type":"post","link":"https:\/\/kloxo.web.id\/?p=376","title":{"rendered":"Mencari siapa? yang menjalankan apa? dan kapan? di linux?"},"content":{"rendered":"<p>Admin linux minimal harus tau siapa? menjalankan perintah apa? dan kapan? pada server linux nya? dan kebanyakan juga belum tau bagaimana caranya memeriksa history cli, termasuk &#8216;aldy&#8217;&#8230;he he he<\/p>\n<p>Oke, let&#8217;s start :<br \/>\n1. perintah pertama adalah :<\/p>\n<p>root@localhost ~]# history (enter)<\/p>\n<p>akan menampilkan perintah yang pernah dijalankan oleh user root, diurutkan berdasar nomor urut. perintah ini bisa ditambahkan &#8216;| more&#8217; atau &#8216;less&#8217; :<\/p>\n<p>root@localhost ~]# history | more<\/p>\n<p>root@localhost ~]# less \/root\/.bash_history<\/p>\n<p>atau bila dikehendaki juga untuk memeriksa command yang dijalankan oleh user lainnya :<\/p>\n<p>root@localhost ~]# less \/home\/nama_user\/.bash_history<\/p>\n<p>2. untuk menampilkan juga tanggal dan jam waktu perintah tersebut dijalankan :<\/p>\n<p>root@localhost ~]# HISTTIMEFORMAT=&#8221;%y\/%m\/%d %T &#8221; (enter)<\/p>\n<p>atau <\/p>\n<p>echo &#8216;export HISTTIMEFORMAT=&#8221;%y\/%m\/%d %T &#8220;&#8216; >> ~\/.bashrc<\/p>\n<p>maka ketika &#8216;history&#8217; dipanggil ulang akan muncul lengkap dengan tanggal dan jam nya :<\/p>\n<p>1009  18\/04\/16 19:05:02 less \/root\/.bash_history<br \/>\n1010  18\/04\/16 19:05:12 history<br \/>\n1011  18\/04\/16 19:05:29 history | more<\/p>\n<p>oke, selamat berburu history command yang dijalankan oleh user di sistem linux anda, dan DWYOR ya!<\/p>\n<p>(https:\/\/servernesia.com\/2321\/melihat-riwayat-perintah-linux\/)<br \/>\n(https:\/\/servernesia.com\/2684\/menambahkan-waktu-riwayat-perintah-shell\/)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Admin linux minimal harus tau siapa? menjalankan perintah apa? dan kapan? pada server linux nya? dan kebanyakan juga belum tau bagaimana caranya memeriksa history cli, termasuk &#8216;aldy&#8217;&#8230;he he he Oke, let&#8217;s start : 1. perintah pertama adalah : root@localhost ~]# history (enter) akan menampilkan perintah yang pernah dijalankan oleh user root, diurutkan berdasar nomor urut. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-linux-server"],"_links":{"self":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=376"}],"version-history":[{"count":2,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions"}],"predecessor-version":[{"id":378,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions\/378"}],"wp:attachment":[{"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kloxo.web.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}