{"id":827,"date":"2011-09-15T20:51:00","date_gmt":"2011-09-15T19:51:00","guid":{"rendered":"http:\/\/it4bus.vn\/itersdesktop\/2011\/09\/15\/tips-tricks-with-the-terminal-in-ubuntu-phan-2\/"},"modified":"2011-09-15T20:51:00","modified_gmt":"2011-09-15T19:51:00","slug":"tips-tricks-with-the-terminal-in-ubuntu-phan-2","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/vi\/2011\/09\/15\/tips-tricks-with-the-terminal-in-ubuntu-phan-2\/","title":{"rendered":"Tips tricks with the terminal in Ubuntu [Ph\u1ea7n 2]"},"content":{"rendered":"<div dir=\"ltr\" trbidi=\"on\">\n<b>L\u1ec7nh grep, egrep (extend grep)<\/b><\/p>\n<p>http:\/\/www.cyberciti.biz\/faq\/howto-use-grep-command-in-linux-unix\/<br \/>http:\/\/www.debian-administration.org\/articles\/460<\/p>\n<p><b>B\u1eadt c\u1eeda s\u1ed5 ch\u1ec9nh s\u1eeda th\u00f4ng tin c\u00e1c thi\u1ebft b\u1ecb k\u1ebft n\u1ed1i<\/b><br \/>nm-connection-editor<\/p>\n<p><b>L\u1ec7nh chmod, chown<\/b><br \/>Mu\u1ed1n set quy\u1ec1n thao t\u00e1c l\u00ean m\u1ed9t th\u01b0 m\u1ee5c (hay t\u1eadp tin) cho m\u1ed9t ng\u01b0\u1eddi d\u00f9ng n\u00e0o \u0111\u00f3, ch\u00fang ta d\u00f9ng l\u1ec7nh chown (Change Owner). C\u00fa ph\u00e1p: chown nvntung:nvntung these, trong \u0111\u00f3: nvntung l\u00e0 t\u00ean c\u1ee7a nh\u00f3m, v\u00e0 nvntung l\u00e0 t\u00ean c\u1ee7a owner v\u00e0 these l\u00e0 t\u00ean th\u01b0 m\u1ee5c. N\u1ebfu mu\u1ed1n set cho c\u00e1c th\u01b0 m\u1ee5c con b\u00ean trong these th\u00ec th\u00eam options -R (gi\u1ed1ng nh\u01b0 l\u1ec7nh cp -r \u0111\u1ec3 copy t\u1ea5t c\u1ea3 c\u00e1c n\u1ed9i dung b\u00ean trong m\u1ed9t th\u01b0 m\u1ee5c, k\u1ec3 c\u1ea3 c\u00e1c th\u01b0 m\u1ee5c con).<\/p>\n<p>Trong khi \u0111\u00f3 l\u1ec7nh chmod l\u00e0 change mode (w: writable, r: readble v\u00e0 x: excutable). C\u00fa ph\u00e1p: chmod 775 th\u01b0 m\u1ee5c. V\u00e0 nh\u1edb l\u00e0 c\u00e1c macro 755, 775&#8230;<\/p>\n<p><b>Thay \u0111\u1ed5i ng\u00f4n ng\u1eef h\u1ec7 \u0111i\u1ec1u h\u00e0nh<\/b><br \/>N\u1ebfu trong ch\u00fang ta ai s\u1eed d\u1ee5ng h\u1ec7 \u0111i\u1ec1u h\u00e0nh Windows s\u1ebd th\u1ea5y vi\u1ec7c \u0111\u1ed5i c\u00e1c ng\u00f4n ng\u1eef kh\u00e1c nhau cho h\u1ec7 \u0111i\u1ec1u h\u00e0nh kh\u00f3 kh\u0103n \u0111\u1ebfn nh\u01b0\u1eddng n\u00e0o. T\u00f4i \u0111\u00e3 t\u1eebng gi\u00fap \u0111\u1ee1 anh b\u1ea1n chuy\u1ec3n giao di\u1ec7n ti\u1ebfng Ph\u00e1p c\u1ee7a Windows 7 Home Basic th\u00e0nh ti\u1ebfng anh ho\u1eb7c ti\u1ebfng Vi\u1ec7t. M\u1ed9t y\u00eau c\u1ea7u tr\u1ee3 gi\u00fap kh\u00f4ng d\u1ec5 t\u00fd n\u00e0o v\u00ec ngay tr\u00ean trang c\u1ee7a Microsoft, h\u1ecd ch\u1ec9 h\u1ed7 tr\u1ee3 vi\u1ec7c chuy\u1ec3n ng\u00f4n ng\u1eef cho nh\u1eefng phi\u00ean b\u1ea3n <b>Ultimate<\/b> ho\u1eb7c <b>Enterprise<\/b> c\u1ee7a h\u1ec7 \u0111i\u1ec1u h\u00e0nh Windows 7. Ch\u1ec9 c\u00f2n c\u00e1ch l\u00e0 ph\u00e1 b\u1ecf b\u1ea3n quy\u1ec1n win 7 home basic \u0111\u1ec3 c\u00e0i b\u1ea3n l\u1eadu Win7 Professional ho\u1eb7c b\u1ea3n n\u00e0o kh\u00e1c.<br \/>\u0110\u00e2y l\u00e0 \u0111i\u1ec1u m\u00e0 Ubuntu (Linux) h\u1ed7 tr\u1ee3 kh\u00e1 d\u1ec5 d\u00e0ng. B\u1ea1n thao t\u00e1c ch\u01b0a \u0111\u1ea7y 5 ph\u00fat. T\u00f4i tr\u00ecnh b\u00e0y ng\u1eafn g\u1ecdn 2 c\u00e1ch sau:<br \/>C\u00e1ch 1: \u0110\u1ee9ng \u1edf root ho\u1eb7c user c\u00f3 quy\u1ec1n qu\u1ea3n tr\u1ecb, b\u1ea1n th\u1ef1c hi\u1ec7n c\u00e1c l\u1ec7nh sau:<\/p>\n<pre>export LANG=en_US<br \/>export LANGUAGE=en_US<br \/>sudo dpkg-reconfigure locales<br \/>echo \"export LANG=en_US\" >> \/home\/user\/.profile<\/pre>\n<p>C\u00e1ch 2: B\u1ea1n xem nh\u01b0 h\u00ecnh d\u01b0\u1edbi<\/p>\n<div><a href=\"http:\/\/3.bp.blogspot.com\/-BAgvgHSSg34\/TwMpCpKj9MI\/AAAAAAAACRw\/QG-NoskBBZ4\/s1600\/Language+Support.png\" imageanchor=\"1\"><img decoding=\"async\" border=\"0\" src=\"http:\/\/3.bp.blogspot.com\/-BAgvgHSSg34\/TwMpCpKj9MI\/AAAAAAAACRw\/QG-NoskBBZ4\/s1600\/Language+Support.png\"\/><\/a><\/div>\n<p>Ch\u1ecdn <span>System > Administration > Language Support<\/span>. N\u1ebfu Ubuntu h\u1ecfi c\u00e0i \u0111\u1eb7t m\u1ed9t v\u00e0i g\u00f3i th\u00eam v\u00e0o, nh\u1ea5n INSTALL \u0111\u1ec3 c\u00e0i \u0111\u1eb7t.<br \/>B\u00e2y gi\u1edd, b\u1ea1n c\u00f3 th\u1ec3 ch\u1ecdn ng\u00f4n ng\u1eef m\u00e0 b\u1ea1n mu\u1ed1n trong danh s\u00e1ch ng\u00f4n ng\u1eef m\u00e0 h\u1ec7 th\u1ed1ng h\u1ed7 tr\u1ee3 (Supported Language List). Nh\u1ea5n <b>Apply<\/b> \u0111\u1ec3 c\u00e0i \u0111\u1eb7 ng\u00f4n ng\u1eef m\u1edbi. Ch\u1ecdn ng\u00f4n ng\u1eef ng\u1ea7m \u0111\u1ecbnh trong ph\u1ea7n Default Language. Click OK \u0111\u1ec3 k\u1ebft th\u00fac thao t\u00e1c.<\/p>\n<p><b>L\u01b0u \u00fd:<\/b> <span>Vi\u1ec7c c\u00e0i \u0111\u1eb7 ng\u00f4n ng\u1eef m\u1edbi ch\u1ec9 c\u00f3 t\u00e1c d\u1ee5ng \u1edf l\u1ea7n kh\u1edfi \u0111\u1ed9ng m\u00e1y k\u1ebf ti\u1ebfp<\/span>.<\/p>\n<p><b>How To Count The Number Of Lines In A File In Linux Shell Command<\/b><br \/><a href=\"http:\/\/www.wallpaperama.com\/forums\/how-to-count-the-number-of-lines-in-a-file-in-linux-shell-command-t1084.html\">http:\/\/www.wallpaperama.com\/forums\/how-to-count-the-number-of-lines-in-a-file-in-linux-shell-command-t1084.html<\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>L\u1ec7nh grep, egrep (extend grep) http:\/\/www.cyberciti.biz\/faq\/howto-use-grep-command-in-linux-unix\/http:\/\/www.debian-administration.org\/articles\/460 B\u1eadt c\u1eeda s\u1ed5 ch\u1ec9nh s\u1eeda th\u00f4ng tin c\u00e1c thi\u1ebft b\u1ecb k\u1ebft n\u1ed1inm-connection-editor L\u1ec7nh chmod, chownMu\u1ed1n set quy\u1ec1n thao t\u00e1c l\u00ean m\u1ed9t th\u01b0 m\u1ee5c (hay&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[174,189,223,176],"tags":[],"class_list":["post-827","post","type-post","status-publish","format-standard","hentry","category-linux","category-terminal","category-tips-tricks","category-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/827","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/comments?post=827"}],"version-history":[{"count":0,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/posts\/827\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/media?parent=827"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/categories?post=827"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/vi\/wp-json\/wp\/v2\/tags?post=827"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}