常用组合键
ctrl+h,backspace :删除前面的字符.
ctrl+u:删除一整行.
ctrl+c,del,break: 强行终止正在运行的程序.
ctrl+d:
常用指令
1.date:查看当前时间.
2.cal:查看某一个月的月历.
3.Finger 命令:显示一个用户的详细信息.
4.who命令:显示所有登陆用户.who an i
5.clear 命令:执行清屏动作.
6.echo 命令:将命令名后跟随的参数显示在屏幕echo hello
world
7.banner 命令:将命令名后跟的ACSSII字符串以大字的方式显
示在屏幕上banner hello
8.wc 命令:用于计算一个指定的文件中的行数单词及字符数:
格式wc[-c(计算字符的数目)] [-l(计算行的数目)] [-w(计算
单词的数目)] filename
9.passwd 命令,用于修改口令.
10.man 命令:联机手册
六.shell的基本功能:命令解释器,程序设计语言.
shell的退出命令.
1.exit 主要用于退出B_shell
2.logout 主要用于退出C_shell
3.ctrl+d 用于退出各类shell
第三章 通信
内部通信
外部通信<1,电子邮件,2.即时通信
一.即时通讯
1.write 交谈命令 (半双工通信)
格式 write student1
ctrl+d 退出write
Write协议:消息发送结束用O(结束)
结束谈话用OO(结束并退出)
2.mesg 消息开关命令.用于查询和开关本终端的消息接收状态.
格式:mesg [-y] [-n]
$ mesg 查询本终端当前的消息接收状态
is y 可以接收消息
is n 拒绝接收消息
$ mesg n 设置关闭状态
$ mesg y 设置打开状态
3.talk 双向通信命令 (全双工方式)
4.wall 广播信息命令
二,电子邮件
$ mail username 发送邮件
$ mail [...]
本教程你将学会:
1、利用SSH远程登录进行管理
2、pkg、源代码包的安装方法
3、利用VI编辑器修改配置文档
4、通过修改系统文件自启动服务
5、初级安全知识
一、前期软件准备:
由于个人网络环境因素,是先将pkg和源代码包从单位下载回家做的,所以第一步先下载相关软件:apache-2.0.54nb1.tgz、mysql-server-4.1.12nb1.tgz、mysql-client-4.1.12.tgz、perl-5.8.6nb4.tgz、expat-1.95.8nb2.tgz、apr-0.9.6.2.0.54nb1.tgz,以上软件可以从ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD-2.0/i386/All/ 下载到。另外还需php-4.4.0.tar.bz2源代码包(www.php.net);F-Secure SSH(google一下吧)
二、设置SSH
1、编辑rc.conf开启ssh
#echo sshd=YES >;>; /etc/rc.conf
#echo sendmail=NO >;>; /etc/rc.conf
2、编辑sshd_config允许root帐号登陆
#vi /etc/ssh/sshd_config
找到#PermitRootLogin yes将#去掉保存并退出
重启后ssh随即生效。
Pkgsrc configuration (cross UNICES) : pbraun.nethence.com/doc/sysutils_bsd/pkgsrc.html
Slackware Linux configuration : pbraun.nethence.com/doc/sysutils_linux/slackware.html
Slackware and pkgsrc : pbraun.nethence.com/doc/sysutils_linux/slackware-pkgsrc.html
Introduction
pkgsrcis NetBSD’s package system for all plateforms. It may nevertheless beused on other operating systems, as it automates compilations fromsource. For the NetBSD system itself see pbraun.nethence.com/doc/sysutils/NetBSD.html
Usage for binaries
OnceNetBSD is installed, find your relevant binary repository depending onyour NetBSD version (release and [...]
A] Basic setup
Network configuration
Setup the hostname,
echo lala.example.com > /etc/myname # for next reboot
Check if kernel has recognized the network interface,
ifconfig -a
# and eventually dmesg | less
Setup IP/Netmask,
echo “10.0.0.6 netmask 255.0.0.0 media auto” > /etc/ifconfig.fxp0
Setup your gateway,
echo 10.0.0.1 > /etc/mygate
Setup your name resolutions,
vi /etc/hosts
::1 localhost [...]
最近评论