10 Perintah Linux Berkesan Dikenali - Bahagian IV

10 Perintah Linux Berkesan Dikenali - Bahagian IV

Meneruskan Kurang dikenali siri, artikel keempat siri ini akan memberitahu anda berguna Lucu dan animasi Perintah. Di sini kita masuk ke sesi praktikal, tanpa banyak teori.

10 arahan berkesan yang kurang dikenali
  1. 11 perintah linux berguna yang kurang dikenali - Bahagian I
  2. 10 Perintah Linux yang kurang dikenali - Bahagian 2
  3. 10 Perintah yang kurang dikenali untuk Linux - Bahagian 3
  4. 10 perintah linux berguna yang kurang dikenali- bahagian v

Dalam artikel keempat siri ini yang merangkumi beberapa arahan Linux yang kurang dikenali, yang patut diketahui. Mungkin anda sudah mengetahui arahan ini, tidak syak lagi anda seorang pengguna Linux yang berpengalaman dan suka penjelajahan.

32. Perintah Strace

The Strace adalah alat penyahpepijatan yang digunakan terutamanya untuk tujuan penyelesaian masalah di linux. Mungkin tidak dipasang secara lalai dalam sistem anda dan anda mungkin perlu Apt atau yum pakej yang diperlukan.

Jejak pelaksanaan arahan menggunakan Strace Perintah:

[E -mel dilindungi] [~]# Strace PWD
Output sampel
execve ("/bin/pwd", ["pwd"], [/ * 29 vars */]) = 0 brk (0) = 0x728000 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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, map_private | map_anonymous, -1, 0 ) = 0x7F29B0DF2000 Akses ("/etc/ld.Jadi.preload ", r_ok) = -1 enoent (tidak ada fail atau direktori) buka ("/etc/ld.Jadi.cache ", o_rdonly) = 3 fstat (3, st_mode = s_ifreg | 0644, st_size = 38427, ...) = 0 mmap (null, 38427, prot_read, map_private, 3, 0) = 0x7F29B0DE8 ("/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 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 0 \ 360 \ 355 \ 1i; \ 0 \ 0 \ 0 "..., 832) = 832 fstat (3, st_mode = s_ifreg | 0755, st_size = 1922152, ...) Prot_exec, map_private | map_denywrite, 3, 0) = 0x3b49000000 mprotect (0x3b4918a, 2093056, prot_none) , Prot_read | prot_write, map_private | map_fixed | map_anonymous, -1, 0) = 0x3b4938e000 tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) , 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 (0x3b49000000, 3745960, prot_read , 2093056, prot_none) = 0 mmap (0x3b49389000, 20480, prot_read | prot_write, map_private | map_fixed | map_denywrite, 3, 0x189000) = 0x3B4938E000 Tutup (3) = 0 mmap (null, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7f29b0de7000 mmap (null, 4096, prot_read mmap (NULL, 4096, prot_read | prot_write, map_private | map_anonymous, -1, 0) = 0x7F29B0DE5000 ..

The Strace Perintah menerima banyak hujah dan mempunyai banyak pilihan. Rujuk halaman Man untuk maklumat terperinci.

33. disown -a && perintah keluar

Kebanyakan pentadbir sistem menggunakan arahan skrin untuk mengawal pekerjaan yang berjalan di latar belakang terminal. Katakan jika anda mempunyai pekerjaan yang lama dan mahu tanggalkan Dari terminal, anda gunakan skrin Perintah untuk melakukannya. Tetapi bagaimana jika anda tidak tahu cara menggunakan skrin, di sini datang perintah disown untuk menyelamatkan.

Perintah disown digunakan untuk menjalankan pekerjaan secara berterusan di latar belakang walaupun selepas anda menutup sesi terminal. Sintaks perintah disown adalah:

[E -mel dilindungi] [~]# command; disown -a && keluar

Untuk melepaskan lagi pekerjaan yang lama di terminal, gunakan pekerjaan perintah untuk mencari nombor pekerjaan dan kemudian gunakan disown %n di mana n adalah nombor pekerjaan. Untuk mengesahkan sebenarnya pekerjaan sedang berjalan ps atau arahan teratas. The nohup Perintah adalah alternatif kepada arahan disown.

34. perintah getconf long_bit

Perintah di atas menunjukkan seni bina mesin anda sekiranya ia berlaku 32 bit atau 64 bit?

[dilindungi e -mel] [~]# getconf long_bit 32

Muat turun lembaran cheat baris perintah linux

35. Tarikh paparan di terminal

Perintah di bawah adalah gabungan beberapa arahan, lebih baik mengatakan skripnya. Bagi seseorang yang bekerja di shell atau terminal, tanpa GUI melihat tarikh sistem semasa adalah pekerjaan yang membosankan. Anda mesti menaip 'Tarikh'Perintah untuk memeriksa tarikh hari ini.

Laksanakan arahan di bawah pada anda segera dan lihat Tarikh dan masa di sudut kanan di atas terminal.

[E-mel dilindungi] [~]# sementara tidur 1; lakukan tput sc; tput cup 0 $ (($ (tput cols) -29)); tarikh; tput rc; selesai &
Tunjukkan tarikh di terminal

36. Perintah Tukar

Semasa menulis tutorial, saya biasanya perlu menghasilkan output, banyak kali dalam format imej. Gabungan arahan di atas melakukan ini untuk saya. Katakan saya memerlukan output perintah pokok (untuk /ETC/X11 direktori) dalam format imej. Apa yang saya buat di Terminal ialah:

[E -mel dilindungi]:/etc/x11# Tree | Tukar label:@-/home/avi/pokok.png

Output arahan di atas dapat dilihat di lokasi yang ditentukan (di sini, direktori rumah saya) dengan nama fail yang ditentukan sebagai pokok.png.

37. Watch -t -n1 "Tarikh +%T | Figlet"

Ingat penerangan kami tentang "Figlet"Perintah dalam artikel kami yang terdahulu" 20 Perintah Lucu Linux ". Perintah ini sangat sejuk, kali ini kita akan menipis 'Figlet'Untuk menunjukkan jam digital animasi di terminal.

Cuma daftar keluar, ingat anda mesti ada Figlet dipasang pada sistem, lakukan Apt atau yum Untuk memasang pakej yang diperlukan.

[E -mel dilindungi] [~]# watch -t -n1 "tarikh +%t | figlet"
Output sampel
 _ ___ ____ ___ _____ _ _ Fri Nov 29 10:29:34 gmt / | / _ \ _ | ___ \ / _ \ _ | ___ / | || | | | | | (_) __) | (_) (_) | _ \ | || | _ | | | _ | | _ / __ / \ __, | _ ___) | __ _ | | _ | \ ___/(_) _____ | /_/(_) ____/| _ |

38. Perintah tuan rumah dan menggali

Walaupun "Tuan rumah"Dan"menggali"Perintah tidak begitu kurang diketahui, masih belum digunakan. Arahan tuan rumah adalah DNS utiliti carian.

[E -mel dilindungi] [~]# host www.Google.com www.Google.com mempunyai alamat 173.194.66.147 www.Google.com mempunyai alamat 173.194.66.105 www.Google.com mempunyai alamat 173.194.66.99 www.Google.com mempunyai alamat 173.194.66.104 www.Google.com mempunyai alamat 173.194.66.106 www.Google.com mempunyai alamat 173.194.66.103 www.Google.com mempunyai alamat ipv6 2a00: 1450: 400c: c03 :: 68
[E -mel dilindungi] [~]# Dig www.Google.com; <> Dig 9.8.2rc1-redhat-9.8.2-0.17.RC1.EL6_4.6 <> www.Google.com ;; Pilihan global: +cmd ;; Mendapat jawapan: ;; ->> header<

39. perintah dstat

The dstat adalah alat serba boleh, yang menghasilkan statistik yang berkaitan dengan sumber sistem. Secara lalai sistem anda mungkin tidak mempunyai 'dstat'Dipasang. Buat a Apt atau yum untuk memasang 'dstat'Sebelum menggunakan penjana sumber sistem yang sangat berwarna -warni dan penerangan ini.

[dilindungi e -mel] [~]# dstat
perintah dstat

40. Perintah Bind -p

'Bind -p'Perintah akan menunjukkan semua jalan pintas yang tersedia untuk Bash shell.

[E -mel dilindungi] [~]# bind -p
Output sampel
"\ C-g": abort "\ c-x \ c-g": abort "\ e \ c-g": abort "\ c-j": menerima-line "\ c-m": menerima talian # alias-expand-line (tidak terikat) # Arrow # -key-prefix (tidak terikat) # ke belakang-byte (tidak terikat) "\ c-b": mundur-char "\ eod": mundur-char "\ e [d": mundur-char "\ e!"Lengkap-komando" \ e/": Lengkap-filename" \ [E-mel dilindungi] ": Lengkap-hostname" \ e ": complete-into-braces" \ e ~ ": lengkap-username" \ e $ " : Variable-Variable # 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 fail pada boot seterusnya.

[E -mel dilindungi] [~]# sentuh /forceFsck

Itu sahaja buat masa ini. Anda orang suka ini 'Perintah yang kurang dikenali'Dan oleh itu kami meneruskan siri ini, artikel seterusnya siri ini akan tersedia tidak lama lagi.

Sehingga kemudian ditantikan dan disambungkan ke Tecmint. Jangan lupa memberi maklum balas berharga anda di bahagian komen kami. Lakukan nikmat kepada kami, suka dan kongsi kami dan bantu kami menyebarkan.