thuymiendang
New member
[TIẾNG VIỆT]:
** Cách kiểm tra phiên bản Amazon Linux của bạn một cách dễ dàng **
Amazon Linux là một phân phối Linux được thiết kế để chạy trên Amazon Web Services (AWS).Nó dựa trên hệ điều hành Red Hat Enterprise Linux (RHEL) và nó được cập nhật thường xuyên với các bản vá và tính năng bảo mật mới nhất.
Nếu bạn đang sử dụng Amazon Linux, điều quan trọng là phải biết bạn đang chạy phiên bản nào.Thông tin này có thể giúp bạn khắc phục sự cố và nó cũng có thể giúp bạn xác định xem bạn có cần nâng cấp lên phiên bản mới nhất hay không.
Có một vài cách khác nhau để kiểm tra phiên bản Amazon Linux của bạn.Sau đây là ba phương pháp phổ biến nhất:
1. ** Sử dụng lệnh `lsb_release` **
Lệnh `lsb_release` là một tiện ích Linux hiển thị thông tin về phân phối Linux mà bạn đang chạy.Để sử dụng lệnh này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:
`` `
lsb_release -a
`` `
Lệnh này sẽ hiển thị các thông tin sau:
* Tên phân phối Linux của bạn
* Số phiên bản của phân phối Linux của bạn
* Ngày phát hành phân phối Linux của bạn
* Tên mã của phân phối Linux của bạn
Ví dụ: đầu ra sau đây cho thấy hệ thống đang chạy Amazon Linux 2018.03.0 (HVM), đây là phiên bản mới nhất của Amazon Linux:
`` `
Không có mô -đun LSB có sẵn.
ID nhà phân phối: Amazon Linux
Mô tả: Amazon Linux AMI 2018.03.0 (HVM)
Phát hành: 2018.03.0
Tên mã: HVM
`` `
2. ** Sử dụng lệnh `cat` **
Lệnh `Cat` là một tiện ích Linux hiển thị nội dung của một tệp.Để sử dụng lệnh này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:
`` `
CAT /ETC /OS-Phát hành
`` `
Lệnh này sẽ hiển thị các thông tin sau:
* Tên phân phối Linux của bạn
* Số phiên bản của phân phối Linux của bạn
* Ngày phát hành phân phối Linux của bạn
* Tên mã của phân phối Linux của bạn
Ví dụ: đầu ra sau đây cho thấy hệ thống đang chạy Amazon Linux 2018.03.0 (HVM), đây là phiên bản mới nhất của Amazon Linux:
`` `
Name = "Amazon Linux"
Phiên bản = "2018.03.0"
Id = "amzn"
Id_like = "rhel fedora"
Phiên bản_id = "2018.03.0"
Đẹp_name = "Amazon Linux 2018.03.0 (HVM)"
ANSI_COLOR = "0; 33"
CPE_NAME = "CPE:/O: Amazon: Linux: 2018.03.0: HVM"
Home_url = "Amazon Linux 2"
Tài liệu_url = "https://docs.aws.amazon.com/amazon-linux-2/latest/"
BUG_REPORT_URL = "https://github.com/aws/amazon-linux-2/issues/new/choose"
`` `
3. ** Sử dụng lệnh `systemctl` **
Lệnh `Systemctl` là một tiện ích Linux quản lý các dịch vụ hệ thống.Để sử dụng lệnh này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:
`` `
Trạng thái hệ thống Amazon-Linux-RELEASE
`` `
Lệnh này sẽ hiển thị các thông tin sau:
* Trạng thái của dịch vụ phát hành Amazon-Linux
* Phiên bản của gói phát hành Amazon-Linux
Ví dụ: đầu ra sau đây cho thấy dịch vụ phát hành Amazon-Linux đang chạy và phiên bản của gói Amazon-Linux-RELEASE là 2018.03.0:
`` `
● Amazon-Linux-RELEASE.Service-Thông tin phát hành của Amazon Linux
Đã tải: Đã tải (/usr/lib/systemD/system
Active: Active (Chạy) kể từ THU 2019-01-10 13:37:33 UTC;1h 12 phút trước
[ENGLISH]:
**How to Check Your Amazon Linux Version with Ease**
Amazon Linux is a Linux distribution that is designed to run on Amazon Web Services (AWS). It is based on the Red Hat Enterprise Linux (RHEL) operating system, and it is updated regularly with the latest security patches and features.
If you are using Amazon Linux, it is important to know which version you are running. This information can help you to troubleshoot problems, and it can also help you to determine if you need to upgrade to the latest version.
There are a few different ways to check your Amazon Linux version. The following are the three most common methods:
1. **Using the `lsb_release` command**
The `lsb_release` command is a Linux utility that displays information about the Linux distribution that you are running. To use this command, open a terminal window and type the following command:
```
lsb_release -a
```
This command will display the following information:
* The name of your Linux distribution
* The version number of your Linux distribution
* The release date of your Linux distribution
* The codename of your Linux distribution
For example, the following output shows that the system is running Amazon Linux 2018.03.0 (HVM), which is the latest version of Amazon Linux:
```
No LSB modules are available.
Distributor ID: Amazon Linux
Description: Amazon Linux AMI 2018.03.0 (HVM)
Release: 2018.03.0
Codename: HVM
```
2. **Using the `cat` command**
The `cat` command is a Linux utility that displays the contents of a file. To use this command, open a terminal window and type the following command:
```
cat /etc/os-release
```
This command will display the following information:
* The name of your Linux distribution
* The version number of your Linux distribution
* The release date of your Linux distribution
* The codename of your Linux distribution
For example, the following output shows that the system is running Amazon Linux 2018.03.0 (HVM), which is the latest version of Amazon Linux:
```
NAME="Amazon Linux"
VERSION="2018.03.0"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03.0"
PRETTY_NAME="Amazon Linux 2018.03.0 (HVM)"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03.0:hvm"
HOME_URL="https://aws.amazon.com/amazon-linux-2/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/amazon-linux-2/latest/"
BUG_REPORT_URL="https://github.com/aws/amazon-linux-2/issues/new/choose"
```
3. **Using the `systemctl` command**
The `systemctl` command is a Linux utility that manages system services. To use this command, open a terminal window and type the following command:
```
systemctl status amazon-linux-release
```
This command will display the following information:
* The status of the amazon-linux-release service
* The version of the amazon-linux-release package
For example, the following output shows that the amazon-linux-release service is running and that the version of the amazon-linux-release package is 2018.03.0:
```
● amazon-linux-release.service - Amazon Linux release information
Loaded: loaded (/usr/lib/systemd/system/amazon-linux-release.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-01-10 13:37:33 UTC; 1h 12min ago
** Cách kiểm tra phiên bản Amazon Linux của bạn một cách dễ dàng **
Amazon Linux là một phân phối Linux được thiết kế để chạy trên Amazon Web Services (AWS).Nó dựa trên hệ điều hành Red Hat Enterprise Linux (RHEL) và nó được cập nhật thường xuyên với các bản vá và tính năng bảo mật mới nhất.
Nếu bạn đang sử dụng Amazon Linux, điều quan trọng là phải biết bạn đang chạy phiên bản nào.Thông tin này có thể giúp bạn khắc phục sự cố và nó cũng có thể giúp bạn xác định xem bạn có cần nâng cấp lên phiên bản mới nhất hay không.
Có một vài cách khác nhau để kiểm tra phiên bản Amazon Linux của bạn.Sau đây là ba phương pháp phổ biến nhất:
1. ** Sử dụng lệnh `lsb_release` **
Lệnh `lsb_release` là một tiện ích Linux hiển thị thông tin về phân phối Linux mà bạn đang chạy.Để sử dụng lệnh này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:
`` `
lsb_release -a
`` `
Lệnh này sẽ hiển thị các thông tin sau:
* Tên phân phối Linux của bạn
* Số phiên bản của phân phối Linux của bạn
* Ngày phát hành phân phối Linux của bạn
* Tên mã của phân phối Linux của bạn
Ví dụ: đầu ra sau đây cho thấy hệ thống đang chạy Amazon Linux 2018.03.0 (HVM), đây là phiên bản mới nhất của Amazon Linux:
`` `
Không có mô -đun LSB có sẵn.
ID nhà phân phối: Amazon Linux
Mô tả: Amazon Linux AMI 2018.03.0 (HVM)
Phát hành: 2018.03.0
Tên mã: HVM
`` `
2. ** Sử dụng lệnh `cat` **
Lệnh `Cat` là một tiện ích Linux hiển thị nội dung của một tệp.Để sử dụng lệnh này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:
`` `
CAT /ETC /OS-Phát hành
`` `
Lệnh này sẽ hiển thị các thông tin sau:
* Tên phân phối Linux của bạn
* Số phiên bản của phân phối Linux của bạn
* Ngày phát hành phân phối Linux của bạn
* Tên mã của phân phối Linux của bạn
Ví dụ: đầu ra sau đây cho thấy hệ thống đang chạy Amazon Linux 2018.03.0 (HVM), đây là phiên bản mới nhất của Amazon Linux:
`` `
Name = "Amazon Linux"
Phiên bản = "2018.03.0"
Id = "amzn"
Id_like = "rhel fedora"
Phiên bản_id = "2018.03.0"
Đẹp_name = "Amazon Linux 2018.03.0 (HVM)"
ANSI_COLOR = "0; 33"
CPE_NAME = "CPE:/O: Amazon: Linux: 2018.03.0: HVM"
Home_url = "Amazon Linux 2"
Tài liệu_url = "https://docs.aws.amazon.com/amazon-linux-2/latest/"
BUG_REPORT_URL = "https://github.com/aws/amazon-linux-2/issues/new/choose"
`` `
3. ** Sử dụng lệnh `systemctl` **
Lệnh `Systemctl` là một tiện ích Linux quản lý các dịch vụ hệ thống.Để sử dụng lệnh này, hãy mở một cửa sổ đầu cuối và nhập lệnh sau:
`` `
Trạng thái hệ thống Amazon-Linux-RELEASE
`` `
Lệnh này sẽ hiển thị các thông tin sau:
* Trạng thái của dịch vụ phát hành Amazon-Linux
* Phiên bản của gói phát hành Amazon-Linux
Ví dụ: đầu ra sau đây cho thấy dịch vụ phát hành Amazon-Linux đang chạy và phiên bản của gói Amazon-Linux-RELEASE là 2018.03.0:
`` `
● Amazon-Linux-RELEASE.Service-Thông tin phát hành của Amazon Linux
Đã tải: Đã tải (/usr/lib/systemD/system
Active: Active (Chạy) kể từ THU 2019-01-10 13:37:33 UTC;1h 12 phút trước
[ENGLISH]:
**How to Check Your Amazon Linux Version with Ease**
Amazon Linux is a Linux distribution that is designed to run on Amazon Web Services (AWS). It is based on the Red Hat Enterprise Linux (RHEL) operating system, and it is updated regularly with the latest security patches and features.
If you are using Amazon Linux, it is important to know which version you are running. This information can help you to troubleshoot problems, and it can also help you to determine if you need to upgrade to the latest version.
There are a few different ways to check your Amazon Linux version. The following are the three most common methods:
1. **Using the `lsb_release` command**
The `lsb_release` command is a Linux utility that displays information about the Linux distribution that you are running. To use this command, open a terminal window and type the following command:
```
lsb_release -a
```
This command will display the following information:
* The name of your Linux distribution
* The version number of your Linux distribution
* The release date of your Linux distribution
* The codename of your Linux distribution
For example, the following output shows that the system is running Amazon Linux 2018.03.0 (HVM), which is the latest version of Amazon Linux:
```
No LSB modules are available.
Distributor ID: Amazon Linux
Description: Amazon Linux AMI 2018.03.0 (HVM)
Release: 2018.03.0
Codename: HVM
```
2. **Using the `cat` command**
The `cat` command is a Linux utility that displays the contents of a file. To use this command, open a terminal window and type the following command:
```
cat /etc/os-release
```
This command will display the following information:
* The name of your Linux distribution
* The version number of your Linux distribution
* The release date of your Linux distribution
* The codename of your Linux distribution
For example, the following output shows that the system is running Amazon Linux 2018.03.0 (HVM), which is the latest version of Amazon Linux:
```
NAME="Amazon Linux"
VERSION="2018.03.0"
ID="amzn"
ID_LIKE="rhel fedora"
VERSION_ID="2018.03.0"
PRETTY_NAME="Amazon Linux 2018.03.0 (HVM)"
ANSI_COLOR="0;33"
CPE_NAME="cpe:/o:amazon:linux:2018.03.0:hvm"
HOME_URL="https://aws.amazon.com/amazon-linux-2/"
DOCUMENTATION_URL="https://docs.aws.amazon.com/amazon-linux-2/latest/"
BUG_REPORT_URL="https://github.com/aws/amazon-linux-2/issues/new/choose"
```
3. **Using the `systemctl` command**
The `systemctl` command is a Linux utility that manages system services. To use this command, open a terminal window and type the following command:
```
systemctl status amazon-linux-release
```
This command will display the following information:
* The status of the amazon-linux-release service
* The version of the amazon-linux-release package
For example, the following output shows that the amazon-linux-release service is running and that the version of the amazon-linux-release package is 2018.03.0:
```
● amazon-linux-release.service - Amazon Linux release information
Loaded: loaded (/usr/lib/systemd/system/amazon-linux-release.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2019-01-10 13:37:33 UTC; 1h 12min ago