|
8.
|
|
|
Did you know that releases of Ubuntu labeled LTS are maintained for 5 years on servers? 'cat /etc/lsb-release' will tell you which release you are on.
|
|
|
type: Plain text
|
|
|
|
Bạn có biết rằng các phiên bản của hệ điều hành Ubuntu được gắn nhãn LTS được bảo trì trong vòng 5 năm? Dùng câu lệnh 'cat /etc/lsb-release' để biết thông tin về phiên bản mà bạn đang sử dụng.
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:27
|
|
9.
|
|
|
Browse the command line history with ctrl-r and then type a few characters that you know are part of the command you are looking for.
|
|
|
type: Plain text
|
|
|
|
Duyệt lịch sử dòng lệnh với ctrl-r để tìm lại câu lệnh đã gõ chỉ với một vài ký tự có trong câu lệnh đã thực thi của bạn.
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:30
|
|
10.
|
|
|
Edit the command line with cut and paste: ctrl-k for cut, and ctrl-y for paste.
|
|
|
type: Plain text
|
|
|
|
Chỉnh sửa dòng lệnh bằng cách cắt và dán: Ctrl-K để cắt, và Ctrl-Y để dán.
|
|
Translated and reviewed by
Trung Ngô
|
|
|
|
Located in
ubuntu-server-tips:33
|
|
11.
|
|
|
Reach the end-of-line with ctrl-e and the beginning of line with ctrl-a.
|
|
|
type: Plain text
|
|
|
|
Đến cuối dùng với ctrl-e và trở về đầu dòng với ctrl-a.
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:35
|
|
12.
|
|
|
Instead of typing the user and group, if they are the same (like for www-data) you can just type the user followed by a colon: 'sudo chown -R www-data: *'
|
|
|
type: Plain text
|
|
|
|
Thay vì phải gõ cả tên người dùng và nhóm, nếu chúng như nhau (chẳng hạn như www-data), bạn chỉ cần gõ tên người dùng, và theo tiếp ngày sau đấy là dấu hai chấm: 'sudo chown -R www-data: *'
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:39
|
|
13.
|
|
|
Use the "which" command to find if an executable is in your path, and if it is, where you can find the file. e.g. 'which nano'
|
|
|
type: Plain text
|
|
|
|
Sử dụng câu lệnh "which" để tìm xem tệp tin trong đường dẫn hệ thống có phải là chương trình hay không và cho biết đường dẫn của nó ở đâu, ví dụ: 'which nano'
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:42
|
|
14.
|
|
|
Instead of typing exit or closing the terminal if you want to logout you can press Ctrl+D.
|
|
|
type: Plain text
|
|
|
|
Thay vì gõ exit hoặc dùng chuột để đóng cửa sổ lệnh, khi kết xuất bạn chỉ cần ấn tổ hợp phím Ctrl + D.
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:45
|
|
15.
|
|
|
Use 'tail -f file' to watch a log file as messages get appended, and use 'tail -100 file' to change the count of lines read from the file.
|
|
|
type: Plain text
|
|
|
|
Dùng 'tail -f file' để theo dõi một tệp nhật ký và các bản ghi được cập nhật theo thời gian thực sau đó, và dùng 'tail -100 file' để thay đổi số dòng được kết xuất ra màn hình của một tệp nhật ký.
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:48
|
|
16.
|
|
|
An easy way to see what processes own which network connections: 'sudo netstat -tup' for connections and 'sudo netstat -tupl for listening process.
|
|
|
type: Plain text
|
|
|
|
Một cách đơn giản để xem những tiến trình nào đang sử dụng kết nối mạng là: 'sudo netstat -tup' và 'sudo netstat -tupl' cho các tiến trình đang cung cấp dịch vụ mạng.
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:51
|
|
17.
|
|
|
The 'history' command will show you the commands you've used before. Alternatively you can use the up arrow button to look through them.
|
|
|
type: Plain text
|
|
|
|
Câu lệnh 'history' hiển thị các câu lệnh mà bạn đã dùng trước đấy. Và bạn cũng có thể sử dụng mũi tên lên xuống để xem lại chúng.
|
|
Translated and reviewed by
Nghiem Ba Hieu
|
|
|
|
Located in
ubuntu-server-tips:54
|