Linux

Hệ điều hành nguồn mở Linux

Add git branch name to bash prompt

https://coderwall.com/p/fasnya/add-git-branch-name-to-bash-prompt https://medium.com/fuzzy-code/show-current-git-branch-in-terminal-macos-e319e88046a6 View the code on Gist. https://stackoverflow.com/questions/17333531/how-can-i-display-the-current-branch-and-folder-path-in-terminal https://www.codementor.io/tips/8142473421/add-colors-and-show-git-branches-in-your-bash-terminal-osx-

Read More »

How to export environment variables defined in a file

Using environment variables in modern applications is very common https://unix.stackexchange.com/questions/79064/how-to-export-variables-from-a-file https://unix.stackexchange.com/a/79084/30988 set -a . ./tmp.txt set +a

Read More »

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

How to use tee command to append a file

Working with Unix-based systems, I have gradually become sluggish to open an editor and tweak something in a file. Especially, system files must only be allowed by a superuser to open which causes a bit complicated and bored. If you ...

Read More »

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 – a common and unique file explorer on Mac, this ...

Read More »

Building a Web Server in VirtualBox

Sorry, this entry is only available in Vietnamese.

Read More »

Apache could not reliably determine the servers fully qualified domain name using 127.0.1.1 for server name error

Apache2 with the error the fully qualified domain name

Apache is one of commonly used web servers in Linux. At the time modifying apache, you need to restart it for updating the modifications without restarting Linux. Sometimes, we may face with the following troubleshooting: To fix that problem, you need to ...

Read More »

How to see Ubuntu distribution version

Thông tin hệ thống | System Information

Tình cờ một ai hỏi bạn câu hỏi kiểu: Ubuntu bạn đang dùng là phiên bản mấy? Phiên bản 32 hay 64 bit? Làm thế nào để xem thông tin hệ điều hành Ubuntu? System Monitor – cái tên đã ...

Read More »

Add plugins or extensions to LibreOffice

(Tiếng Việt) Thêm các tính năng mở rộng cho LibreOffice: Tôi có nhu cầu chuyển đổi các file văn bản .odt hoặc .doc sang dạng epub để tiện cho việc đọc trên các thiết bị chạy Android. ePub là một chuẩn mới để làm sách điện tử.

Read More »

Create shortcuts for commands in Linux

How to use 'alias'

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

Read More »

How To Find Similar Lines Between Two Text Files In Linux

comm command to find similar lines between two files in Linux/Ubuntu

Those working in Unix environment must be aware of the requirement to find common lines between two Unix files. In this article, I want to introduce you a solution of this problem. For our example, I have taken two files ...

Read More »