EX1
EX1
• The root - /
• ls: Lists the directory contents: Liệt kê nội dung thư mục
• pwd: Show current working directory: Hiển thị thư mục làm việc hiện tại
• cd: Change working directory: Thay đổi thư mục làm việc
• cp : Copy files and directories: Sao chép tập tin và thư mục
• cat: view the content of a file: Xem nội dung của file
• man: Display on-line manual pages: Hiển thị các trang hướng dẫn trực
tuyến
• which: print the directory contain the command: In các thư mục chứa lệnh
which gcc
Emacs Commands
• Emacs uses Control and Escape (or Alt) characters to distinguish editor
commands from text to be inserted in the buffer.
– Control-x means to hold down the control key, and type the letter x. (You
don't need to capitalize the x, or any other control character)
– [ESCAPE] x means to press the escape key down, release it, and then type
x.
– Abreviation: C-x for Ctrl-X and M-x means Meta-x
– You can use TAB key to view the list of file in current directory
– When you tape a character, all files whose name start with this character
will be displayed.
– C-x C-s
Moving Around
• The arrow keys on the keyboard work for moving around one line or one
character at a time.
– First move the cursor to the beginning (or end) of the block of text.
– Now move to the other end of the block of text and Delete or Copy the
block:
• Delete: C-w
• Copy: M-w
– To Paste a copied block, move to the new location and insert with : C-y
EX3
_____
__________________________________________________
| | 06/08/2005
20235811 30/07/2027