UNIX/Linux学习之路_day06
发表于
|
分类于
操作系统管理
SCRIPTING AND SHELL 脚本和Shell
Perl programming
Variables and arrays
Array and string literals
Function calls
Type conversions in expressions
String expansions and disambiguation of variable references
Hashes
References and autovification
Regular expressions in Perl
Input and output
Control flow
Accepting and validating input
Perl as a filter
Add-on modules for Perl
UNIX/Linux学习之路_day03
发表于
|
分类于
操作系统管理
SCRIPTING AND SHELL 脚本和Shell
Shell basics Shell 基础知识
Command editing 命令编辑
- vi
- emacs
Pipes and redirection 管道和重定向
1 | $ echo "This is a test message." > /tmp/mymessage |
Variables and quoting 变量和引用
1 | $ ectdir='/etc' |
Common filter commands 常见的过滤命令
cut
separate lines into fields
sort
sort lines 排序行
Opt | Meaning | Chinese |
---|---|---|
-b | Ignore leading whitespace | 忽略前导空白 |
-f | Case insensitive sorting | 不分大小写排序 |
-k | Specify the columns that form the sort key | 指定组成排序键的列 |
-n | Compare fields as integer numbers | 将字段作为整数进行比较 |
-r | Reverse sort order | 反向排序顺序 |
-t | Set field separator(the default is whitespace) | 设置字段分隔符(默认为空格) |
-u | Output unique records only | 只输出独特的记录 |
uniq
print unique lines
wc
count lines, words, and characters
tee
copy input to two places
grep
search text
UNIX/Linux学习之路_day02
发表于
|
分类于
操作系统管理
CHAPTER 1 WHERE TO START 从何处入手
Essential duties of the system administrator
系统管理员的基本任务
本书总结了一下几个作为系统管理员的最基本任务。
- Account provisioning 账号管理
- Adding and removing hardware 增删硬件
- Performing backups 执行备份
- Installing and upgrading software 安装和更新软件
- Monitoring the system 监视系统
- Troubleshooting 故障诊断
- Maintaining local documentation 维护本地文档
- Vigilantly monitoring security 时刻警惕系统安全
- Fire fighting 救火
选择 UNIX/Linux 发行版
本书中所介绍的发行版
UNIX distributions
- Solaris
- HP-UX
- AIX
Linux distributions
- Ubuntu
- openSUSE
- Red Hat
查找文档
- System-specific guides
- Package-specific documentation
- Books
- RFCs and other Internet documents
- The Linux Documentation Project
安装软件
- 判断软件是否安装
- 安装新的软件
- 从源码进行安装