{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Command Line - H iu Hnh Linux Bi thc hnh 2 Linux v cc lnh...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
H Đ i u Hành Linux Command Line đơ n gi n 1 Bài th c hành 2: Linux và các l nh shell (command line) Gi i thi u tính n ă ng history: Để xem l i danh sách các l nh đ ã gõ, có th dùng l nh history $ history Mu n th c hi n l i l nh ngay tr ướ c đ ó, có th dùng l nh !! (2 d u ! liên ti ế p) $ !! Mu n th c hi n l i l nh th n, ví d l nh 15, ta dùng cú pháp $ !15 L ư u phiên làm vi c đ ã gõ vào m t file, ta có th $ history > filename Ví d : $history > /root/luubai.txt S l nh đượ c l ư u l i m c đị nh là 100, có th s a b ng cách set bi ế n HISTSIZE Th c hi n các l nh sau: Cho bi ế t l nh in ra màn hình câu thông báo “Xin chao cac ban”. Cho bi ế t l nh để chuy n sang th ư m c /usr/lib Cho bi ế t l nh in ra màn hình đườ ng d n th ư m c HOME c a user hi n t i (current user’s home directory) Gi s đ ang th ư m c HOME, cho bi ế t đườ ng d n t ươ ng đố i để đế n /etc Cho bi ế t l nh li t kê các t p tin và th ư m c trong th ư m c /root Cho bi ế t l nh li t kê các t p tin, th ư m c con và c n i dung các th ư m c con c a th ư m c /etc , k ế t qu th hi n theo t ng trang T ươ ng t câu trên, nh ư ng l ư u k ế t qu vào file /root/list.txt Li t kê các t p tin có trong /boot, k ế t qu l ư u ti ế p theo vào file /root/list.txt
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern