Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Hành động Di chuyển xuống một dòng Di chuyển lên một dòng xuất hiện tiếp theo của một thuật ngữ tìm kiếm Tìm sự xuất hiện của một thuật ngữ tìm kiếm trước đây Quit ít Thay thế SEARCH_STRING với chuỗi tìm kiếm, thay thế tên tập tin với tên của tập tin có nội dung bạn muốn tìm kiếm. Để biết thêm thông tin về các lệnh ít, xem trang người đàn ông của mình. | Key Command Action J or Down Arrow Scroll down a line K or Up Arrow Scroll up a line N Find the next occurrence of a search term P Find the previous occurrence of a search term Q Quit less For more information about the less command see its man page. Searching for Text in a File To locate a string within a file use the grep tool. The grep tool searches the named input files for lines containing a match to the given pattern. By default grep prints the matching lines. To search for a unique string in a file grep search_string filename Replace search_string with the the string to search for and replace filename with the name of the file whose contents you want to search. Backing Up and Restoring Time Machine is extremely useful for user backups but server administrators might have different backup requirements. Mac OS X Server provides several command-line tools for backing up and restoring data rsync Use this command to keep a backup copy of your data in sync with the original. rsync copies only the files that have changed. ditto Use this command to perform full backups. asr Use this command to back up and restore an entire volume. For more information about these commands see their man pages. Note You can use these commands with the launchctl command to automate data backup. Chapter 5 Common Command-Line Tasks 41 Accessing Apple Hardware from the Command Line 6 Learn how to access hardware-level controls like restarting shutting down powering up and selecting boot options from the command line. This chapter introduces commands for shutting down or restarting a local or remote computer. Computers need to be shut down or restarted whether locally or remotely when installing tools or making computer repairs. Restarting a Computer To restart a computer at a specific time use the reboot or shutdown -r command. For more information see their man pages. To restart the local computer shutdown -r now To restart a remote computer immediately ssh -l root computer shutdown -r .