10 Perintah Linux Efektif Kurang Dikenal - Bagian IV

10 Perintah Linux Efektif Kurang Dikenal - Bagian IV

Melanjutkan Kurang diketahui seri, artikel keempat seri ini akan memberi tahu Anda beberapa berguna lucu Dan animasi perintah. Di sini kita masuk ke sesi praktis, tanpa banyak teori.

10 perintah efektif yang kurang diketahui
  1. 11 Perintah Linux yang Berguna Kurang Diketahui - Bagian I
  2. 10 Perintah Linux yang kurang dikenal - Bagian 2
  3. 10 perintah yang kurang diketahui untuk Linux - Bagian 3
  4. 10 Perintah Linux yang Berguna Kurang Diketahui Bagian V

Dalam artikel keempat dari seri ini yang mencakup beberapa perintah Linux yang kurang dikenal lainnya, layak diketahui. Mungkin Anda sudah mengetahui perintah ini, tidak diragukan lagi Anda adalah pengguna Linux yang berpengalaman dan suka eksplorasi.

32. Perintah Strace

Itu strace adalah alat debugging yang digunakan terutama untuk tujuan pemecahan masalah di Linux. Itu mungkin tidak diinstal secara default di sistem Anda dan Anda mungkin perlu tepat atau yum paket yang diperlukan.

Lacak eksekusi perintah menggunakan strace memerintah:

[Email Dilindungi] [~]# Strace PWD
Output sampel
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," 7elf
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
>
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
05i;
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0 ) = 0x7f29b0df2000 Access ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada file atau direktori seperti itu) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427,…) = 0 mmap (null, 38427, prot_read, peta_private, 3, 0) = 0x7f29b0de8000 close (peta_private, 3, 0) = 0x7f29b0de8000 ("/lib64/libc.Jadi.6 ", o_rdonly) = 3 baca (3," \ 177elf \ 2 \ 1 \ 1 \ 3 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 3 \ 0> \ 0 \ 1 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "…, 832) = 832 fStat (3, st_mode = S_IFREG | 0755, ST_SIZE = 1922152,…) = 0 MMAP (0x3b4900000000000000, 374960606060) = 0 MMAP (0x3B49000000000000000000000000, 374, 374, Prot_exec, Map_Private | Map_denywrite, 3, 0) = 0x3B49000000 MPROTECT (0x3B4918A000, 2093056, Prot_None) = 0 MMAP (0x3B49389000, 2000, MAP_BEAD (MAPOR93, MAP_BADIVIX (MAP_ (MAP.AF. , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, peta_private | map_anonymous, -1, 0) = 0x7f29 , Prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de6000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000… 
"…, 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152,…) = 0 mmap (0x3b490000, 3745960, Prot_Read | Prot_exec, Map_private | Map_DenWrite, 3), MAP_PRITE, 000.00, MAP_PRICE (MAP_PRICE (MAP_PRICE (MAP_PRICE (MAP_READ, MAP_PRICE, 3 , 2093056, prot_none) = 0 mmap (0x3b49389000, 20480, prot_read | prot_write, peta_private | peta_fixed | peta_denywrite, 3, 0x189000) = 0x3b49389000 mmap (0x3b4930) = 0x3b49389000 mmap (0x3b4930 = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de7000 mmap (null, 4096, prot_read | prot_write, map_pap_an6.000 (null, 4, map_an. mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de5000…

Itu strace Perintah menerima banyak argumen dan memiliki banyak pilihan. Lihat halaman Manusia untuk informasi terperinci.

33. Dissown -A && Exit Command

Sebagian besar administrator sistem menggunakan perintah layar untuk mengontrol pekerjaan yang berjalan di latar belakang terminal. Katakanlah jika Anda memiliki pekerjaan yang lama dan ingin melepaskan Dari terminal, Anda menggunakan layar Perintah untuk melakukannya. Tetapi bagaimana jika Anda tidak tahu cara menggunakan layar, inilah perintah yang disangkal untuk diselamatkan.

Perintah Disownel digunakan untuk menjalankan pekerjaan terus menerus di latar belakang bahkan setelah Anda menutup sesi terminal. Sintaks dari perintah Disowning adalah:

[email dilindungi] [~]# perintah; Dissown -A && keluar

Untuk melepaskan lagi pekerjaan yang sudah lama berjalan di terminal, gunakan pekerjaan Perintah untuk menemukan nomor pekerjaan dan kemudian gunakan Disownel %N Di mana N adalah nomor pekerjaan. Untuk memverifikasi sebenarnya pekerjaan berjalan menggunakan ps atau perintah teratas. Itu Nohup Perintah adalah alternatif dari perintah Disown.

34. perintah getConf long_bit

Perintah di atas menunjukkan arsitektur mesin Anda jika ada 32 sedikit atau 64 sedikit?

[email dilindungi] [~]# getConf long_bit 32

Unduh Linux Command Line Cheat Sheet

35. Tanggal tampilan di terminal

Perintah di bawah ini adalah kombinasi dari beberapa perintah, lebih baik katakan itu sebuah skrip. Bagi seseorang yang bekerja di shell atau terminal, tanpa GUI melihat tanggal sistem saat ini adalah pekerjaan yang membosankan. Anda harus mengetik 'tanggal'Perintah untuk memeriksa tanggal hari ini.

Cukup jalankan perintah di bawah ini pada Anda prompt dan lihat tanggal Dan waktu di sudut kanan terminal kanan di atas.

[Email dilindungi] [~]# Saat tidur 1; lakukan tput sc; tput cup 0 $ ($ (tput cols) -29)); tanggal; tput rc; selesai &
Tampilkan Tanggal di Terminal

36. Konversi perintah

Saat menulis tutorial, saya biasanya perlu menghasilkan output, berkali -kali dalam format gambar. Kombinasi perintah di atas melakukan ini untuk saya. Katakan saya perlu output perintah pohon (untuk /etc/x11 direktori) dalam format gambar. Apa yang saya lakukan di Terminal adalah:

[Email Dilindungi]:/etc/x11# pohon | Konversi label:@-/home/avi/tree.png

Output dari perintah di atas dapat dilihat di lokasi yang ditentukan (di sini, direktori rumah saya) dengan nama file yang ditentukan sebagai pohon.png.

37. tonton -t -n1 “tanggal +%t | figlet”

Ingat deskripsi kami tentang “Figlet"Perintah dalam artikel kami sebelumnya" 20 Perintah Lucu Linux ". Perintah ini sangat keren, kali ini kami akan menyalurkanFiglet'Untuk menampilkan jam digital animasi di terminal.

Cukup periksa sendiri, ingatlah Anda harus memilikinya Figlet diinstal pada sistem, lakukan tepat atau yum Untuk menginstal paket yang diperlukan.

[email dilindungi] [~]# tonton -t -n1 "Tanggal +%t | figlet"
Output sampel
 _ ___ ____ ___ _____ _ _ Fri 29 Nov 10:29:34 GMT / | / _ \ _ | ___ \ / _ \ _ | ___ / | || | | | | | (_) __) | (_) (_) | _ \ | || | _ | | | _ | | _ / __ / \ __, | _ ___) | __ _ | | _ | \ ___/(_) _____ | /_/(_) ____/| _ |

38. tuan rumah dan gali perintah

Meskipun "tuan rumah" Dan "menggaliPerintah tidak jauh lebih sedikit diketahui, masih belum terlalu sering digunakan. Perintah host adalah DNS utilitas pencarian.

[email dilindungi] [~]# host www.Google.com www.Google.com memiliki alamat 173.194.66.147 www.Google.com memiliki alamat 173.194.66.105 www.Google.com memiliki alamat 173.194.66.99 www.Google.com memiliki alamat 173.194.66.104 www.Google.com memiliki alamat 173.194.66.106 www.Google.com memiliki alamat 173.194.66.103 www.Google.com memiliki alamat IPv6 2A00: 1450: 400C: C03 :: 68
[email dilindungi] [~]# gali www.Google.com; <> Dig 9.8.2RC1-Redhat-9.8.2-0.17.RC1.el6_4.6 <> www.Google.com ;; Opsi Global: +CMD ;; Punya Jawaban: ;; ->> header<

39. Perintah DStat

Itu dstat adalah alat serbaguna, yang menghasilkan statistik yang berkaitan dengan sumber daya sistem. Secara default mungkin tidak dimiliki sistem Andadstat'Diinstal. Lakukan a tepat atau yum untuk memasang 'dstat'Sebelum menggunakan generator sumber daya sistem yang sangat penuh warna dan deskripsi ini.

[email dilindungi] [~]# dstat
Perintah DStat

40. BIND -P Command

The 'mengikat -p'Perintah akan menampilkan semua jalan pintas yang tersedia untuk PESTA kerang.

[email dilindungi] [~]# bind -p
Output sampel
"\ C-g": abort "\ c-x \ c-g": abort "\ e \ c-g": abort "\ c-j": accept-line "\ c-m": accept-line # alias-expand-line (tidak terikat) # panah " -Key-prefix (tidak terikat) # mundur-byte (tidak terikat) "\ c-b": backward-char "\ eod": backward-char "\ e [d": backward-char "\ e!": Complete-Command" \ e/": lengkap-filename" \ [email dilindungi] ": lengkap-hostname" \ e ": lengkap-into-bor : lengkap-variabel # copy-backward-word (tidak terikat) # copy-forward-word (tidak terikat) # copy-region-as-kill (tidak terikat)… 

41. Sentuh /Forcefsck

Perintah di atas akan membuat folder kosong 'Forcefsck', di bawah direktori root. Ini akan memaksa sistem Linux untuk memeriksa sistem file pada boot berikutnya.

[Email Dilindungi] [~]# Touch /Forcefsck

Itu saja untuk saat ini. Kalian suka ini 'Perintah yang kurang diketahui'Dan karenanya kami melanjutkan serial ini, artikel berikutnya dari seri ini akan segera tersedia.

Sampai kemudian tetap disini dan terhubung ke Tecmint. Jangan lupa memberikan umpan balik berharga di bagian komentar kami. Buat bantuan kepada kami, suka dan bagikan kami dan bantu kami menyebar.