Công cụ

Bash Tham Khảo Nhanh

Cheat sheet sẵn sàng để in cho Bash Tham Khảo Nhanh, được sắp xếp để tra nhanh, học tập và dùng cạnh bàn làm việc

Nguồn
GNU Bash Manual (gnu.org/software/bash/manual)
Giấy phép
MIT
Cập nhật
2026-03-27

Mẫu

Nội dung cheat sheet này

  • Cơ Bản
  • Biến & Mở Rộng
  • Điều Kiện
  • Vòng Lặp
  • Hàm
  • Pipe & Chuyển Hướng
  • Thao Tác File
  • Xử Lý Văn Bản
  • Quyền Hạn

echo & Điều Hướng

echo "Hello, World!"     # print text
pwd                      # print working directory
cd /path/to/dir          # change directory
cd ..                    # go up one level
cd ~                     # go to home directory
cd -                     # go to previous directory

Liệt Kê & Tạo

ls                # list files
ls -la            # long format, show hidden
ls -lh            # human-readable sizes
mkdir mydir       # create directory
mkdir -p a/b/c    # create nested directories

Sao Chép, Di Chuyển & Xóa

cp file.txt copy.txt      # copy file
cp -r dir/ backup/        # copy directory recursively
mv old.txt new.txt        # rename / move
rm file.txt               # delete file
rm -r dir/                # delete directory recursively
rm -rf dir/               # force delete (no prompt)

Tải cheat sheet đầy đủ với tất cả các phần, sẵn sàng để in

Tải PDF

Tải xuống

Chọn dạng phù hợp với cách bạn đọc