1 查看linux系统的内核版本
#uname -r
2 查看linux系统的发行版本
#cat /etc/redhat-release
3 查看linux的具体版本号
#cat /proc/version
4 清屏命令
#clear
5 启用和关闭ftp服务
#service vsftpd start
#service vsftpd stop
6 查看linux系统硬盘大小
#df -lh
7 查看linux内存大小
#free
8 查看cpu个数
#ls /proc/acpi/processor
9 查看cpu相关信息
#cat /proc/cpuinfo
10 切换到/home 目录
#cd /home
11 查看某个目录下的所有文件
#ls -l
12 查看当前目录的绝对路径
#pwd
13 查看linux系统ip
#ifconfig
14 打开linux系统的telnet服务
#service xinetd restart 重启telnet服务
#service xinetd start 启动telnet服务
#service xinetd stop 关闭telnet服务
15 确认telnet服务是否已打开
#chkconfig --list|grep telnet
如果结果显示的krb5-telnet为off,需要使用命令
#chkconfig krb5-telnet on 开启该服务;
16 关闭/开启linux防火墙
#service iptables stop/start
17 在windows中使用telnet远程连接linux
#telnet linux的ip地址
输入用户名密码即可。