Difference between revisions of "Perintah Linux T"
Jump to navigation
Jump to search
Adinugroho (talk | contribs) (→Contoh) |
Gibransyah (talk | contribs) (→time) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 47: | Line 47: | ||
=talkd= | =talkd= | ||
=tar= | =tar= | ||
+ | Perangkat kompresi berkas | ||
+ | |||
+ | * Kompres file log.txt yang besarnya 100 MB agar mudah diemail | ||
+ | $ tar -cvzf log.tar.gz log.txt | ||
+ | |||
+ | * Ekstrak kembali berkas tersebut | ||
+ | $ tar -xvf log.tar.gz | ||
+ | |||
=taskset= | =taskset= | ||
=tcpd= | =tcpd= | ||
Line 54: | Line 62: | ||
=telinit= | =telinit= | ||
=telnet= | =telnet= | ||
+ | Antarmuka untuk protokol TELNET | ||
+ | |||
+ | * Test apakah port 80 tidak di blok oleh firewall | ||
+ | $ telnet telkomspeedy.com 80 | ||
+ | |||
=telnetd= | =telnetd= | ||
=test= | =test= | ||
Line 59: | Line 72: | ||
=tftpd= | =tftpd= | ||
=time= | =time= | ||
+ | Menjalankan program dan merangkum besar penggunaan sumberdaya sistem | ||
+ | |||
+ | biasanya digunakan untuk mengukur lama eksekusi suatu program. | ||
+ | |||
+ | * Hitung waktu dari switch dipicu hingga roket berhasil meluncur | ||
+ | |||
+ | time ./rocket_launcher.sh | ||
+ | real 0m1.692s | ||
+ | user 0m0.000s | ||
+ | sys 0m0.000s | ||
+ | |||
=tload= | =tload= | ||
=tmpwatch= | =tmpwatch= |
Latest revision as of 15:14, 21 June 2016
Indeks - A - B - C - D - E - F - G - H - I - J - K - L - M - N - O - P - Q - R - S - T - U - V - W - X - Y - Z
tac
tail
Menampilkan bagian akhir dari sebuah file
Contoh:
root@batik:/var/log# tail messages May 24 11:00:00 bt smsd: Writing stats file 120524.110000 May 24 11:37:02 bt pulseaudio[1623]: ratelimit.c: 1 events suppressed May 24 11:39:42 bt pulseaudio[1623]: ratelimit.c: 1 events suppressed May 24 11:41:18 bt pulseaudio[1623]: ratelimit.c: 1 events suppressed May 24 12:00:00 bt smsd: Writing stats file 120524.120000 May 24 12:37:21 bt pulseaudio[1623]: ratelimit.c: 1 events suppressed May 24 12:39:51 bt pulseaudio[1623]: ratelimit.c: 1 events suppressed May 24 12:40:10 bt pulseaudio[1623]: ratelimit.c: 3 events suppressed May 24 12:41:57 bt pulseaudio[1623]: ratelimit.c: 1 events suppressed May 24 12:43:10 bt pulseaudio[1623]: last message repeated 2 times
tailf
talk
talkd
tar
Perangkat kompresi berkas
- Kompres file log.txt yang besarnya 100 MB agar mudah diemail
$ tar -cvzf log.tar.gz log.txt
- Ekstrak kembali berkas tersebut
$ tar -xvf log.tar.gz
taskset
tcpd
tcpdump
tcpslice
tee
telinit
telnet
Antarmuka untuk protokol TELNET
- Test apakah port 80 tidak di blok oleh firewall
$ telnet telkomspeedy.com 80
telnetd
test
tftp
tftpd
time
Menjalankan program dan merangkum besar penggunaan sumberdaya sistem
biasanya digunakan untuk mengukur lama eksekusi suatu program.
- Hitung waktu dari switch dipicu hingga roket berhasil meluncur
time ./rocket_launcher.sh real 0m1.692s user 0m0.000s sys 0m0.000s