Bài đăng

Hiển thị các bài đăng có nhãn Linux

[Linux Command] - Các lệnh cơ bản

Hình ảnh
Login into your Linux machine, and do the following using a terminal: Run  "pwd"  to check the present working directory If you are not in your home directory, run the command " cd " Run " cd /etc " Run " cd ~ " Check if you are back in your home directory? You should be. If not, you did something wrong. Run " cd /usr " Run " cd $HOME " Check if you are back in your home directory? You should be. If not, you did something wrong. tạo file: touch sửa file: edit/open filename đọc file: cat filename sao chép file: cp di chuyển: mv tail -n N đọc và in ra N dòng  less   in ra nội dung của một file theo từng trang grep -i   để tìm kiếm không phân biệt hoa thường hoặc  grep -r    để tìm kiếm trong toàn thư mục  find -iname   để tìm kiếm không phân biệt hoa thường  tar -cvf    tạo file nén (.tar) từ các file có sẵn.   tar -tvf   xem nội dung file nén (.tar).    tar -xvf   ...