1. shutdown -> mematikan komputer
( dalam posisi root )
contoh : # shutdown
kalau mau pake timer ( disini 2 menit ) dalam mematikan komputer
contoh : # shutdown -r +2 ‘komputer segera dimatikan’
contoh : # shutdown
kalau mau pake timer ( disini 2 menit ) dalam mematikan komputer
contoh : # shutdown -r +2 ‘komputer segera dimatikan’
2. ls -> melihat isi direktori (
same like dir in windows )
contoh : $ ls
contoh : $ ls
3. pwd -> Mengetahui Direktori
yang aktif
contoh : $ pwd
contoh : $ pwd
4. cd -> mengubah lokasi
direktori aktif
contoh : $ cd /home (pindah ke direktori home)
contoh : $ cd /home (pindah ke direktori home)
5. mkdir -> membuat direktori
Baru
contoh : $ mkdir tes
contoh : $ mkdir tes
6. rmdir -> menghapus direktori
contoh : $ rmdir tes
contoh : $ rmdir tes
7. cp -> mengkopi Direktori dan
file
contoh : $ cp linka.mp3 /home/sh4d0w/Music
contoh : $ cp linka.mp3 /home/sh4d0w/Music
8. mv -> memindahkan file
contoh : $ mv linka.mp3 /home/sh4d0w/Music
contoh : $ mv linka.mp3 /home/sh4d0w/Music
9. rm -> menghapus File dan
Direktory
contoh : $ rm linka.mp3 //menghapus file
contoh : $ rm -r Hacking //menghapus direktori Hacking
contoh : $ rm linka.mp3 //menghapus file
contoh : $ rm -r Hacking //menghapus direktori Hacking
10. cat -> menampilkan isi file
teks
contoh : $ cat /etc/passwd
contoh : $ cat /etc/passwd
11. more -> menampilkan isi File
Teks per-Halaman Layar
contoh : $ more /etc/passwd
contoh : $ more /etc/passwd
12. less -> Perbaikan Perintah
More
contoh : $ less /etc/passwd
contoh : $ less /etc/passwd
13. Tail -> Melihat Mulai dari
Baris terakhir ( EoF )
contoh : $ tail /etc/passwd
contoh : $ tail /etc/passwd
14. head -> Melihat awal baris
contoh : $ head /etc/passwd
contoh : $ head /etc/passwd
15. find -> mencari Lokasi File
contoh : $ find / -name “pass*”
contoh : $ find / -name “pass*”
16. grep -> mencari Teks dalam
file
contoh : $ grep ‘root’ /etc/passwd
contoh : $ grep ‘root’ /etc/passwd
17. echo -> mencetak Teks ke
Layar
contoh : $ echo ‘halo hacker-newbie’
18. > -> memasukkan teks, overwrite
contoh : $ echo ‘halo hacker-newbie’ > hacker.txt //akan muncul hacker.txt di direktori aktif
contoh : $ echo ‘halo hacker-newbie’
18. > -> memasukkan teks, overwrite
contoh : $ echo ‘halo hacker-newbie’ > hacker.txt //akan muncul hacker.txt di direktori aktif
19. >> -> Memasukkan teks,
Append
contoh : $ echo ‘buahahahahaa’ >> hacker.txt
$ cat hacker.txt
halo hacker-newbie
buahahahahaa
contoh : $ echo ‘buahahahahaa’ >> hacker.txt
$ cat hacker.txt
halo hacker-newbie
buahahahahaa
20. nano -> editor file teks. (
editor kesukaan saya )
contoh : $ nano /etc/X11/xorg.conf
contoh : $ nano /etc/X11/xorg.conf
21. &,jobs -> menjalankan
Perintah di Background
contoh : # shutdown -r +15 &
# jobs
[1]+ Running shutdown -r +15 &
contoh : # shutdown -r +15 &
# jobs
[1]+ Running shutdown -r +15 &
22. ps -> Melihat proses yang
berjalan
contoh : $ ps
18246 pts/1 00:00:00 bash
contoh : $ ps
18246 pts/1 00:00:00 bash
23. kill -> Menghentikan proses
contoh : # shutdown -r +15 &
# ps -ef | grep ‘shutdown’
root 20473 20448 0 02:42 pts/2 00:00:00 shutdown -r +15
#kill 20473
contoh : # shutdown -r +15 &
# ps -ef | grep ‘shutdown’
root 20473 20448 0 02:42 pts/2 00:00:00 shutdown -r +15
#kill 20473
24. ; -> Pemisah antar perintah
contoh : $ whoami; hostname; ls -l
contoh : $ whoami; hostname; ls -l
25. | (pipe) -> komunikasi antar
proses
contoh : $ cat /etc/passwd | grep root
contoh : $ cat /etc/passwd | grep root
26. whatis -> deskripsi singkat
suatu perintah
contoh : $ whatis ls
contoh : $ whatis ls
27. man -> manual dari suatu
perintah ( paling sering dipakai )
contoh : $ man ls
contoh : $ man ls
=====================================================
Manajemen
Paket
29. dpkg [parameter] -> install
paket secara offline
contoh : # dpkg -i nama_paket.deb
30. dpkg -r nama_paket.deb ->
meng-uninstall paket .deb (hasil installasi offline)
31. # apt-get install ->
menginstall paket secara online
32. # apt-get remove
->uninstall paket
33. # apt-get update ->
mengupdate repositori
34. # apt-get upgrade -> meng-upgrade
semua paket ke versi terbaru
35. # apt-get dist-upgrade ->
meng-upgrade semua paket ke versi terbaru, jika di perlukan akan meng-install
paket baru.
Tidak ada komentar:
Posting Komentar