{"id":5583,"date":"2025-08-11T20:06:17","date_gmt":"2025-08-11T13:06:17","guid":{"rendered":"http:\/\/materi.smkn43jkt.sch.id\/?p=5583"},"modified":"2025-08-11T20:15:45","modified_gmt":"2025-08-11T13:15:45","slug":"100-perintah-dasar-linux","status":"publish","type":"post","link":"http:\/\/materi.smkn43jkt.sch.id\/?p=5583","title":{"rendered":"100 Perintah dasar linux"},"content":{"rendered":"<p>Berikut adalah <strong>100 perintah Linux beserta fungsi dan contoh penggunaannya<\/strong>, dikelompokkan berdasarkan kategori agar mudah dipelajari.<\/p>\n<hr \/>\n<h1>\ud83d\udcc1 <strong>I. Perintah Navigasi dan File System (Direktori dan File)<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>1<\/td>\n<td><code>pwd<\/code><\/td>\n<td>Menampilkan direktori saat ini<\/td>\n<td><code>pwd<\/code><\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td><code>ls<\/code><\/td>\n<td>Melihat isi direktori<\/td>\n<td><code>ls \/home<\/code><\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td><code>cd<\/code><\/td>\n<td>Berpindah direktori<\/td>\n<td><code>cd \/etc<\/code><\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td><code>cd ..<\/code><\/td>\n<td>Naik ke direktori atas<\/td>\n<td><code>cd ..<\/code><\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td><code>mkdir<\/code><\/td>\n<td>Membuat direktori<\/td>\n<td><code>mkdir folderku<\/code><\/td>\n<\/tr>\n<tr>\n<td>6<\/td>\n<td><code>rmdir<\/code><\/td>\n<td>Menghapus direktori kosong<\/td>\n<td><code>rmdir folderku<\/code><\/td>\n<\/tr>\n<tr>\n<td>7<\/td>\n<td><code>rm -r<\/code><\/td>\n<td>Menghapus direktori dan isinya<\/td>\n<td><code>rm -r folderku<\/code><\/td>\n<\/tr>\n<tr>\n<td>8<\/td>\n<td><code>touch<\/code><\/td>\n<td>Membuat file kosong<\/td>\n<td><code>touch catatan.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>9<\/td>\n<td><code>cp<\/code><\/td>\n<td>Menyalin file\/direktori<\/td>\n<td><code>cp a.txt b.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>10<\/td>\n<td><code>mv<\/code><\/td>\n<td>Memindahkan\/mengganti nama file<\/td>\n<td><code>mv a.txt b.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>11<\/td>\n<td><code>rm<\/code><\/td>\n<td>Menghapus file<\/td>\n<td><code>rm file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>12<\/td>\n<td><code>find<\/code><\/td>\n<td>Mencari file\/direktori<\/td>\n<td><code>find \/ -name \"log.txt\"<\/code><\/td>\n<\/tr>\n<tr>\n<td>13<\/td>\n<td><code>locate<\/code><\/td>\n<td>Mencari file cepat (pakai database)<\/td>\n<td><code>locate passwd<\/code><\/td>\n<\/tr>\n<tr>\n<td>14<\/td>\n<td><code>stat<\/code><\/td>\n<td>Menampilkan info detail file<\/td>\n<td><code>stat file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>15<\/td>\n<td><code>file<\/code><\/td>\n<td>Menampilkan tipe file<\/td>\n<td><code>file file.txt<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83d\udcc4 <strong>II. Perintah Melihat dan Mengedit File<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>16<\/td>\n<td><code>cat<\/code><\/td>\n<td>Melihat isi file<\/td>\n<td><code>cat file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>17<\/td>\n<td><code>more<\/code><\/td>\n<td>Melihat isi file per halaman<\/td>\n<td><code>more file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>18<\/td>\n<td><code>less<\/code><\/td>\n<td>Melihat file lebih interaktif<\/td>\n<td><code>less file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>19<\/td>\n<td><code>head<\/code><\/td>\n<td>Menampilkan 10 baris pertama<\/td>\n<td><code>head file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>20<\/td>\n<td><code>tail<\/code><\/td>\n<td>Menampilkan 10 baris terakhir<\/td>\n<td><code>tail file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>21<\/td>\n<td><code>tail -f<\/code><\/td>\n<td>Melihat log real-time<\/td>\n<td><code>tail -f \/var\/log\/syslog<\/code><\/td>\n<\/tr>\n<tr>\n<td>22<\/td>\n<td><code>nano<\/code><\/td>\n<td>Editor teks CLI<\/td>\n<td><code>nano file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>23<\/td>\n<td><code>vim<\/code><\/td>\n<td>Editor teks canggih<\/td>\n<td><code>vim file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>24<\/td>\n<td><code>echo<\/code><\/td>\n<td>Menulis teks ke file<\/td>\n<td><code>echo \"Halo Dunia\" &gt; hello.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>25<\/td>\n<td><code>tee<\/code><\/td>\n<td>Menyimpan sekaligus tampilkan output<\/td>\n<td>`echo &#8220;log&#8221;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83d\udc64 <strong>III. Manajemen Pengguna dan Grup<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>26<\/td>\n<td><code>adduser<\/code><\/td>\n<td>Menambah user baru<\/td>\n<td><code>adduser siswa1<\/code><\/td>\n<\/tr>\n<tr>\n<td>27<\/td>\n<td><code>useradd<\/code><\/td>\n<td>Alternatif adduser<\/td>\n<td><code>useradd siswa2<\/code><\/td>\n<\/tr>\n<tr>\n<td>28<\/td>\n<td><code>passwd<\/code><\/td>\n<td>Mengubah password user<\/td>\n<td><code>passwd siswa1<\/code><\/td>\n<\/tr>\n<tr>\n<td>29<\/td>\n<td><code>deluser<\/code><\/td>\n<td>Menghapus user<\/td>\n<td><code>deluser siswa1<\/code><\/td>\n<\/tr>\n<tr>\n<td>30<\/td>\n<td><code>usermod<\/code><\/td>\n<td>Modifikasi user<\/td>\n<td><code>usermod -aG sudo siswa1<\/code><\/td>\n<\/tr>\n<tr>\n<td>31<\/td>\n<td><code>whoami<\/code><\/td>\n<td>Menampilkan user saat ini<\/td>\n<td><code>whoami<\/code><\/td>\n<\/tr>\n<tr>\n<td>32<\/td>\n<td><code>id<\/code><\/td>\n<td>Menampilkan ID user &amp; grup<\/td>\n<td><code>id siswa1<\/code><\/td>\n<\/tr>\n<tr>\n<td>33<\/td>\n<td><code>groups<\/code><\/td>\n<td>Menampilkan grup user<\/td>\n<td><code>groups siswa1<\/code><\/td>\n<\/tr>\n<tr>\n<td>34<\/td>\n<td><code>groupadd<\/code><\/td>\n<td>Membuat grup baru<\/td>\n<td><code>groupadd guru<\/code><\/td>\n<\/tr>\n<tr>\n<td>35<\/td>\n<td><code>delgroup<\/code><\/td>\n<td>Menghapus grup<\/td>\n<td><code>delgroup guru<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83d\udd10 <strong>IV. Hak Akses File dan Permission<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>36<\/td>\n<td><code>chmod<\/code><\/td>\n<td>Mengubah hak akses file<\/td>\n<td><code>chmod 755 file.sh<\/code><\/td>\n<\/tr>\n<tr>\n<td>37<\/td>\n<td><code>chown<\/code><\/td>\n<td>Mengubah pemilik file<\/td>\n<td><code>chown siswa1 file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>38<\/td>\n<td><code>chgrp<\/code><\/td>\n<td>Mengubah grup file<\/td>\n<td><code>chgrp guru file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>39<\/td>\n<td><code>umask<\/code><\/td>\n<td>Menentukan permission default<\/td>\n<td><code>umask 022<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83d\udd27 <strong>V. Manajemen Paket (APT)<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>40<\/td>\n<td><code>apt update<\/code><\/td>\n<td>Memperbarui daftar paket<\/td>\n<td><code>sudo apt update<\/code><\/td>\n<\/tr>\n<tr>\n<td>41<\/td>\n<td><code>apt upgrade<\/code><\/td>\n<td>Meng-upgrade semua paket<\/td>\n<td><code>sudo apt upgrade<\/code><\/td>\n<\/tr>\n<tr>\n<td>42<\/td>\n<td><code>apt install<\/code><\/td>\n<td>Menginstall paket<\/td>\n<td><code>sudo apt install apache2<\/code><\/td>\n<\/tr>\n<tr>\n<td>43<\/td>\n<td><code>apt remove<\/code><\/td>\n<td>Menghapus paket<\/td>\n<td><code>sudo apt remove apache2<\/code><\/td>\n<\/tr>\n<tr>\n<td>44<\/td>\n<td><code>apt purge<\/code><\/td>\n<td>Hapus paket + config<\/td>\n<td><code>sudo apt purge apache2<\/code><\/td>\n<\/tr>\n<tr>\n<td>45<\/td>\n<td><code>apt autoremove<\/code><\/td>\n<td>Hapus paket tidak diperlukan<\/td>\n<td><code>sudo apt autoremove<\/code><\/td>\n<\/tr>\n<tr>\n<td>46<\/td>\n<td><code>dpkg -i<\/code><\/td>\n<td>Install .deb file<\/td>\n<td><code>sudo dpkg -i paket.deb<\/code><\/td>\n<\/tr>\n<tr>\n<td>47<\/td>\n<td><code>dpkg -l<\/code><\/td>\n<td>Lihat paket terinstal<\/td>\n<td>`dpkg -l<\/td>\n<\/tr>\n<tr>\n<td>48<\/td>\n<td><code>apt-cache search<\/code><\/td>\n<td>Cari nama paket<\/td>\n<td><code>apt-cache search samba<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83d\udda5\ufe0f <strong>VI. Proses dan Sistem<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>49<\/td>\n<td><code>ps<\/code><\/td>\n<td>Lihat proses yang berjalan<\/td>\n<td><code>ps aux<\/code><\/td>\n<\/tr>\n<tr>\n<td>50<\/td>\n<td><code>top<\/code><\/td>\n<td>Lihat proses real-time<\/td>\n<td><code>top<\/code><\/td>\n<\/tr>\n<tr>\n<td>51<\/td>\n<td><code>htop<\/code><\/td>\n<td>Tampilan proses interaktif (perlu install)<\/td>\n<td><code>htop<\/code><\/td>\n<\/tr>\n<tr>\n<td>52<\/td>\n<td><code>kill<\/code><\/td>\n<td>Menghentikan proses<\/td>\n<td><code>kill 1234<\/code><\/td>\n<\/tr>\n<tr>\n<td>53<\/td>\n<td><code>killall<\/code><\/td>\n<td>Menghentikan proses berdasarkan nama<\/td>\n<td><code>killall firefox<\/code><\/td>\n<\/tr>\n<tr>\n<td>54<\/td>\n<td><code>nice<\/code><\/td>\n<td>Menjalankan proses dengan prioritas<\/td>\n<td><code>nice -n 10 script.sh<\/code><\/td>\n<\/tr>\n<tr>\n<td>55<\/td>\n<td><code>renice<\/code><\/td>\n<td>Ubah prioritas proses<\/td>\n<td><code>renice -n 5 -p 1234<\/code><\/td>\n<\/tr>\n<tr>\n<td>56<\/td>\n<td><code>uptime<\/code><\/td>\n<td>Menampilkan lama waktu sistem menyala<\/td>\n<td><code>uptime<\/code><\/td>\n<\/tr>\n<tr>\n<td>57<\/td>\n<td><code>uname -a<\/code><\/td>\n<td>Info sistem kernel<\/td>\n<td><code>uname -a<\/code><\/td>\n<\/tr>\n<tr>\n<td>58<\/td>\n<td><code>hostname<\/code><\/td>\n<td>Menampilkan hostname sistem<\/td>\n<td><code>hostname<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83d\udcbd <strong>VII. Disk dan Storage<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>59<\/td>\n<td><code>df -h<\/code><\/td>\n<td>Menampilkan penggunaan disk<\/td>\n<td><code>df -h<\/code><\/td>\n<\/tr>\n<tr>\n<td>60<\/td>\n<td><code>du -sh<\/code><\/td>\n<td>Ukuran folder\/file<\/td>\n<td><code>du -sh \/home<\/code><\/td>\n<\/tr>\n<tr>\n<td>61<\/td>\n<td><code>mount<\/code><\/td>\n<td>Melihat\/memasang sistem file<\/td>\n<td><code>mount \/dev\/sdb1 \/mnt<\/code><\/td>\n<\/tr>\n<tr>\n<td>62<\/td>\n<td><code>umount<\/code><\/td>\n<td>Melepas mount<\/td>\n<td><code>umount \/mnt<\/code><\/td>\n<\/tr>\n<tr>\n<td>63<\/td>\n<td><code>lsblk<\/code><\/td>\n<td>Melihat info disk &amp; partisi<\/td>\n<td><code>lsblk<\/code><\/td>\n<\/tr>\n<tr>\n<td>64<\/td>\n<td><code>fdisk -l<\/code><\/td>\n<td>Menampilkan partisi<\/td>\n<td><code>sudo fdisk -l<\/code><\/td>\n<\/tr>\n<tr>\n<td>65<\/td>\n<td><code>mkfs<\/code><\/td>\n<td>Membuat sistem file<\/td>\n<td><code>mkfs.ext4 \/dev\/sdb1<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83c\udf10 <strong>VIII. Jaringan<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>66<\/td>\n<td><code>ip a<\/code><\/td>\n<td>Menampilkan IP address<\/td>\n<td><code>ip a<\/code><\/td>\n<\/tr>\n<tr>\n<td>67<\/td>\n<td><code>ifconfig<\/code><\/td>\n<td>Info jaringan (perlu install net-tools)<\/td>\n<td><code>ifconfig<\/code><\/td>\n<\/tr>\n<tr>\n<td>68<\/td>\n<td><code>ping<\/code><\/td>\n<td>Mengecek koneksi<\/td>\n<td><code>ping google.com<\/code><\/td>\n<\/tr>\n<tr>\n<td>69<\/td>\n<td><code>traceroute<\/code><\/td>\n<td>Menelusuri rute jaringan<\/td>\n<td><code>traceroute google.com<\/code><\/td>\n<\/tr>\n<tr>\n<td>70<\/td>\n<td><code>nslookup<\/code><\/td>\n<td>Cek DNS domain<\/td>\n<td><code>nslookup google.com<\/code><\/td>\n<\/tr>\n<tr>\n<td>71<\/td>\n<td><code>dig<\/code><\/td>\n<td>DNS lookup lanjutan<\/td>\n<td><code>dig openai.com<\/code><\/td>\n<\/tr>\n<tr>\n<td>72<\/td>\n<td><code>wget<\/code><\/td>\n<td>Unduh file dari internet<\/td>\n<td><code>wget http:\/\/contoh.com\/file.zip<\/code><\/td>\n<\/tr>\n<tr>\n<td>73<\/td>\n<td><code>curl<\/code><\/td>\n<td>Kirim permintaan HTTP<\/td>\n<td><code>curl https:\/\/openai.com<\/code><\/td>\n<\/tr>\n<tr>\n<td>74<\/td>\n<td><code>scp<\/code><\/td>\n<td>Copy file antar server<\/td>\n<td><code>scp file.txt user@192.168.1.1:\/home\/user\/<\/code><\/td>\n<\/tr>\n<tr>\n<td>75<\/td>\n<td><code>ssh<\/code><\/td>\n<td>Remote login ke server<\/td>\n<td><code>ssh user@192.168.1.1<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83d\udd12 <strong>IX. Keamanan dan Firewall<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>76<\/td>\n<td><code>ufw enable<\/code><\/td>\n<td>Mengaktifkan firewall<\/td>\n<td><code>sudo ufw enable<\/code><\/td>\n<\/tr>\n<tr>\n<td>77<\/td>\n<td>`ufw allow<\/td>\n<td><code> Membuka port<\/code><\/td>\n<td>sudo ufw allow 22<\/td>\n<\/tr>\n<tr>\n<td>78<\/td>\n<td>ufw deny<\/td>\n<td><code>Menutup port<\/code><\/td>\n<td>sudo ufw deny 80<\/td>\n<\/tr>\n<tr>\n<td>79<\/td>\n<td>ufw status<\/td>\n<td><code>Lihat status firewall<\/code><\/td>\n<td>sudo ufw status<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<hr \/>\n<h1>\ud83e\uddf9 <strong>X. System Management &amp; Maintenance<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>80<\/td>\n<td><code>reboot<\/code><\/td>\n<td>Reboot sistem<\/td>\n<td><code>sudo reboot<\/code><\/td>\n<\/tr>\n<tr>\n<td>81<\/td>\n<td><code>shutdown<\/code><\/td>\n<td>Mematikan sistem<\/td>\n<td><code>sudo shutdown now<\/code><\/td>\n<\/tr>\n<tr>\n<td>82<\/td>\n<td><code>systemctl<\/code><\/td>\n<td>Kelola layanan systemd<\/td>\n<td><code>systemctl restart apache2<\/code><\/td>\n<\/tr>\n<tr>\n<td>83<\/td>\n<td><code>journalctl<\/code><\/td>\n<td>Lihat log sistem<\/td>\n<td><code>journalctl -xe<\/code><\/td>\n<\/tr>\n<tr>\n<td>84<\/td>\n<td><code>cron<\/code><\/td>\n<td>Menjadwalkan tugas<\/td>\n<td><code>crontab -e<\/code><\/td>\n<\/tr>\n<tr>\n<td>85<\/td>\n<td><code>at<\/code><\/td>\n<td>Menjalankan tugas sekali<\/td>\n<td>`echo &#8220;shutdown now&#8221;<\/td>\n<\/tr>\n<tr>\n<td>86<\/td>\n<td><code>alias<\/code><\/td>\n<td>Membuat alias perintah<\/td>\n<td><code>alias ll='ls -lah'<\/code><\/td>\n<\/tr>\n<tr>\n<td>87<\/td>\n<td><code>history<\/code><\/td>\n<td>Menampilkan riwayat perintah<\/td>\n<td><code>history<\/code><\/td>\n<\/tr>\n<tr>\n<td>88<\/td>\n<td><code>clear<\/code><\/td>\n<td>Membersihkan terminal<\/td>\n<td><code>clear<\/code><\/td>\n<\/tr>\n<tr>\n<td>89<\/td>\n<td><code>date<\/code><\/td>\n<td>Menampilkan waktu<\/td>\n<td><code>date<\/code><\/td>\n<\/tr>\n<tr>\n<td>90<\/td>\n<td><code>cal<\/code><\/td>\n<td>Menampilkan kalender<\/td>\n<td><code>cal<\/code><\/td>\n<\/tr>\n<tr>\n<td>91<\/td>\n<td><code>uptime<\/code><\/td>\n<td>Menampilkan waktu aktif sistem<\/td>\n<td><code>uptime<\/code><\/td>\n<\/tr>\n<tr>\n<td>92<\/td>\n<td><code>free -h<\/code><\/td>\n<td>Menampilkan penggunaan RAM<\/td>\n<td><code>free -h<\/code><\/td>\n<\/tr>\n<tr>\n<td>93<\/td>\n<td><code>env<\/code><\/td>\n<td>Menampilkan variabel lingkungan<\/td>\n<td><code>env<\/code><\/td>\n<\/tr>\n<tr>\n<td>94<\/td>\n<td><code>export<\/code><\/td>\n<td>Mengatur variabel lingkungan<\/td>\n<td><code>export VAR=value<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h1>\ud83e\uddea <strong>XI. Miscellaneous<\/strong><\/h1>\n<table>\n<thead>\n<tr>\n<th>No<\/th>\n<th>Perintah<\/th>\n<th>Fungsi<\/th>\n<th>Contoh<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>95<\/td>\n<td><code>yes<\/code><\/td>\n<td>Mencetak &#8220;yes&#8221; terus-menerus<\/td>\n<td><code>yes<\/code><\/td>\n<\/tr>\n<tr>\n<td>96<\/td>\n<td><code>sleep<\/code><\/td>\n<td>Menunggu dalam detik<\/td>\n<td><code>sleep 5<\/code><\/td>\n<\/tr>\n<tr>\n<td>97<\/td>\n<td><code>watch<\/code><\/td>\n<td>Menjalankan perintah berulang<\/td>\n<td><code>watch df -h<\/code><\/td>\n<\/tr>\n<tr>\n<td>98<\/td>\n<td><code>basename<\/code><\/td>\n<td>Mengambil nama file dari path<\/td>\n<td><code>basename \/home\/file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>99<\/td>\n<td><code>dirname<\/code><\/td>\n<td>Mengambil nama direktori<\/td>\n<td><code>dirname \/home\/file.txt<\/code><\/td>\n<\/tr>\n<tr>\n<td>100<\/td>\n<td><code>xargs<\/code><\/td>\n<td>Membaca input sebagai argumen<\/td>\n<td>`cat list.txt<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Berikut adalah 100 perintah Linux beserta fungsi dan contoh penggunaannya, dikelompokkan berdasarkan kategori agar mudah dipelajari. \ud83d\udcc1 I. Perintah Navigasi dan File System (Direktori dan File) No Perintah Fungsi Contoh 1 pwd Menampilkan direktori saat ini pwd 2 ls Melihat isi direktori ls \/home 3 cd Berpindah direktori cd \/etc 4 cd .. Naik ke [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,20,34,32],"tags":[],"_links":{"self":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5583"}],"collection":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5583"}],"version-history":[{"count":3,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5583\/revisions"}],"predecessor-version":[{"id":5590,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=\/wp\/v2\/posts\/5583\/revisions\/5590"}],"wp:attachment":[{"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5583"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/materi.smkn43jkt.sch.id\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}