Backbox Linux
  • Backbox Indonesia
  • Get's Started
    • System Requirements
    • Download Images
    • Installation
    • 5 Things To Do Right After Installing BackBox
  • Basic Linux
    • Mengenal GNU/Linux
    • Kenapa Linux?
    • Linux Desktop vs Linux Server
    • Distro Linux
    • Struktur Direktori GNU/Linux
    • Linux File System
  • Basic Command
    • Introduction
      • Terminal
      • Accessing Linux
      • Network Command
      • Important to remember of Linux
      • Change Password
    • Fundamental
      • File System Navigation Commands
      • TAB Completion and Up Arrow
      • Linux Types File
      • Linux Command Syntax
      • Help Commands
      • Creating Files & Directories
      • Files and Directories Permission
      • Files Ownership
      • Access Control List
      • Soft and Hard Links
      • Find Files and Directories
      • Files Maintenance
      • Wildcards
      • File Display Commands
      • Adding Text to Files
      • Pipeline (|)
      • Standard Output to a File (tee)
      • Filters / Text Processors Commands
      • Compare Files
      • Compress and Uncompress File
      • Truncate File Size
      • Combining and Splitting Files
      • Linux vs Windows Commands
    • System Administration
      • Linux File Editor (vi)
      • sed - Command
      • User Account Management
      • Switch Users and Sudo Access
      • Monitor Users
      • Talking to Users
      • System Utility Commands
      • Process and Jobs
      • Addtional cronjobs
      • Process Management
      • System Monitoring Commands
      • System Logs Monitor
      • System Maintenance Commands
      • Changing System Hostname
      • Finding System Information
      • Finding System Architecture
      • Terminal Commands
      • Terminal Control Keys
      • Recover Root Password
      • SOS Report
  • Bash Scripting
    • Environment Variables
    • Apa itu Shell?
    • Basic Shell Scripting
    • Input/Output
    • Percabangan (If)
    • Perulangan (For)
    • Perulangan (While)
    • Percabangan (Case)
    • Fungsi
    • Alias
    • Shell History
  • Networking
    • Untitled
  • Disk Management
    • Untitled
Powered by GitBook
On this page
  • who - Command
  • last - Command
  • w - Command
  • id - Command

Was this helpful?

  1. Basic Command
  2. System Administration

Monitor Users

PreviousSwitch Users and Sudo AccessNextTalking to Users

Last updated 4 years ago

Was this helpful?

Sebagai sistem administrator kita harus melakukan monitoring terhadap user. Maka dari itu kita akan mempelajari bagaimana cara melakukan monitoring user pada Linux.

who - Command

Perintah who digunakan untuk menampilkan siapa saja yang sedang login.

Berikut adalah contoh penggunaan dari perintah who:

who

Terlihat bahwa terdapat 2 user yang sedang aktif beserta informasi waktu login dan dari mana (IP) ia berasal.

last - Command

Dengan perintah last, kita bisa mengetahui siapa saja yang terakhir login beserta statusnya apakah masih aktif atau sudah logout. Perintah last mengambil data dari file /var/log/wtmp.

Berikut adalah contoh penggunaan dari perintah last:

last

w - Command

Perintah w menampilkan siapa saja yang sedang aktif login dan menampilkan apa yang sedang mereka jalankan.

Berikut adalah contoh penggunaan dari perintah w:

w

id - Command

Untuk mengetahui userid, grupid atau grup yang diikuti dari suatu user, kita bisa menggunakan perintah id.

Berikut adalah contoh penggunaan dari perintah id:

id # melihat informasi dari diri sendiri
id <username> # melihat informasi dari user lain