0

tài liệu shell linux

Tài liệu về Linux

Tài liệu về Linux

Kỹ thuật lập trình

... shell thì dùng các ngôn ngữ lệnh khác. Shell sử dụng chính trong Linux là GNU Bourne Again Shell. Shell này là shell phát triển từ Bourne shell, là shell dùng chính trong hệ thống UNIX với ... nhiều loại shell được sử dụng trong Linux. Điểm quan trọng để phân biệt các shell với nhau là bộ lệnh của shell. Ví dụ, C shell thì sử dụng các lệnh tương tự ngôn ngữ C, Bourne shell thì dùng ... Của Linux Và Phân Phối Đến Ngày Nay 8Bài 4 : Kiến Trúc Của Một Hệ Điều Hành Linux 10Bài 5 : Các Bản Phát Hành Của Linux 12Bài 6 : Lợi Ích Của Khi Sử Dụng Linux 13Bài 7 : Bất Tiện Của Linux...
  • 22
  • 917
  • 10
Tài liệu Unix Linux Reference ppt

Tài liệu Unix Linux Reference ppt

Hệ điều hành

... command is a C shell built-in command, the shell exe-cutes it directly. Otherwise, the shell searches for a fileby that name with execute access. If the command name con-tains a /, the shell takes ... with a namethat starts with `-', as when started by login(1), the shell runs as a login shell. If the shell is a login shell, this is the sequence of invo-cations: First, commands in /etc/.login ... exec(2));the C shell then attempts to execute the file by spawning anew shell, as follows:+ If the first character of the file is a #, a C shell is invoked.+ Otherwise, a Bourne shell is invoked.Signal...
  • 374
  • 416
  • 0
Tài liệu Samba linux pptx

Tài liệu Samba linux pptx

Hệ điều hành

... Windows kết nối vào Linux. (User tồn tại trên Linux) . Global SettingPhần này cung cấp những cấu hình chung của Samba Server, chúng ta cần lưu ý một số điểm sau:–Workgroup = Linux : Chỉ ra ... Thạch Thử kết nối với Linux Client# smbclient //[tên máy tính]/[tên tài nguyên]Nếu sử dụng mức độ bảo mật là user thì truy cập như sau:# smbclient //[tên máy tinh]/[tên tài nguyên] –U [tên ... thực hiện giống như chương trình FTP Client. Tiện ích này được sử dụng để truy cập đến những tài nguyên chia sẻ Samba hay những Server tương thích khác (Windows NT…). Chia sẻ thư mụcSau...
  • 19
  • 1,126
  • 9
Tài liệu Embedded Linux driver development doc

Tài liệu Embedded Linux driver development doc

Hệ điều hành

... 16Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Implemented in CImplemented in C like all Unix systems.(C was created to implement the first Unix systems)A little Assembly is used too:CPU and machine initialization, exceptions,and critical library routines.See http://www.tux.org/lkml/#s15­3for reasons for not using C++(main reason: the kernel requires efficient code).37Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008 Linux licenseThe whole Linux sources are Free Software releasedunder the GNU General Public License version 2 (GPL v2).See our  http://free­electrons.com/training/intro_unix _linux training for details about Free Software and its licenses.17Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Programming languages in the kernel sources Linux 2.6.22 report by SLOCCount (http://dwheeler.com/sloccount/)Totals grouped by language (dominant language first):ansic:      5215716 (95.78%)asm:         216350 (3.97%)perl:          4215 (0.08%)yacc:          2637 (0.05%)sh:            2233 (0.04%)cpp:           2129 (0.04%)lex:           1510 (0.03%)python:         331 (0.01%)lisp:           218 (0.00%)awk:             96 (0.00%)27Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Embedded Linux driver developmentKernel overview Linux versioning scheme and development process29Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008 Linux development and testing releasesTesting releasesSeveral testing releases per month, before the next stable one.You can contribute to making kernel releases more stable by testing them!Example: 2.6.12­rc1Development versionsUnstable versions used by kernel developersbefore making a new stable major releaseExamples: 2.3.42, 2.5.74 Odd number25Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Kernel memory constraintsWho can look after the kernel?No memory protectionAccessing illegal memory locations result in (often fatal) kernel oopses.Fixed size stack (8 or 4 KB)Unlike in userspace,no way to make it grow.Kernel memory can't be swapped out (for the same reasons).UserprocessKernelIllegalmemorylocationAttemptto accessException(MMU)SIGSEGV, killUserspace memory managementUsed to implement:­ memory protection­ stack growth­ memory swapping to disk­ demand paging19Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Help gcc to optimize your code!Use the likely and unlikely statements (include /linux/ compiler.h)Example:if (unlikely(err)) {     ... 16Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Implemented in CImplemented in C like all Unix systems.(C was created to implement the first Unix systems)A little Assembly is used too:CPU and machine initialization, exceptions,and critical library routines.See http://www.tux.org/lkml/#s15­3for reasons for not using C++(main reason: the kernel requires efficient code).37Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008 Linux licenseThe whole Linux sources are Free Software releasedunder the GNU General Public License version 2 (GPL v2).See our  http://free­electrons.com/training/intro_unix _linux training for details about Free Software and its licenses.17Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Programming languages in the kernel sources Linux 2.6.22 report by SLOCCount (http://dwheeler.com/sloccount/)Totals grouped by language (dominant language first):ansic:      5215716 (95.78%)asm:         216350 (3.97%)perl:          4215 (0.08%)yacc:          2637 (0.05%)sh:            2233 (0.04%)cpp:           2129 (0.04%)lex:           1510 (0.03%)python:         331 (0.01%)lisp:           218 (0.00%)awk:             96 (0.00%)27Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Embedded Linux driver developmentKernel overview Linux versioning scheme and development process29Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008 Linux development and testing releasesTesting releasesSeveral testing releases per month, before the next stable one.You can contribute to making kernel releases more stable by testing them!Example: 2.6.12­rc1Development versionsUnstable versions used by kernel developersbefore making a new stable major releaseExamples: 2.3.42, 2.5.74 Odd number25Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Kernel memory constraintsWho can look after the kernel?No memory protectionAccessing illegal memory locations result in (often fatal) kernel oopses.Fixed size stack (8 or 4 KB)Unlike in userspace,no way to make it grow.Kernel memory can't be swapped out (for the same reasons).UserprocessKernelIllegalmemorylocationAttemptto accessException(MMU)SIGSEGV, killUserspace memory managementUsed to implement:­ memory protection­ stack growth­ memory swapping to disk­ demand paging19Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Help gcc to optimize your code!Use the likely and unlikely statements (include /linux/ compiler.h)Example:if (unlikely(err)) {     ... 16Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Implemented in CImplemented in C like all Unix systems.(C was created to implement the first Unix systems)A little Assembly is used too:CPU and machine initialization, exceptions,and critical library routines.See http://www.tux.org/lkml/#s15­3for reasons for not using C++(main reason: the kernel requires efficient code).37Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008 Linux licenseThe whole Linux sources are Free Software releasedunder the GNU General Public License version 2 (GPL v2).See our  http://free­electrons.com/training/intro_unix _linux training for details about Free Software and its licenses.17Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Programming languages in the kernel sources Linux 2.6.22 report by SLOCCount (http://dwheeler.com/sloccount/)Totals grouped by language (dominant language first):ansic:      5215716 (95.78%)asm:         216350 (3.97%)perl:          4215 (0.08%)yacc:          2637 (0.05%)sh:            2233 (0.04%)cpp:           2129 (0.04%)lex:           1510 (0.03%)python:         331 (0.01%)lisp:           218 (0.00%)awk:             96 (0.00%)27Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Embedded Linux driver developmentKernel overview Linux versioning scheme and development process29Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008 Linux development and testing releasesTesting releasesSeveral testing releases per month, before the next stable one.You can contribute to making kernel releases more stable by testing them!Example: 2.6.12­rc1Development versionsUnstable versions used by kernel developersbefore making a new stable major releaseExamples: 2.3.42, 2.5.74 Odd number25Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Kernel memory constraintsWho can look after the kernel?No memory protectionAccessing illegal memory locations result in (often fatal) kernel oopses.Fixed size stack (8 or 4 KB)Unlike in userspace,no way to make it grow.Kernel memory can't be swapped out (for the same reasons).UserprocessKernelIllegalmemorylocationAttemptto accessException(MMU)SIGSEGV, killUserspace memory managementUsed to implement:­ memory protection­ stack growth­ memory swapping to disk­ demand paging19Embedded Linux kernel and driver development© Copyright 2004­2008, Free ElectronsCreative Commons Attribution­ShareAlike 2.5 licensehttp://free­electrons.comFeb 27, 2008Help gcc to optimize your code!Use the likely and unlikely statements (include /linux/ compiler.h)Example:if (unlikely(err)) {    ...
  • 449
  • 374
  • 0
Tài liệu 1. Linux là gì? Linux là hệ điều hành. Về mặt nguyên tắc hệ điều hành cũng docx

Tài liệu 1. Linux là gì? Linux là hệ điều hành. Về mặt nguyên tắc hệ điều hành cũng docx

Hệ điều hành

... Debian Linux, Infomagic Linux, Softlanding Linux System Release (SLS) v.v • Routing • SMTP Server • Pop3 Server • Firewall Một mạng máy tính của Linux bao gồm: • Linux file server • Linux ... Linux backup • Linux firewall • Các client (có thể chạy nhiều hệ điều hành khác nhau Unix, Macintosh và Windows) • Linux print server • Linux Apache • Linux database • Linux- Based DNS ... sở dữ liệu ở mức lớn, Linux còn được cung cấp những hệ thống quản lý dữ liệu vừa và nhỏ như KDE và GNOME. Ngoài ra Linux còn cung được cung cấp những phần mềm sẵn sàng cho những cơ sở dữ liệu...
  • 5
  • 615
  • 2
Tài liệu 100 Linux Tips and Tricks by Patrick Lambert ppt

Tài liệu 100 Linux Tips and Tricks by Patrick Lambert ppt

Hệ điều hành

... dedicated to Linux, and what they are used for:• comp.os .linux. advocacy: This newsgroup is used for advocacy. People stating their opinionsabout Linux or Linux applications, and about Linux competitors. ... 150 groups in linux. * and they are all about Linux! Make sure you read the FAQ and rules of every newsgroup you want to post to.100 Linux Tips and Tricks26Tip 11: Linux on a 286? Linux is a multi-user, ... the Linux installation.• Run fdisk or any partitioning program that comes with the Linux distribution, and follow theinstallation instructions to make the required Linux partitions.100 Linux...
  • 116
  • 387
  • 0
Tài liệu Running Linux doc

Tài liệu Running Linux doc

Hệ điều hành

... Chapter 1. Introduction to Linux 38 for Linux. A "subscription fee" allows you to call consultants for help with your Linux problems. Several Linux distribution vendors provide ... development of Linux. 1.7 Open Source and the Philosophy of Linux When new users encounter Linux, they often have a few misconceptions and false expectations of the system. Linux is a unique ... at least two monthly magazines about Linux: Linux Journal and Linux Magazine. These are an excellent way to keep in touch with the many goings-on in the Linux community. 1.8.3 Usenet Newsgroups...
  • 614
  • 204
  • 0
Tài liệu Chạy Linux từ ổ USB Flash pptx

Tài liệu Chạy Linux từ ổ USB Flash pptx

Hệ điều hành

... tạo một file lớn trong ổ flash sẽ giữ dữ liệu người dùng của bạn, sử dụng tùy chọn -hd QEMU để đặt, format ổ đĩa trong live Linux session và lưu dữ liệu người dùng của bạn ở đó giữa các session. ... thực sự). Những người hay truy cập vào Web site của PenDriveLinux – một tài nguyên thú vị cho tất cả mọi thứ để có thể chạy Linux trên USB – có một cách nhanh chóng để test sự hỗ trợ khởi ... tùy chọn "SysLinux" trong menu cài đặt của nó để tạo khởi động cho USB. Chạy Linux từ ổ USB Flash Nguồn : quantrimang.com Serdar Yegulalp Bạn có muốn chạy Linux bất cứ lúc nào...
  • 10
  • 508
  • 0
Tài liệu Backup Linux, Mac hoặc Windows bằng fwbackups doc

Tài liệu Backup Linux, Mac hoặc Windows bằng fwbackups doc

Phần cứng

... thực hiện một backup One Time nếu chỉ cần backup dữ liệu nào đó một lần. Tập này sẽ không được lưu vào các tập của bạn. Khôi phục Backup Linux, Mac hoặc Windows bằng fwbackups ... thư mục và các file) bạn cấu hình tiếp như sau: Destination: Nơi bạn muốn backup được lưu. Trong Linux, bạn có thể lưu backup này cục bộ hoặc trên một máy chủ từ xa thông qua SSH. Tập backup ... những gì bạn cần thiết lúc này. Chúng tôi đã thử thực hiện với nhiều giải pháp backup khác trên Linux nhưng kết quả là, một trong số chúng chỉ là các giải pháp dòng lệnh, hay yêu cầu sự cài đặt...
  • 5
  • 412
  • 0
Tài liệu Beginning Linux® Programming 4th Edition doc

Tài liệu Beginning Linux® Programming 4th Edition doc

Hệ điều hành

... into Linux, and someof the most powerful things that you can do are most easily done from the shell. Because the shell is soimportant to Linux, and is so useful for automating simple tasks, shell ... 10/1/07 7:07 AM Page viii2 Shell ProgrammingHaving started this book on programming Linux using C, we now take a detour into writing shell programs. Why? Well, Linux isn’t like systems where ... sup-port Linux, and major software vendors like Oracle support their software running on Linux. Linux truly has become a viable operating system, especially in the server market. Linux owes...
  • 819
  • 389
  • 0
Tài liệu Redhat Linux ppt

Tài liệu Redhat Linux ppt

Hệ điều hành

... Samba trên Linux có thể chia sẻ tài nguyên của Linux cho Windows. Bốn điều cơ bản Samba có thể làm: - Chia sẻ dĩa Linux cho Windows - Chia sẻ SMB với máy Linux - Chia sẻ máy in trên Linux cho ... a Linux System Tại dấu nhắc hệ thống phải nhập tên bạn và Password để đăng nhập vào hệ thống Linux. Dấu nhắc : “#” nghĩa là đang là account root “$” nghĩa là đang là account thường Linux ... Biên soạn bởi mcsevietnam / 80 33 Thư mục cài Samba Directory Miêu tả /usr/local/samba/man Tài liệu hướng dẫn Samba /usr/local/samba/private File password đã mã hóa /usr/local/samba/swat...
  • 80
  • 755
  • 11
Tài liệu Securing Linux step-by-step ppt

Tài liệu Securing Linux step-by-step ppt

An ninh - Bảo mật

... REBOOTSPAGE 12STEP 2Install Linux ■ Step 2.6.3. Password protect LILO bootsThe Linux Loader (LILO) is the primary mechanism for booting Linux. If the physical security of the Linux machine can not ... 2Install Linux ■ Step 2.6.1. Create a boot disketteOne step that many Linux users skip is the creation of an emergency boot diskette. The Red Hat installercreates a bootable diskette with a Linux ... Start End Blocks Id System/dev/hda1 * 1 1913 15366141 83 Linux /dev/hda2 1914 1946 265072+ 82 Linux swap/dev/hda3 1947 2193 1984027 + 83 Linux Command (m for help): qSTEP 2.4SELECT PACKAGES...
  • 62
  • 296
  • 0
Tài liệu Securing Linux step-by-step doc

Tài liệu Securing Linux step-by-step doc

An ninh - Bảo mật

... withRed Hat 6.0 has a bug that makes it impossible for non -Linux systems to mount directories on Linux systems. See ftp://ftp.kernel.org/pub /linux/ devel/gcc/ for the latest version, whichcorrects ... /usr/bin/smtpd smtpd#nntp stream tcp nowait root /usr/sbin/tcpd in.nntpd## Shell, login, exec and talk are BSD protocols.# shell stream tcp nowait root /usr/sbin/tcpd in.rshdlogin stream tcp nowait ... /usr/doc/initscripts-4.16/sysvinitfiles.##!/bin/bash## /etc/rc.d/init.d/sshd## sshd Start the Secure Shell daemon## chkconfig: 345 50 50# description: The Secure Shell daemon, sshd, allows for strong \# authentication of, and...
  • 63
  • 324
  • 0
Tài liệu Configuring Linux as an NIS Client ppt

Tài liệu Configuring Linux as an NIS Client ppt

Hệ điều hành

... type /sbin/chkconfig ypbind on at the shell prompt. There are other ways to accomplish this, but this may be the easiest way. Step 9 At this point, the Linux system should be setup to run as ... connecting to an NIS server, these commands will return error messages. Reflection Configuring a Linux system can be very useful. What are some circumstances in which using NIS might be beneficial? ... will set the NIS domain name to Ciscotest. To verify the NIS domain name, type domainname at the shell prompt. Step 5 This command will only set the NIS domain name temporarily. When the system...
  • 3
  • 329
  • 0
Tài liệu CrossOver Linux 9: Chạy các ứng dụng Windows mà không cần Windows pdf

Tài liệu CrossOver Linux 9: Chạy các ứng dụng Windows mà không cần Windows pdf

Hệ điều hành

... s ít các ng dng, hãy th dùng mt CrossOver Linux CrossOver Linux 9: Chy các ng dng Windows mà không cn Windows Mt s ngi dùng Linux nhn mnh rng bt c iu gì bn có th làm ... nht CrossOver Linux ca CodeWeavers. CrossOver Linux 9 (tên mã là Snow Mallard) và ngi anh em Mac ca nó, CrossOver Mac 9, cho phép bn chy nhiu ng dng Windows ph bin Linux hay Mac ... Unix /Linux. Wine là mt d án trng k" ã tri qua 17 nm làm vic  thc hin chy các ng dng Windows trên các h thông Unix ho#c Linux. Trên thc t, không cn n CrossOver Linux...
  • 4
  • 393
  • 0

Xem thêm