随笔分类 - linux
摘要:Most of Windows users may know "Norton Ghost". Norton Ghost is a backup software for hard disks. It can backup a whole hard disk or a partition to an image file. Also, Norton Ghost can copy all the...
阅读全文
摘要:mainline 、longterm、stable、linux-next、snapshot这些名词,都是linux kernel source的标记名称,可以理解为代号。 mainline mainline指由Linus Torvalds亲自制作的内核发布版,是官方当前最新版本的kernel source。在Torvalds对所有其他程序员所做出的重大变化进行整合,并且对先前版本的bug进行...
阅读全文
摘要:NAME mount - 挂载文件系统 SYNOPSIS 总览 mount [-lhV] mount -a [-fFnrsvw] [-t vfstype] [-O optlist] mount [-fnrsvw] [-o options [,...]] device | dir mount [-fnrsvw] [-t vfstype] [-o options] device dir DE...
阅读全文
摘要:First ,Symlinks and bind mounts are a whole different ballgame. ln -s you create a symbolic link,which is an inode pointing to a certain filesystem object. If you mount a filesystem with --bind, you...
阅读全文
摘要:When you use the bind option of the mount command, you must be sure that the file systems are mounted in the correct order. In the following example, the /var/log directory must be mounted before...
阅读全文
摘要:版本控制(Revision control)是一种软体工程技巧,籍以在开发的过程中,确保由不同人所编辑的同一档案都得到更新。 版本控制软件 版本控制软件提供完备的版本管理功能,用于存储、追踪目录(文件夹)和文件的修改历史,是软件开发者的必备工具,是软件公司的基础设施。版本控制软件的最高目标,是支持软件公司的配置管理活动,追踪多个版本的开发和维护活动,及时发布软件。...
阅读全文
摘要:在固件开发过程中常常遇到这样的情况:为测试某个新功能,必需修改某个系统文件。而这个文件在只读文件系统上(总不能为一个小小的测试就重刷固件吧),或者是虽然文件可写,但是自己对这个改动没有把握,不愿意直接修改。这时候mount --bind就是你的好帮手。 假设我们要改的文件是/etc/hosts,可按下面的步骤操作: 1. 把新的hosts文件放在/tmp下。当然也可放在硬盘或U盘上...
阅读全文
摘要:sed是一个很好的文件处理工具,本身是一个管道命令,主要是以行为单位进行处理,可以将数据行进行替换、删除、新增、选取等特定工作,下面先了解一下sed的用法 sed命令行格式为: sed [-nefri] ‘command’ 输入文本 常用选项: -n∶使用安静(silent)模式。在一般 sed 的用法中,所有来自 STDIN的资料一般都会被列出到萤幕上。但如果加上 -n 参数后...
阅读全文
摘要:什么是 chroot chroot,即 change root directory (更改 root 目录)。在 linux 系统中,系统默认的目录结构都是以 `/`,即是以根 (root) 开始的。而在使用 chroot 之后,系统的目录结构将以指定的位置作为 `/` 位置。 图 1. Linux 系统的目录结构 为何使用 chroot 在经过 chroot 之后,系统读取到的目录...
阅读全文
摘要:命名规则 交叉编译工具链的命名规则为:arch [-vendor] [-os] [-(gnu)eabi] [-gcc] arch – 体系架构,如ARM,MIPS vendor – 工具链提供商 os – 目标操作系统 eabi – 嵌入式应用二进制接口(Embedded Application Binary Interface) 注意 没有vend...
阅读全文
摘要:Bmake is a common makefile framework. Both support native build and cross build. Easy for use, modify and extend. Support Kconfig based config configurator like linux kernel, Easy for custom your proj...
阅读全文
摘要:sh-# export export CONSOLE="/dev/console" export HOME="/" export LD_LIBRARY_PATH="......." export OLDPWD export PATH="/bin:/usr/bin:/sbin:/usrbin" export PREVLEVEL="N" export PWD="...
阅读全文
摘要:In Unix, the name of the tar command is short for tape archiving, the storing of entire file systems onto magnetic tape, which is one use for the command. However, a more common use for tar is to s...
阅读全文
摘要:http://www.uml.org.cn/pzgl/200610105.htm http://www.netbsd.org/docs/pkgsrc/pkgsrc.html
阅读全文
摘要:命令格式 source FileName 作用 在当前bash环境下读取并执行FileName中的命令。 注意 该命令通常用命令“.”来替代。如:source .bash_rc 与 . .bash_rc 是等效的。 source命令与shell scripts的区别是: source在当前bash环境下执行命令,而scripts是启动一个子shell来执行命...
阅读全文
摘要:给ln命令加上-s选项,则建立软链接。 格式:ln -s [真正的文件或者目录] [链接名] [链接名]可以是任何一个文件名或者目录名,并且允许它与原文件不在同一个文件系统中。 如果[链接名]是一个已经存在的文件,将不做链接。 如果[链接名]是一个已经存在的目录,linux系统会分两种情况自行进行处理: 若链接指向的是一个文件名,系统将在已经存在的目录下建立一个与源文件名同名的符号...
阅读全文
摘要:PKGSRC简介 pkgsrc: The NetBSD Packages Collection The NetBSD Packages Collection (pkgsrc) 是在NetBSD系统以及其他UNIX-Like系统中构建第三方软件的一个框架。现在包含了7300多个软件包。在所支持的平台上,它使得自由的配置软件成为可能,并切极易构建。 为什么使用 pkgsrc 首先,pkgsrc...
阅读全文
摘要:Codesourcery G++是个商业软件, 不过它有个lite版本,是完全免费的,只不过没有IDE,只有commmand line。 Codesourcery G++支持coldfire, powerpc, ARM 和 MIPS. 每种都有windows和linxu下运行的版本。从其主页上看,Codesourcery应该是ARM和MIPS公司的合作伙伴了, 因此其提供的编译器各方面应该还是不...
阅读全文
摘要:ddns-update-style interim; //设置dhcp互动更新模式 ignore client-updates; //忽略客户端更新 #子网声明 subnet 192.168.12.0 netmask 255.255.255.0 { # --- default gateway option routers 192.168.12.1; //设置客户端默认网...
阅读全文

浙公网安备 33010602011771号