![Phân tích tư tưởng của nhân dân qua đoạn thơ: Những người vợ nhớ chồng… Những cuộc đời đã hóa sông núi ta trong Đất nước của Nguyễn Khoa Điềm](https://timtailieu.net/upload/document/136415/phan-tich-tu-tuong-cua-nhan-dan-qua-doan-tho-039-039-nhung-nguoi-vo-nho-chong-nhung-cuoc-doi-da-hoa-song-nui-ta-039-039-trong-dat-nuoc-cua-nguyen-khoa-136415.jpg)
SUSE Linux 10 for dummies phần 3
Số trang: 19
Loại file: pdf
Dung lượng: 783.43 KB
Lượt xem: 10
Lượt tải: 0
Xem trước 2 trang đầu tiên của tài liệu này:
Thông tin tài liệu:
Tham khảo tài liệu suse linux 10 for dummies phần 3, công nghệ thông tin, hệ điều hành phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả
Nội dung trích xuất từ tài liệu:
SUSE Linux 10 for dummies phần 348 Part I: Getting to Know SUSE the one shown in Figure 3-7. That’s a terminal window, and it works just like an old-fashioned terminal. A shell program is running and ready to accept any text that you type. You type text, press Enter, and something happens (depending on what you typed). In GNOME, choose Applications➪System➪Terminal➪Gnome Terminal. That should then open up a terminal window. Figure 3-7: You can type Linux commands at the shell prompt in a terminal window. The prompt that you see depends on the shell that runs in that terminal window. The default Linux shell is called bash. Bash understands a whole host of standard Linux commands, which you can use to look at files, go from one directory to another, see what programs are running (and who else is logged in), and a whole lot more. In addition to the Linux commands, bash can run any program stored in an executable file. Bash can also execute shell scripts — text files that contain Linux commands. Understanding shell commands Because a shell interprets what you type, knowing how the shell figures out the text that you enter is important. All shell commands have this general format: command option1 option2 ... optionN Such a single line of commands is commonly called a command line. On a com- mand line, you enter a command followed by one or more optional parameters 49 Chapter 3: Starting SUSE for the First Time(or arguments). Such command line options (or command line arguments)help you specify what you want the command to do.One basic rule is that you have to use a space or a tab to separate the com-mand from the options. You also must separate options with a space or a tab.If you want to use an option that contains embedded spaces, you have to putthat option inside quotation marks. For example, to search for two words oftext in the password file, I enter the following grep command (grep is one ofthose cryptic commands used to search for text in files): grep “SSH daemon” /etc/passwdWhen grep prints the line with those words, it looks like this: sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/falseIf you created a user account in your name, go ahead and type the grep com-mand with your name as an argument, but remember to enclose the name inquotes. For example, here is how I search for my name in the /etc/passwdfile: grep “Naba Barkakati” /etc/passwdTrying a few Linux commandsWhile you have the terminal window open, try a few Linux commands just forfun. I guide you through some random examples to give you a feel for whatyou can do at the shell prompt.To see how long the Linux PC has been up since you last powered it up, typethe following (Note: I show the typed command in bold, followed by theoutput from that command.): uptime 3:52am up 29 days 55:53, 5 users, load average: 0.04, 0.32, 0.38The part up 29 days, 55:53 tells you that this particular PC has been upfor nearly a month. Hmmm . . . can Windows do that?To see what version of Linux kernel your system is running, use the unamecommand like this: uname -srv50 Part I: Getting to Know SUSE This runs the uname command with three options -s, -r, and -v (these can be combined as -srv, as this example shows). The -s option causes uname to print the name of the kernel, -r prints the kernel release number, and -v prints the kernel version number. The command generates the following output on one of my Linux systems: Linux 2.6.13-8-default #1 Tue Sep 6 12:59:22 UTC 2005 In this case, the system is running Linux kernel version 2.6.13. To read a file, use the more command. Here’s an example that displays the contents of the /etc/passwd file: more /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/bash daemon:x:2:2:Daemon:/sbin:/bin/bash lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash ... lines deleted ... To see a list of all the programs currently running on the system, use the ps command, like this: ps ax The ps command takes many options, ...
Nội dung trích xuất từ tài liệu:
SUSE Linux 10 for dummies phần 348 Part I: Getting to Know SUSE the one shown in Figure 3-7. That’s a terminal window, and it works just like an old-fashioned terminal. A shell program is running and ready to accept any text that you type. You type text, press Enter, and something happens (depending on what you typed). In GNOME, choose Applications➪System➪Terminal➪Gnome Terminal. That should then open up a terminal window. Figure 3-7: You can type Linux commands at the shell prompt in a terminal window. The prompt that you see depends on the shell that runs in that terminal window. The default Linux shell is called bash. Bash understands a whole host of standard Linux commands, which you can use to look at files, go from one directory to another, see what programs are running (and who else is logged in), and a whole lot more. In addition to the Linux commands, bash can run any program stored in an executable file. Bash can also execute shell scripts — text files that contain Linux commands. Understanding shell commands Because a shell interprets what you type, knowing how the shell figures out the text that you enter is important. All shell commands have this general format: command option1 option2 ... optionN Such a single line of commands is commonly called a command line. On a com- mand line, you enter a command followed by one or more optional parameters 49 Chapter 3: Starting SUSE for the First Time(or arguments). Such command line options (or command line arguments)help you specify what you want the command to do.One basic rule is that you have to use a space or a tab to separate the com-mand from the options. You also must separate options with a space or a tab.If you want to use an option that contains embedded spaces, you have to putthat option inside quotation marks. For example, to search for two words oftext in the password file, I enter the following grep command (grep is one ofthose cryptic commands used to search for text in files): grep “SSH daemon” /etc/passwdWhen grep prints the line with those words, it looks like this: sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/falseIf you created a user account in your name, go ahead and type the grep com-mand with your name as an argument, but remember to enclose the name inquotes. For example, here is how I search for my name in the /etc/passwdfile: grep “Naba Barkakati” /etc/passwdTrying a few Linux commandsWhile you have the terminal window open, try a few Linux commands just forfun. I guide you through some random examples to give you a feel for whatyou can do at the shell prompt.To see how long the Linux PC has been up since you last powered it up, typethe following (Note: I show the typed command in bold, followed by theoutput from that command.): uptime 3:52am up 29 days 55:53, 5 users, load average: 0.04, 0.32, 0.38The part up 29 days, 55:53 tells you that this particular PC has been upfor nearly a month. Hmmm . . . can Windows do that?To see what version of Linux kernel your system is running, use the unamecommand like this: uname -srv50 Part I: Getting to Know SUSE This runs the uname command with three options -s, -r, and -v (these can be combined as -srv, as this example shows). The -s option causes uname to print the name of the kernel, -r prints the kernel release number, and -v prints the kernel version number. The command generates the following output on one of my Linux systems: Linux 2.6.13-8-default #1 Tue Sep 6 12:59:22 UTC 2005 In this case, the system is running Linux kernel version 2.6.13. To read a file, use the more command. Here’s an example that displays the contents of the /etc/passwd file: more /etc/passwd root:x:0:0:root:/root:/bin/bash bin:x:1:1:bin:/bin:/bin/bash daemon:x:2:2:Daemon:/sbin:/bin/bash lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash ... lines deleted ... To see a list of all the programs currently running on the system, use the ps command, like this: ps ax The ps command takes many options, ...
Tìm kiếm theo từ khóa liên quan:
thủ thuật máy tính mẹo vặt máy tính kỹ thuật lập trình mẹo hay Linux tin học căn bản thủ thuật tin học tự học tin họcTài liệu liên quan:
-
Top 10 mẹo 'đơn giản nhưng hữu ích' trong nhiếp ảnh
11 trang 332 0 0 -
Làm việc với Read Only Domain Controllers
20 trang 323 0 0 -
Kỹ thuật lập trình trên Visual Basic 2005
148 trang 281 0 0 -
Cách phân tích thiết kế hệ thống thông tin quan trọng phần 4
13 trang 231 0 0 -
Thủ thuật chặn web đen bằng phần mềm
10 trang 231 0 0 -
Sửa lỗi các chức năng quan trọng của Win với ReEnable 2.0 Portable Edition
5 trang 227 0 0 -
NGÂN HÀNG CÂU HỎI TRẮC NGHIỆM THIẾT KẾ WEB
8 trang 224 0 0 -
Xử lý tình trạng máy tính khởi động/tắt chậm
4 trang 223 0 0 -
Phần III: Xử lý sự cố Màn hình xanh
3 trang 222 0 0 -
Bài giảng điện tử môn tin học: Quản trị các hệ thống thông tin quản lý xuyên quốc gia
27 trang 220 0 0