How to append text to a system file via terminal with sudo command

echo ‘192.168.1.254 router’ | sudo tee -a /etc/hostsNAME tee — pipe fitting SYNOPSIS tee [-ai] [file …] DESCRIPTION The tee utility copies standard input to standard output, making a copy…

How to check size of a directory via Terminal in MacOS

Sometimes we want to have a quick check the size of a specific directory in your current place from the terminal where you are working. Instead of opening Finder application…

Créer des raccourcis pour les commandes sous Linux

http://community.linuxmint.com/tutorial/view/891

Comment trouver des lines commun entre deux fichiers texte dans Linux

Désolé, cet article est seulement disponible en Tiếng Việt et English.

Sử dụng lênh find trong Ubuntu

Tìm hoài thấy cái này hay nên tạm để đây, sẽ dành thời gian viết một bài tổng hợp sau 🙂 http://www.codecoffee.com/tipsforlinux/articles/21.html Đơn giản bạn muốn tìm những file có…

Quản lý user trên Ubuntu qua terminal

Mặc dù đã cảm thấy ưng ý với Dropbox về việc đồng bộ dữ liệu nhưng ghét một nỗi là nếu Dropbox nằm trên hai thư mục khác nhau của…

Tips tricks with the terminal in Ubuntu [Phần 2]

Lệnh grep, egrep (extend grep) http://www.cyberciti.biz/faq/howto-use-grep-command-in-linux-unix/http://www.debian-administration.org/articles/460 Bật cửa sổ chỉnh sửa thông tin các thiết bị kết nốinm-connection-editor Lệnh chmod, chownMuốn set quyền thao tác lên một thư mục (hay…

Tips tricks with the terminal in Ubuntu [Phần 1]

In ấnLệnh lpr là sử dụng để in tài liệu trong môi trường Linux do gói CUPS cung cấp. Đây là toàn bộ hướng dẫn. Bên dưới chỉ tóm tắt…