![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux学习
文章平均质量分 63
hgq525
这个作者很懒,什么都没留下…
展开
-
fork
Namefork - create a child processSynopsis#include unistd.h>pid_t fork(void);Descriptionfork() creates a new process by duplicating the calling process. The new process, referred to as转载 2014-03-23 05:48:39 · 420 阅读 · 0 评论 -
Standard Input and Output Redirection
Standard Input and Output RedirectionThe shell and many UNIX commands take their input from standard input (stdin), write output to standard output (stdout), and write error output to standard err转载 2014-11-14 00:23:44 · 1124 阅读 · 0 评论 -
echo -n -e
Echo the STRING(s) to standard output. -n do not output the trailing newline -e enable interpretation of backslash escapes -E disable interpretation of原创 2014-11-14 00:11:57 · 412 阅读 · 0 评论 -
echo -e -n
echo -n 不换行输出$echo -n "123"$echo "456"最终输出 123456而不是123456echo -e 处理特殊字符若字符串中出现以下字符,则特别加以处理,而不会将它当成一般文字输出:\a 发出警告声;\b 删除前一个字符;转载 2014-11-14 00:13:29 · 431 阅读 · 0 评论 -
shell script学习备忘
1 变量赋值如devName="原创 2014-06-17 23:21:51 · 334 阅读 · 0 评论 -
samba 配置 (转载)
.samba是做什么的?samba相当于windows下的文件共享,也就是提供一种文件共享服务的机制。2.如何安装samba在linux的安装盘中找到samba打头的文件,全部copy到/tmp文件夹中ls samba*cp samba* /tmp3.安装sambarpm -ivh samba-common*(通用文件)rpm -ivh samba-clie转载 2014-05-16 04:42:02 · 395 阅读 · 0 评论 -
samba的安装(tar.gz方式) (转载)
samba服务器,我相信大家都不陌生,主要用来实现windows和linux之间的资源共享,网上比较多的是采用rpm安装包的方式安装,我个人也觉得rpm方式安装比较方便容易,如果没什么特别需求,还是用这种吧!我这里介绍的是采用tar方式的安装.首先下载一个samba的安装文件:samba-3.2.0.tar.gz下面开始进行安装:我们在文件所在的目录运行下面的命令#转载 2014-05-15 23:14:46 · 1116 阅读 · 0 评论 -
GPSD测试
1 install gpsd and gpsd-client. (Ubuntu: apt-get gpsd; apt-get gpsd-client. Or download gpsd and )原创 2014-05-16 06:35:09 · 3325 阅读 · 0 评论 -
ubuntu如何利用minicom(转)
minicom是linux下串口通信的软件,它的使用完全依靠键盘的操作,虽然没有“超级终端”那么易用,但是使用习惯之后读者将会体会到它的高效与便利,下面将讲解minicom的安装和配置。一、安装minicom:使用以下命令:# sudo apt-get install minicom以下为安装的详细信息:# sudo apt-get install minicom转载 2014-05-08 02:54:02 · 330 阅读 · 0 评论 -
linux read
1、基本读取read命令接收标准输入(键盘)的输入,或其他文件描述符的输入(后面在说)。得到输入后,read命令将数据放入一个标准变量中。下面是 read命令的最简单形式::#!/bin/bashecho -n "Enter your name:" //参数-n的作用是不换行,echo默认是换行read name /转载 2014-03-24 03:10:38 · 470 阅读 · 0 评论 -
stdarg
from http://blog.csdn.net/holandstone/article/details/6947119有关VA_LIST的用法:VA_LIST 是在C语言中解决变参问题的一组宏VA_LIST的用法: (1)首先在函数里定义一具VA_LIST型的变量,这个变量是指向参数的指针 (2)然后用VA_START宏初始原创 2014-11-18 23:11:30 · 551 阅读 · 0 评论