启动及关闭iptables
设置iptables开机启动
chkconfig /etc/init.d/iptables on
chkconfig /etc/init.d/iptables off
即时启动iptables
service /etc/init.d/iptables start
即时关闭iptables
service /etc/init.d/iptables stop
查看SSH服务是否开启
/etc/init.d/sshd status
du -h [文件名] //查看文件大小
alias [别名]=[原命令] //对命令定义别名
tftp -gr screen(文件名) 192.168.1.168(主机地址) //内核启动后tftp 从windows下载文件到开发板
如果./执行文件出现./screen_yizhi: Permission denied 那就是没有权限,要使用chmod更改文件的权限
Linux解压*.Zip 的命令为:unzip *.zip
Linux解压*.tar.gz的命令为:tar -zxf *.tar.gz
Linux解压*.tar.bz2的命令为:tar -xjf *.tar.bz2
tar -cjf tslib.tar.bz2 tslib //打包命令
装载驱动:insmod 驱动文件名.ko;
卸载驱动:rmmod 驱动文件名 PS:不接.ko;
为驱动添加设备:mknod dev/led0 c 249 0
mount 命令挂载ubifs文件系统
语法:mount [选项] <-t 类型> [-o 挂载选项] <设备> <挂载点>
例:mount -t ubifs ubi0:rootfs /apps
-t:指定文件类型,
/apps:所要挂载到的地方,
ubi0:rootfs: 设备
umount 命令卸载文件系统
语法:
umount <设备|挂载点>
例:umount /apps
-o options 主要用来描述设备或档案的挂接方式。常用的参数有:
loop:用来把一个文件当成硬盘分区挂接上系统
ro:采用只读方式挂接设备
rw:采用读写方式挂接设备
iocharset:指定访问文件系统所用字符集