... capacity inenvironment protection
9. Strengthening and diversification of investment sources for environment protection
10. Strengthening in research and development of technologies inenvironment ... planning of waste matters
- Planning of waste matters collection and treatment stations
3
In Vietnam, urban inundation is seriously in rain season, represent in Ha Noi City (because
of rain ... toxic
industrial waste matters
5. Control planning of land use and land environment pollution
- Suitable and saving in planning land use;
- Land environment pollution control.
6. Environment...
... CTT
Input
Input
We can input the information into script
when executing the script ( interactive)
Commands :
read
select
The Saigon CTT
The Linux Shell
The Linux Shell
Shells ...
The Linux Shell
The Linux Shell
Shells : Bourne (sh), Bourne Again
(bash), Korn (ksh), C shell (csh, tcsh)
Programs start from command line have
separate environments : parameters,
variables ... …
If there is more input than you are
looking for, all the extras are put in the
last variable.
The Saigon CTT
Redirecting Input and Output
Redirecting Input and Output
Input (<) or...
... LOCKED ++
++ IN $REMAINING day\\(s\\) ++
==============================================================
If the password isnt changed within $REMAINING day\\(s\\), account will be locked.
Instructions ... and explain why she didn’t heed the friendly
e-mail warnings.
The canned template file looks like this:
$ENVIRONMENT account password for \\"$USERID\\" expires in $REMAINING day\\(s\\)
============================================================== ... refers to environmentvariables and contains customizable
elements so the message can be tailored specifically to the recipient.
In Chapter 36, I present a script that checks every morning for...
... : Linux cất thông tin về tên máy
trong tập tin /etc/hots
Cú pháp: hostname
Linux Shell
Trang 4
Chương II :
Tìm hiểu & sử dụng Linux
shell ...
5.12. Tìm kiếm một tập tin :
Cú pháp :
- Tìm theo tên : $find đườngdẫn -name têntậptin -print
- Tìm theo số i- node (i-num) của tập tin :
$find đườngdẫn -inum number -print
- Tìm theo tên ... Shell ), bash (Bourn Again
Shell ), tcsh , csh , pdksh (Public Domain Shell ) , zsh , ash và mc . Nhưng phổ
biến là : sh (Bourn Shell ), csh (C Shell ) , ksh (Korn Shell ) .
Để có thể truy...
... e E cuối từ hiện tại
Linux Shell
Trang 4
Chương II :
Tìm hiểu & sử dụng Linux
shell
I- Các lệnh cơ bản trong LinuxShell :
1. Phép kết gán ... "New York" trong đầu vào
chuẩn ( standard input)
Linux Shell
Trang 9
Ví dụ : $hostname
Linux. edu
5.17. Nén một tập tin : Tên tập tin đã nén giống như tên ban đầu và kèm
theo đuôi ... bằng giây để nạp
Shell
TMOUT Thời gian sử dụng Shell
PRID ID của tiến trình Shell
Linux Shell
Trang 19
then
Echo $i >>printed
else
Echo $i >>notprinted
fi
done
4....
... LinuxShell Basic
Kernel
Kernel là trái tim của hệ điều hành Linux. Nó quản lý tài nguyên - các tiện ích có sẵn trong Linux. Tiện
ích lưu dữ liệu, in dữ liệu ra máy in, bộ nhớ, ...
BASH (Bourne-Again Shell)
o
CSH (C Shell)
o
KSH (Korn Shell)
o
TCSH
Để tìm tất cả các shell có sẵn trong hệ thống, sử dụng lệnh sau:
cat /etc/shells
Trong MS-DOS, tên Shell là COMMAND.COM ... các thiết bị input (như bàn phím) hoặc từ một file.
Shell thì không phải là phần của kernel, nhưng sử dụng kernel để thực thi chương trình, tạo các file,
•
Một vài shell mà Linux chứa:
o...
... hiện nay Linux là một hệ điều hành kế thừa của Unix. Linux cũng có những
shell tơng tự và bạn có thể sử dụng những giới thiệu về shell ở đây với các hệ thống Linux.
3. Những loại shell hiện ... tin về loại shell nào đợc sử dụng. Mỗi khi bạn login, hệ thống sẽ đọc tệp này để lấy
thông tin khởi tạo cho shell.
Thông tin có thể gồm một trong những dạng sau:
/bin/sh Bourne shell
/bin/jsh ...
/bin/sh Bourne shell
/bin/jsh Bourne shell, có thêm phần điều khiển tác vụ (job control)
/bin/ksh Korn shell
/bin/csh C shell
Bạn có thể thay đổi shell mặc định sang một loại khác bằng...
... hiện nay Linux là một hệ điều hành kế thừa của Unix. Linux cũng có những
shell tơng tự và bạn có thể sử dụng những giới thiệu về shell ở đây với các hệ thống Linux.
3. Những loại shell hiện ... tin về loại shell nào đợc sử dụng. Mỗi khi bạn login, hệ thống sẽ đọc tệp này để lấy
thông tin khởi tạo cho shell.
Thông tin có thể gồm một trong những dạng sau:
/bin/sh Bourne shell
/bin/jsh ...
/bin/sh Bourne shell
/bin/jsh Bourne shell, có thêm phần điều khiển tác vụ (job control)
/bin/ksh Korn shell
/bin/csh C shell
Bạn có thể thay đổi shell mặc định sang một loại khác bằng...
... Systems, Inc.
Lab 10.2.2: Adding Users inLinux
Estimated Time: 20 minutes
Objective
In this lab, the student will learn how to create user accounts using the Linux Red Hat 7.X
operating system. ... studentA4
B1 instructorB1 instructorB1 Instructor,
Windows
Computer
B2 studentB2 studentB2
B3 studentB3 studentB3
B4 studentB4 studentB4
C1 instructorC1 instructorC1 Instructor,
Linux Computer ... Systems, Inc.
Step 5: Account Verification
In this step, verify that the accounts were created correctly in step 4 by using the finger
command.
To learn about the finger command type:
man finger...
... file
và bảo shell thực thi text file này thay vì nhập vào các lệnh. Điều này gọi là shell script.
Định nghĩa: Shell script là một chuỗi các lệnh được viết trong plain text file. Shell script ... lệnh sau:
$ echo $SHELL
Làm thế nào để sử dụng Shell: đơn giản gõ các lệnh.
Shell script là gì:
Bình thường thì shell là trình giao tiếp. Có nghĩa là shell chấp nhận các lệnh từ bạn (keyboard) và ... Bất kỳ shell nào cũng đọc lệnh từ người dùng (bàn phím hoặc chuột) và bảo cho Linux Os những gì mà
người dùng muốn. Nếu chúng ta cho một lệnh...
... Engineering group.
3. Next, add a student account to the new Engineering group by typing:
usermod –G Engineering studentA5
Press Enter. This will add the studentA5 account to the Engineering ... root user. The group is called Engineer
because Linux can only display eight characters, otherwise Engineering would appear.
Both the root account and the Engineering group have the same Read, ... following command:
chgrp Engineering Eng
5. Verify that ownership has changed from the root to Engineering:
ls –l
4 - 5 IT Essentials II v2.0 - Lab 10.2.4 Copyright 2002, Cisco Systems, Inc....
... Inc.
Step 3: Creating Directories
1. The following command sequence will not work unless the user is in the home
directory. Type:
cd
Verify that the user is in the home directory by using ...
directory structure by typing in the following command:
mkdir –p chemistry/experiments/week3
Example
Verify that the directories were created correctly by typing:
ls –R
Be sure to use ... directory. Create a graphical
representation of the home directory including all of the new directories that were
created in the steps in this lab.
Reflection
If the user did not...
... Copyright 2002, Cisco Systems, Inc.
Lab 10.4.4: Configuring FTP Services inLinux
Estimated Time: 25 minutes
Objective
In this lab, the student will configure a Linux Red Hat 7.2 computer ... the FTP site anymore.
If having difficulties with the Linux FTP client, try a windows computer. A Windows
system can easily connect to a Linux FTP server by using a popular program called
WS_FTP. ... Cisco Systems, Inc.
/etc/rc.d/init.d/xinetd start
3. Check the status of the xinetd daemon:
/etc/rc.d/init.d/xinetd status
In the space below, write down the status of the xinetd daemon:...