{"id":15714,"date":"2022-01-25T21:26:00","date_gmt":"2022-01-25T14:26:00","guid":{"rendered":"https:\/\/blog.tinohost.com\/?p=1009"},"modified":"2025-06-11T16:26:53","modified_gmt":"2025-06-11T09:26:53","slug":"su-dung-lenh-find-tren-linux","status":"publish","type":"post","link":"https:\/\/tino.vn\/blog\/su-dung-lenh-find-tren-linux\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng l\u1ec7nh Find tr\u00ean Linux hi\u1ec7u qu\u1ea3"},"content":{"rendered":"\n<p><strong>D\u00f9 b\u1ea1n l\u00e0 m\u1ed9t ng\u01b0\u1eddi m\u1edbi b\u1eaft \u0111\u1ea7u hay l\u00e0 m\u1ed9t ng\u01b0\u1eddi d\u00f9ng<a href=\"https:\/\/tino.vn\/blog\/he-dieu-hanh-linux-la-gi\/\" data-type=\"post\" data-id=\"15676\" target=\"_blank\" rel=\"noreferrer noopener\"> Linux<\/a> kinh nghi\u1ec7m, vi\u1ec7c n\u1eafm v\u1eefng c\u00e1ch s\u1eed d\u1ee5ng l\u1ec7nh Find s\u1ebd gi\u00fap b\u1ea1n d\u1ec5 d\u00e0ng x\u00e1c \u0111\u1ecbnh v\u1ecb tr\u00ed c\u1ee7a nh\u1eefng t\u1eadp tin c\u1ea7n t\u00ecm v\u00e0 th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 qu\u1ea3n l\u00fd h\u1ec7 th\u1ed1ng m\u1ed9t c\u00e1ch hi\u1ec7u qu\u1ea3. Trong b\u00e0i vi\u1ebft h\u00f4m nay, TinoHost s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch s\u1eed d\u1ee5ng l\u1ec7nh Find tr\u00ean Linux hi\u1ec7u qu\u1ea3<\/strong>.<\/p>\n\n\n\n<h2 id=\"T\u00ecm_hi\u1ec3u_v\u1ec1_l\u1ec7nh_Find_tr\u00ean_Linux\"><strong>T\u00ecm hi\u1ec3u v\u1ec1 l\u1ec7nh Find tr\u00ean Linux<\/strong><\/h2>\n\n\n\n<h3 id=\"Gi\u1edbi_thi\u1ec7u_l\u1ec7nh_Find_tr\u00ean_Linux\"><strong>Gi\u1edbi thi\u1ec7u l\u1ec7nh Find tr\u00ean Linux<\/strong><\/h3>\n\n\n\n<p>L\u1ec7nh Find tr\u00ean Linux l\u00e0 m\u1ed9t c\u00f4ng c\u1ee5 d\u00f2ng l\u1ec7nh m\u1ea1nh m\u1ebd \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 t\u00ecm ki\u1ebfm c\u00e1c t\u1eadp tin v\u00e0 th\u01b0 m\u1ee5c d\u1ef1a tr\u00ean c\u00e1c ti\u00eau ch\u00ed c\u1ee5 th\u1ec3, bao g\u1ed3m t\u00ecm ki\u1ebfm theo t\u00ean t\u1eadp tin, k\u00edch th\u01b0\u1edbc, ng\u00e0y t\u1ea1o, quy\u1ec1n truy c\u1eadp v\u00e0 nhi\u1ec1u ti\u00eau ch\u00ed kh\u00e1c. Nh\u00ecn chung, Find s\u1ebd gi\u00fap b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 nh\u01b0 t\u00ecm ki\u1ebfm t\u1ec7p tin c\u1ee5 th\u1ec3, x\u00f3a c\u00e1c t\u1ec7p l\u1edbn h\u01a1n m\u1ed9t gi\u1edbi h\u1ea1n k\u00edch th\u01b0\u1edbc, th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 x\u1eed l\u00fd h\u00e0ng lo\u1ea1t v\u00e0 nhi\u1ec1u c\u00f4ng vi\u1ec7c kh\u00e1c li\u00ean quan \u0111\u1ebfn qu\u1ea3n l\u00fd t\u1ec7p tin v\u00e0 th\u01b0 m\u1ee5c.<\/p>\n\n\n\n<p>V\u00ed d\u1ee5: B\u1ea1n mu\u1ed1n t\u00ecm ki\u1ebfm m\u1ed9t th\u1ee9 g\u00ec \u0111\u00f3 trong <a href=\"https:\/\/tino.vn\/blog\/o-cung-ssd-la-gi\/\" data-type=\"post\" data-id=\"38684\" target=\"_blank\" rel=\"noreferrer noopener\">\u1ed5 c\u1ee9ng<\/a> m\u00e0 kh\u00f4ng nh\u1edb \u1edf \u0111\u00e2u, t\u00ean c\u1ee5 th\u1ec3 l\u00e0 g\u00ec hay l\u00e0m sao t\u00ecm ra file gi\u1eefa qu\u00e1 nhi\u1ec1u file kh\u00e1 gi\u1ed1ng nhau? T\u1ea5t c\u1ea3 nh\u1eefng r\u1eafc r\u1ed1i \u0111\u00f3 s\u1ebd \u0111\u01b0\u1ee3c gi\u1ea3i quy\u1ebft b\u1eb1ng l\u1ec7nh Find tr\u00ean Linux.<\/p>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-1.webp\" alt=\"lenh-find-tren-linux-la-gi\" class=\"wp-image-84017\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-1.webp 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-1-300x161.webp 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong> L\u1ec7nh Find tr\u00ean Linux l\u00e0 g\u00ec?<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"C\u1ea5u_tr\u00fac_c\u1ee7a_l\u1ec7nh_Find\"><strong>C\u1ea5u tr\u00fac c\u1ee7a l\u1ec7nh Find<\/strong><\/h3>\n\n\n\n<p>V\u1ec1 c\u01a1 b\u1ea3n, ch\u00fang ta s\u1ebd s\u1eed d\u1ee5ng c\u1ea5u tr\u00fac chung nh\u01b0 sau:<\/p>\n\n\n\n<p><strong>find [\u0111\u01b0\u1eddng_d\u1eabn] [t\u00f9y_ch\u1ecdn] [ti\u00eau_ch\u00ed_t\u00ecm_ki\u1ebfm]<\/strong><\/p>\n\n\n\n<p>Trong \u0111\u00f3:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>[\u0111\u01b0\u1eddng_d\u1eabn]: <\/strong>\u0110\u00e2y l\u00e0 \u0111\u01b0\u1eddng d\u1eabn m\u00e0 b\u1ea1n mu\u1ed1n b\u1eaft \u0111\u1ea7u t\u00ecm ki\u1ebfm t\u1eeb. B\u1ea1n c\u00f3 th\u1ec3 ch\u1ec9 \u0111\u1ecbnh th\u01b0 m\u1ee5c c\u1ee5 th\u1ec3 ho\u1eb7c s\u1eed d\u1ee5ng &#8220;.&#8221; \u0111\u1ec3 ch\u1ec9 th\u01b0 m\u1ee5c hi\u1ec7n t\u1ea1i. N\u1ebfu kh\u00f4ng c\u00f3 \u0111\u01b0\u1eddng d\u1eabn \u0111\u01b0\u1ee3c ch\u1ec9 \u0111\u1ecbnh, m\u1eb7c \u0111\u1ecbnh l\u00e0 th\u01b0 m\u1ee5c hi\u1ec7n t\u1ea1i.<\/li>\n\n\n\n<li><strong>[t\u00f9y_ch\u1ecdn]: <\/strong>\u0110\u00e2y l\u00e0 c\u00e1c t\u00f9y ch\u1ecdn m\u00e0 b\u1ea1n mu\u1ed1n s\u1eed d\u1ee5ng \u0111\u1ec3 t\u00f9y ch\u1ec9nh c\u00e1ch l\u1ec7nh &#8220;find&#8221; ho\u1ea1t \u0111\u1ed9ng. C\u00f3 r\u1ea5t nhi\u1ec1u t\u00f9y ch\u1ecdn kh\u00e1c nhau \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh c\u00e1c ti\u00eau ch\u00ed t\u00ecm ki\u1ebfm, nh\u01b0 t\u00ean t\u1eadp tin, k\u00edch th\u01b0\u1edbc, ng\u00e0y t\u1ea1o, quy\u1ec1n truy c\u1eadp v\u00e0 nhi\u1ec1u lo\u1ea1i t\u00f9y ch\u1ecdn kh\u00e1c.<\/li>\n\n\n\n<li><strong>[ti\u00eau_ch\u00ed_t\u00ecm_ki\u1ebfm]: <\/strong>\u0110\u00e2y l\u00e0 n\u01a1i b\u1ea1n x\u00e1c \u0111\u1ecbnh c\u00e1c ti\u00eau ch\u00ed c\u1ee5 th\u1ec3 cho qu\u00e1 tr\u00ecnh t\u00ecm ki\u1ebfm. \u0110i\u1ec1u n\u00e0y bao g\u1ed3m c\u00e1c \u0111i\u1ec1u ki\u1ec7n v\u1ec1 t\u00ean t\u1eadp tin, k\u00edch th\u01b0\u1edbc, quy\u1ec1n truy c\u1eadp, ng\u00e0y t\u1ea1o v\u00e0 nhi\u1ec1u y\u1ebfu t\u1ed1 kh\u00e1c.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-2.webp\" alt=\"cau-truc-cua-lenh-find\" class=\"wp-image-84018\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-2.webp 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-2-300x161.webp 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>C\u1ea5u tr\u00fac c\u1ee7a l\u1ec7nh Find<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"L\u1ee3i_\u00edch_c\u1ee7a_l\u1ec7nh_Find_tr\u00ean_Linux\"><strong>L\u1ee3i \u00edch c\u1ee7a l\u1ec7nh Find tr\u00ean Linux<\/strong><\/h3>\n\n\n\n<p><strong>T\u00ecm ki\u1ebfm t\u1eadp tin v\u00e0 th\u01b0 m\u1ee5c theo ti\u00eau ch\u00ed<\/strong><\/p>\n\n\n\n<p>L\u1ec7nh Find cho ph\u00e9p b\u1ea1n t\u00ecm ki\u1ebfm c\u00e1c t\u1eadp tin v\u00e0 th\u01b0 m\u1ee5c d\u1ef1a tr\u00ean c\u00e1c ti\u00eau ch\u00ed c\u1ee5 th\u1ec3 nh\u01b0 t\u00ean t\u1eadp tin, k\u00edch th\u01b0\u1edbc, quy\u1ec1n truy c\u1eadp, ng\u00e0y t\u1ea1o v\u00e0 nhi\u1ec1u y\u1ebfu t\u1ed1 kh\u00e1c. \u0110i\u1ec1u n\u00e0y gi\u00fap b\u1ea1n nhanh ch\u00f3ng \u0111\u1ecbnh v\u1ecb c\u00e1c t\u1eadp tin v\u00e0 th\u01b0 m\u1ee5c c\u1ea7n thi\u1ebft trong h\u1ec7 th\u1ed1ng.<\/p>\n\n\n\n<p><strong>Qu\u1ea3n l\u00fd t\u1ec7p tin v\u00e0 th\u01b0 m\u1ee5c m\u1ed9t c\u00e1ch hi\u1ec7u qu\u1ea3<\/strong><\/p>\n\n\n\n<p>V\u1edbi kh\u1ea3 n\u0103ng t\u00ecm ki\u1ebfm theo nhi\u1ec1u ti\u00eau ch\u00ed kh\u00e1c nhau, l\u1ec7nh Find cho ph\u00e9p b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 qu\u1ea3n l\u00fd t\u1ec7p tin v\u00e0 th\u01b0 m\u1ee5c m\u1ed9t c\u00e1ch hi\u1ec7u qu\u1ea3 h\u01a1n. B\u1ea1n c\u00f3 th\u1ec3 t\u00ecm v\u00e0 x\u00f3a c\u00e1c t\u1ec7p l\u1edbn, di chuy\u1ec3n ho\u1eb7c sao ch\u00e9p nh\u1eefng t\u1eadp tin c\u1ee5 th\u1ec3 v\u00e0 th\u1eadm ch\u00ed th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 x\u1eed l\u00fd h\u00e0ng lo\u1ea1t tr\u00ean t\u1eadp tin.<\/p>\n\n\n\n<p><strong>T\u00ecm ki\u1ebfm v\u00e0 thay th\u1ebf th\u00f4ng tin trong t\u1eadp tin v\u0103n b\u1ea3n<\/strong><\/p>\n\n\n\n<p>L\u1ec7nh Find c\u00f3 th\u1ec3 k\u1ebft h\u1ee3p v\u1edbi c\u00e1c l\u1ec7nh kh\u00e1c nh\u01b0 Sed \u0111\u1ec3 th\u1ef1c hi\u1ec7n t\u00ecm ki\u1ebfm v\u00e0 thay th\u1ebf th\u00f4ng tin trong c\u00e1c t\u1ec7p v\u0103n b\u1ea3n. \u0110i\u1ec1u n\u00e0y r\u1ea5t h\u1eefu \u00edch khi b\u1ea1n c\u1ea7n c\u1eadp nh\u1eadt th\u00f4ng tin ho\u1eb7c th\u1ef1c hi\u1ec7n thay \u0111\u1ed5i h\u00e0ng lo\u1ea1t trong c\u00e1c t\u1ec7p v\u0103n b\u1ea3n.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-3-1.webp\" alt=\"loi-ich-cua-lenh-find-tren-linux\" class=\"wp-image-84020\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-3-1.webp 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-3-1-300x161.webp 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>L\u1ee3i \u00edch c\u1ee7a l\u1ec7nh Find tr\u00ean Linux<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>T\u00ecm ki\u1ebfm v\u00e0 x\u1eed l\u00fd c\u00e1c t\u1ec7p \u1ea9n<\/strong><\/p>\n\n\n\n<p>L\u1ec7nh Find cho ph\u00e9p b\u1ea1n t\u00ecm ki\u1ebfm v\u00e0 l\u00e0m vi\u1ec7c v\u1edbi c\u00e1c t\u1eadp tin \u1ea9n (c\u00f3 t\u00ean b\u1eaft \u0111\u1ea7u b\u1eb1ng d\u1ea5u ch\u1ea5m) m\u00e0 kh\u00f4ng c\u1ea7n ph\u1ea3i bi\u1ebft tr\u01b0\u1edbc t\u00ean c\u1ee5 th\u1ec3 c\u1ee7a ch\u00fang.<\/p>\n\n\n\n<p><strong>T\u00ecm ki\u1ebfm tr\u00ean to\u00e0n b\u1ed9 h\u1ec7 th\u1ed1ng<\/strong><\/p>\n\n\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh Find \u0111\u1ec3 t\u00ecm ki\u1ebfm tr\u00ean to\u00e0n b\u1ed9 h\u1ec7 th\u1ed1ng Linux, bao g\u1ed3m c\u1ea3 c\u00e1c \u1ed5 \u0111\u0129a v\u00e0 th\u01b0 m\u1ee5c kh\u00e1c nhau. \u0110i\u1ec1u n\u00e0y gi\u00fap b\u1ea1n \u0111\u1ecbnh v\u1ecb t\u1eadp tin v\u00e0 th\u01b0 m\u1ee5c m\u1ed9t c\u00e1ch t\u1ed5ng quan v\u00e0 to\u00e0n di\u1ec7n.<\/p>\n\n\n\n<h2 id=\"H\u01b0\u1edbng_d\u1eabn_s\u1eed_d\u1ee5ng_l\u1ec7nh_Find_tr\u00ean_Linux\"><strong>H\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng l\u1ec7nh Find tr\u00ean Linux<\/strong><\/h2>\n\n\n\n<p>\u0110\u1ec3 d\u1ec5 d\u00e0ng \u0111\u1ecdc hi\u1ec3u h\u01a1n, ch\u00fang ta s\u1ebd \u201cquy \u0111\u1ecbnh ri\u00eang\u201d c\u00e1ch vi\u1ebft trong khu\u00f4n kh\u1ed5 b\u00e0i vi\u1ebft n\u00e0y nh\u01b0 sau nh\u00e9!<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Ti\u00eau \u0111\u1ec1<\/strong>: hi\u1ec3n th\u1ecb nh\u00f3m l\u1ec7nh c\u00f3 c\u00f9ng m\u1ed9t \u0111i\u1ec3m chung<\/li>\n\n\n\n<li><strong>D\u00f2ng ch\u1eef c\u00f3 \u0111\u00e1nh s\u1ed1: <\/strong>hi\u1ec3n th\u1ecb n\u1ed9i dung c\u1ee7a code b\u00ean d\u01b0\u1edbi<\/li>\n\n\n\n<li><strong>Code d\u00f9ng \u0111\u1ec3 t\u00ecm ki\u1ebfm<\/strong><\/li>\n<\/ul>\n\n\n\n<h3 id=\"T\u00ecm_ki\u1ebfm_c\u01a1_b\u1ea3n\"><strong>T\u00ecm ki\u1ebfm c\u01a1 b\u1ea3n<\/strong><\/h3>\n\n\n\n<p><strong>1. T\u00ecm ki\u1ebfm file theo t\u00ean file \u0111\u1ea7y \u0111\u1ee7<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find . tinogroup.txt<\/code><\/pre>\n\n\n\n<p>K\u1ebft qu\u1ea3:<\/p>\n\n\n\n<p>.\/tinogroup.txt<\/p>\n\n\n\n<p>L\u1ec7nh tr\u00ean s\u1ebd t\u00ecm file c\u00f3 t\u00ean l\u00e0 tinogroup.txt ( d\u1ea5u . \u0111\u1ea1i di\u1ec7n cho th\u01b0 m\u1ee5c hi\u1ec7n h\u00e0nh).<\/p>\n\n\n\n<p><strong>2. T\u00ecm ki\u1ebfm file theo t\u00ean kh\u00f4ng \u0111\u1ea7y \u0111\u1ee7.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -name tinogroup*<\/code><\/pre>\n\n\n\n<p>K\u1ebft qu\u1ea3:<\/p>\n\n\n\n<p>\/home\/tinogroup1.php<\/p>\n\n\n\n<p>\/var\/tinogroupabc.rar<\/p>\n\n\n\n<p>L\u1ec7nh tr\u00ean s\u1ebd t\u00ecm tr\u00ean to\u00e0n b\u1ed9 h\u1ec7 th\u1ed1ng file c\u00f3 t\u00ean b\u1eaft \u0111\u1ea7u b\u1eb1ng &#8220;tinogroup&#8221;<\/p>\n\n\n\n<p><strong>3. T\u00ecm ki\u1ebfm file v\u1edbi ph\u1ea7n m\u1edf r\u1ed9ng.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/home -name *.php\n<\/code><\/pre>\n\n\n\n<p>K\u1ebft qu\u1ea3:<\/p>\n\n\n\n<p>\/home\/tinogroup.php<\/p>\n\n\n\n<p>\/home\/admin\/login.php<\/p>\n\n\n\n<p>L\u1ec7nh tr\u00ean s\u1ebd t\u00ecm trong th\u01b0 m\u1ee5c \/home nh\u1eefng file c\u00f3 t\u00ean b\u1ea5t k\u1ef3, mi\u1ec5n n\u00f3 c\u00f3 ph\u1ea7n m\u1edf r\u1ed9ng l\u00e0 .<a href=\"https:\/\/www.php.net\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">php<\/a><\/p>\n\n\n\n<p><strong>4. T\u00ecm ki\u1ebfm file \u1ea9n<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -type f -name \".*\"<\/code><\/pre>\n\n\n<div class=\"wp-block-image is-resized\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-4.webp\" alt=\"tim-kiem-co-ban\" class=\"wp-image-84021\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-4.webp 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-4-300x161.webp 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u00ecm ki\u1ebfm c\u01a1 b\u1ea3n<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<h3 id=\"T\u00ecm_ki\u1ebfm_d\u1ef1a_tr\u00ean_ph\u00e2n_quy\u1ec1n_v\u00e0_nh\u00f3m_quy\u1ec1n\"><strong>T\u00ecm ki\u1ebfm d\u1ef1a tr\u00ean ph\u00e2n quy\u1ec1n v\u00e0 nh\u00f3m quy\u1ec1n<\/strong><\/h3>\n\n\n\n<p><strong>5. T\u00ecm ki\u1ebfm file thu\u1ed9c s\u1edf h\u1eefu c\u1ee7a tinogroup&nbsp;<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/home -user tinogroup<\/code><\/pre>\n\n\n\n<p><em>L\u1ec7nh tr\u00ean s\u1ebd t\u00ecm ki\u1ebfm t\u1ea5t c\u1ea3 nh\u1eefng file trong th\u01b0 m\u1ee5c home c\u00f3 ch\u1ee7 s\u1edf h\u1eefu l\u00e0 tinogroup&nbsp;<\/em><\/p>\n\n\n\n<p><strong>6. T\u00ecm ki\u1ebfm file c\u00f3 group l\u00e0 tinogroup<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/home -group tinogroup<\/code><\/pre>\n\n\n\n<p><em>L\u1ec7nh tr\u00ean s\u1ebd t\u00ecm ki\u1ebfm t\u1ea5t c\u1ea3 nh\u1eefng file trong th\u01b0 m\u1ee5c home c\u00f3 group l\u00e0 tinogroup<\/em><\/p>\n\n\n\n<p><strong>7. T\u00ecm ki\u1ebfm file \u0111\u01b0\u1ee3c ph\u00e2n quy\u1ec1n 777<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find . -type f -perm 777<\/code><\/pre>\n\n\n\n<p><strong>8. T\u00ecm file ch\u1ec9 c\u00f3 quy\u1ec1n read<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -perm \/u=r<\/code><\/pre>\n\n\n\n<p><strong><strong>9. T\u00ecm ki\u1ebfm file r\u1ed7ng<\/strong><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/tmp -type f -empty<\/code><\/pre>\n\n\n\n<h3 id=\"T\u00ecm_ki\u1ebfm_d\u1ef1a_tr\u00ean_th\u1eddi_gian\"><strong>T\u00ecm ki\u1ebfm d\u1ef1a tr\u00ean th\u1eddi gian<\/strong><\/h3>\n\n\n\n<p><strong>10. T\u00ecm ki\u1ebfm file \u0111\u01b0\u1ee3c ch\u1ec9nh s\u1eeda trong v\u00f2ng 50 ng\u00e0y<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -mtime 50<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"700\" height=\"375\" src=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-5.webp\" alt=\"tim-kiem-dua-tren-thoi-gian\" class=\"wp-image-84022\" title=\"\" srcset=\"https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-5.webp 700w, https:\/\/tino.vn\/blog\/wp-content\/uploads\/2024\/01\/su-dung-lenh-find-tren-linux-5-300x161.webp 300w\" sizes=\"(max-width: 700px) 100vw, 700px\" \/><figcaption class=\"wp-element-caption\"><strong>T\u00ecm ki\u1ebfm d\u1ef1a tr\u00ean th\u1eddi gian<\/strong><\/figcaption><\/figure>\n<\/div>\n\n\n<p><strong>11. T\u00ecm ki\u1ebfm file \u0111\u01b0\u1ee3c ch\u1ec9nh s\u1eeda trong v\u00f2ng 50 &#8211; 100 ng\u00e0y<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -mtime +50 \u2013mtime -100<\/code><\/pre>\n\n\n\n<p><strong><strong>12. T\u00ecm ki\u1ebfm file v\u1eeba \u0111\u01b0\u1ee3c t\u1ea1o ra trong v\u00f2ng 1 gi\u1edd<\/strong><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -cmin -60<\/code><\/pre>\n\n\n\n<h3 id=\"T\u00ecm_ki\u1ebfm_d\u1ef1a_tr\u00ean_dung_l\u01b0\u1ee3ng\"><strong>T\u00ecm ki\u1ebfm d\u1ef1a tr\u00ean dung l\u01b0\u1ee3ng<\/strong><\/h3>\n\n\n\n<p><strong>13. T\u00ecm ki\u1ebfm file c\u00f3 dung l\u01b0\u1ee3ng 50M<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -size 50M<\/code><\/pre>\n\n\n\n<p><strong>14. T\u00ecm ki\u1ebfm file c\u00f3 dung l\u01b0\u1ee3ng l\u1edbn h\u01a1n 50M nh\u1ecf h\u01a1n 100M<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -size +50M -size -100M<\/code><\/pre>\n\n\n\n<p><strong>15. T\u00ecm th\u01b0 m\u1ee5c c\u00f3 t\u00ean tinogroup<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -type d -name tinogroup<\/code><\/pre>\n\n\n\n<p><strong>16. T\u00ecm ki\u1ebfm tr\u00ean nhi\u1ec1u th\u01b0 m\u1ee5c<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/opt \/usr \/var -name tinogroup.txt -type f<\/code><\/pre>\n\n\n\n<p>L\u1ec7nh tr\u00ean s\u1ebd t\u00ecm ki\u1ebfm tr\u00ean c\u00e1c th\u01b0 m\u1ee5c \/opt \/usr \/var t\u1eadp tin tinogroup.txt<\/p>\n\n\n\n<p><strong>17. T\u00ecm v\u00e0 x\u00f3a file c\u00f3 dung l\u01b0\u1ee3ng tr\u00ean 100M<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/ -size +100M -exec rm -rf {} \\;<\/code><\/pre>\n\n\n\n<h3 id=\"T\u00ecm_ki\u1ebfm_d\u1ef1a_tr\u00ean_ph\u1ea7n_m\u1edf_r\u1ed9ng\/_n\u1ed9i_dung\"><strong>T\u00ecm ki\u1ebfm d\u1ef1a tr\u00ean ph\u1ea7n m\u1edf r\u1ed9ng\/ n\u1ed9i dung<\/strong><\/h3>\n\n\n\n<p><strong>18. T\u00ecm v\u00e0 chmod 644 file c\u00f3 ph\u1ea7n m\u1edf r\u1ed9ng l\u00e0 .html<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/usr\/local -name \"*.html\" -type f -exec chmod 644 {} \\;<\/code><\/pre>\n\n\n\n<p><strong>19. T\u00ecm file c\u00f3 ph\u1ea7n m\u1edf r\u1ed9ng l\u00e0 .mp3 v\u00e0 copy file \u0111\u00f3 \u0111\u1ebfn th\u01b0 m\u1ee5c \/tmp\/MusicFiles<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find . -type f -name \"*.mp3\" -exec cp {} \/tmp\/MusicFiles \\;<\/code><\/pre>\n\n\n\n<p><strong>20. T\u00ecm file c\u00f3 ch\u1ee9a n\u1ed9i dung tinogroup<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># find \/home -type f -exec grep -l \u2018tinogroup\u2019{} \\;<\/code><\/pre>\n\n\n\n<p>V\u1edbi kh\u1ea3 n\u0103ng t\u00ecm ki\u1ebfm tuy\u1ec7t v\u1eddi, l\u1ec7nh Find \u0111\u00e3 th\u00e0nh m\u1ed9t ng\u01b0\u1eddi b\u1ea1n \u0111\u1ed3ng h\u00e0nh \u0111\u00e1ng tin c\u1eady c\u1ee7a ng\u01b0\u1eddi d\u00f9ng Linux. Qua b\u00e0i vi\u1ebft tr\u00ean, TinoHost \u0111\u00e3 h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng l\u1ec7nh Find tr\u00ean Linux chi ti\u1ebft. Hy v\u1ecdng b\u1ea1n s\u1ebd s\u1eed d\u1ee5ng c\u00e2u l\u1ec7nh ch\u00ednh x\u00e1c v\u00e0 c\u00f3 \u0111\u01b0\u1ee3c k\u1ebft qu\u1ea3 mong mu\u1ed1n nh\u00e9!<\/p>\n\n\n\n<h2 id=\"Nh\u1eefng_c\u00e2u_h\u1ecfi_th\u01b0\u1eddng_g\u1eb7p\"><strong>Nh\u1eefng c\u00e2u h\u1ecfi th\u01b0\u1eddng g\u1eb7p<\/strong><\/h2>\n\n\n\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"L\u00e0m_th\u1ebf_n\u00e0o_\u0111\u1ec3_t\u00ecm_t\u1ec7p_c\u00f3_quy\u1ec1n_777_v\u00e0_Chmod_\u0111\u1ebfn_644?\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 t\u00ecm t\u1ec7p c\u00f3 quy\u1ec1n 777 v\u00e0 Chmod \u0111\u1ebfn 644?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh:<\/p>\n\n\n\n<p><strong># find \/ -type f -perm 0777 -print -exec chmod 644 {} \\;<\/strong><\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"Chmod_755,_777_l\u00e0_g\u00ec?\">Chmod 755, 777 l\u00e0 g\u00ec?<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Chmod\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Chmod <\/a>l\u00e0 x\u00e1c l\u1eadp thu\u1ed9c t\u00ednh cho files ho\u1eb7c folder. Hi\u1ec3u \u0111\u01a1n gi\u1ea3n, Chmod l\u00e0 thi\u1ebft l\u1eadp quy\u1ec1n (xem, x\u00f3a \u2026) tr\u00ean file hay th\u01b0 m\u1ee5c. \u0110\u1ec3 t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 Chmod 755 v\u00e0 777, b\u1ea1n c\u00f3 th\u1ec3 xem b\u00e0i vi\u1ebft: <a href=\"https:\/\/tino.vn\/blog\/chmod-755-777-la-gi\/\" target=\"_blank\" rel=\"noreferrer noopener\">CHMOD 755, 777 l\u00e0 g\u00ec? S\u1eed d\u1ee5ng CHMOD 755, 777 ra sao?<\/a><\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"L\u00e0m_th\u1ebf_n\u00e0o_\u0111\u1ec3_t\u00ecm_c\u00e1c_t\u1ec7p_d\u1ef1a_tr\u00ean_k\u00edch_th\u01b0\u1edbc?_V\u00ed_d\u1ee5:_l\u1edbn_h\u01a1n_1MB.\">L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 t\u00ecm c\u00e1c t\u1ec7p d\u1ef1a tr\u00ean k\u00edch th\u01b0\u1edbc? V\u00ed d\u1ee5: l\u1edbn h\u01a1n 1MB.<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>B\u1ea1n s\u1ebd s\u1eed d\u1ee5ng l\u1ec7nh sau:<\/p>\n\n\n\n<p><strong>#<\/strong> <strong>find \/\u0111\u01b0\u1eddng\/d\u1eabn\/\u0111\u1ebfn\/th\u01b0\/m\u1ee5c -type f -size +1M<\/strong><\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section\t\thelp class=\"sc_fs_faq sc_card    \"\n\t\t\t\t>\n\t\t\t\t<h2 id=\"C\u00f3_l\u1ec7nh_n\u00e0o_thay_th\u1ebf_l\u1ec7nh_Find_tr\u00ean_Linux\">C\u00f3 l\u1ec7nh n\u00e0o thay th\u1ebf l\u1ec7nh Find tr\u00ean Linux<\/h2>\t\t\t\t<div>\n\t\t\t\t\t\t<div class=\"sc_fs_faq__content\">\n\t\t\t\t\n\n<p>L\u1ec7nh Find trong Linux r\u1ea5t m\u1ea1nh m\u1ebd v\u00e0 linh ho\u1ea1t trong vi\u1ec7c t\u00ecm ki\u1ebfm v\u00e0 x\u1eed l\u00fd c\u00e1c t\u1ec7p v\u00e0 th\u01b0 m\u1ee5c. Tuy nhi\u00ean, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p c\u1ee5 th\u1ec3, c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c l\u1ec7nh kh\u00e1c \u0111\u1ec3 thay th\u1ebf m\u1ed9t ph\u1ea7n ch\u1ee9c n\u0103ng c\u1ee7a Find nh\u01b0: L\u1ec7nh <strong>locate<\/strong>, l\u1ec7nh <strong>ls<\/strong> , l\u1ec7nh <strong>grep<\/strong>, l\u1ec7nh <strong>which v\u00e0 whereis<\/strong>, L\u1ec7nh <strong>tree<\/strong>.<\/p>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\t\t<\/section>\n\t\t\n<script type=\"application\/ld+json\">\n\t{\n\t\t\"@context\": \"https:\/\/schema.org\",\n\t\t\"@type\": \"FAQPage\",\n\t\t\"mainEntity\": [\n\t\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 t\u00ecm t\u1ec7p c\u00f3 quy\u1ec1n 777 v\u00e0 Chmod \u0111\u1ebfn 644?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>B\u1ea1n c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng l\u1ec7nh:<\/p><p><strong># find \/ -type f -perm 0777 -print -exec chmod 644 {} \\\\;<\/strong><\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"Chmod 755, 777 l\u00e0 g\u00ec?\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p><a>Chmod <\/a>l\u00e0 x\u00e1c l\u1eadp thu\u1ed9c t\u00ednh cho files ho\u1eb7c folder. Hi\u1ec3u \u0111\u01a1n gi\u1ea3n, Chmod l\u00e0 thi\u1ebft l\u1eadp quy\u1ec1n (xem, x\u00f3a \u2026) tr\u00ean file hay th\u01b0 m\u1ee5c. \u0110\u1ec3 t\u00ecm hi\u1ec3u th\u00eam v\u1ec1 Chmod 755 v\u00e0 777, b\u1ea1n c\u00f3 th\u1ec3 xem b\u00e0i vi\u1ebft: <a>CHMOD 755, 777 l\u00e0 g\u00ec? S\u1eed d\u1ee5ng CHMOD 755, 777 ra sao?<\/a><\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"L\u00e0m th\u1ebf n\u00e0o \u0111\u1ec3 t\u00ecm c\u00e1c t\u1ec7p d\u1ef1a tr\u00ean k\u00edch th\u01b0\u1edbc? V\u00ed d\u1ee5: l\u1edbn h\u01a1n 1MB.\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>B\u1ea1n s\u1ebd s\u1eed d\u1ee5ng l\u1ec7nh sau:<\/p><p><strong>#<\/strong><strong>find \/\u0111\u01b0\u1eddng\/d\u1eabn\/\u0111\u1ebfn\/th\u01b0\/m\u1ee5c -type f -size +1M<\/strong><\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t,\t\t\t\t{\n\t\t\t\t\"@type\": \"Question\",\n\t\t\t\t\"name\": \"C\u00f3 l\u1ec7nh n\u00e0o thay th\u1ebf l\u1ec7nh Find tr\u00ean Linux\",\n\t\t\t\t\"acceptedAnswer\": {\n\t\t\t\t\t\"@type\": \"Answer\",\n\t\t\t\t\t\"text\": \"<p>L\u1ec7nh Find trong Linux r\u1ea5t m\u1ea1nh m\u1ebd v\u00e0 linh ho\u1ea1t trong vi\u1ec7c t\u00ecm ki\u1ebfm v\u00e0 x\u1eed l\u00fd c\u00e1c t\u1ec7p v\u00e0 th\u01b0 m\u1ee5c. Tuy nhi\u00ean, trong m\u1ed9t s\u1ed1 tr\u01b0\u1eddng h\u1ee3p c\u1ee5 th\u1ec3, c\u00f3 th\u1ec3 s\u1eed d\u1ee5ng c\u00e1c l\u1ec7nh kh\u00e1c \u0111\u1ec3 thay th\u1ebf m\u1ed9t ph\u1ea7n ch\u1ee9c n\u0103ng c\u1ee7a Find nh\u01b0: L\u1ec7nh <strong>locate<\/strong>, l\u1ec7nh <strong>ls<\/strong> , l\u1ec7nh <strong>grep<\/strong>, l\u1ec7nh <strong>which v\u00e0 whereis<\/strong>, L\u1ec7nh <strong>tree<\/strong>.<\/p>\"\n\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\t\t\t\t]\n\t}\n<\/script>\n\n\n","protected":false},"excerpt":{"rendered":"<p>D\u00f9 b\u1ea1n l\u00e0 m\u1ed9t ng\u01b0\u1eddi m\u1edbi b\u1eaft \u0111\u1ea7u hay l\u00e0 m\u1ed9t ng\u01b0\u1eddi d\u00f9ng Linux kinh nghi\u1ec7m, vi\u1ec7c n\u1eafm v\u1eefng c\u00e1ch s\u1eed d\u1ee5ng l\u1ec7nh Find s\u1ebd gi\u00fap b\u1ea1n d\u1ec5 d\u00e0ng x\u00e1c \u0111\u1ecbnh v\u1ecb tr\u00ed c\u1ee7a nh\u1eefng t\u1eadp tin c\u1ea7n t\u00ecm v\u00e0 th\u1ef1c hi\u1ec7n c\u00e1c t\u00e1c v\u1ee5 qu\u1ea3n l\u00fd h\u1ec7 th\u1ed1ng m\u1ed9t c\u00e1ch hi\u1ec7u qu\u1ea3. Trong b\u00e0i [&hellip;]<\/p>\n","protected":false},"author":19,"featured_media":84031,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7376],"tags":[6187],"class_list":["post-15714","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thu-thuat-hosting-vps","tag-ho-tro-developer"],"_links":{"self":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/15714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/comments?post=15714"}],"version-history":[{"count":1,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/15714\/revisions"}],"predecessor-version":[{"id":114761,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/posts\/15714\/revisions\/114761"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media\/84031"}],"wp:attachment":[{"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/media?parent=15714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/categories?post=15714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tino.vn\/blog\/wp-json\/wp\/v2\/tags?post=15714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}